diff --git a/.github/workflows/build-and-push-cliain.yml b/.github/workflows/build-and-push-cliain.yml index 3a5fec572f..088b78d058 100644 --- a/.github/workflows/build-and-push-cliain.yml +++ b/.github/workflows/build-and-push-cliain.yml @@ -26,6 +26,7 @@ jobs: ECR_PUBLIC_REGISTRY: ${{ vars.ECR_PUBLIC_REGISTRY }} AWS_MAINNET_ACCESS_KEY_ID: ${{ secrets.AWS_MAINNET_ACCESS_KEY_ID }} AWS_MAINNET_SECRET_ACCESS_KEY: ${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }} + CI_DEVNET_S3BUCKET_NAME: ${{ secrets.CI_DEVNET_S3BUCKET_NAME }} steps: - name: GIT | Checkout source code uses: actions/checkout@v3 @@ -85,6 +86,10 @@ jobs: fi - name: Configure AWS credentials for S3 AWS + if: > + env.AWS_MAINNET_ACCESS_KEY_ID != '' && + env.AWS_MAINNET_SECRET_ACCESS_KEY != '' && + env.CI_DEVNET_S3BUCKET_NAME != '' uses: aws-actions/configure-aws-credentials@v2 env: AWS_ACCESS_KEY_ID: "" @@ -98,7 +103,11 @@ jobs: aws-region: ${{ env.AWS_REGION }} - name: Copy binary to S3 AWS bucket (non-liminal) - if: ${{ matrix.runtime != 'liminal' }} + if: > + matrix.runtime != 'liminal' && + env.AWS_MAINNET_ACCESS_KEY_ID != '' && + env.AWS_MAINNET_SECRET_ACCESS_KEY != '' && + env.CI_DEVNET_S3BUCKET_NAME != '' uses: Cardinal-Cryptography/github-actions/copy-file-to-s3@v1 with: source-path: bin/cliain/target/release diff --git a/aleph-client/Cargo.lock b/aleph-client/Cargo.lock index c5e212cc13..8fc16de490 100644 --- a/aleph-client/Cargo.lock +++ b/aleph-client/Cargo.lock @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.4.2" +version = "3.5.0" dependencies = [ "anyhow", "async-trait", @@ -154,13 +154,13 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.71" +version = "0.1.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a564d521dd56509c4c47480d00b80ee55f7e385ae48db5744c67ad50c92d2ebf" +checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -356,9 +356,12 @@ checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" [[package]] name = "cc" -version = "1.0.79" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01" +dependencies = [ + "libc", +] [[package]] name = "cfg-if" @@ -695,9 +698,9 @@ dependencies = [ [[package]] name = "either" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "environmental" @@ -713,9 +716,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" +checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f" dependencies = [ "errno-dragonfly", "libc", @@ -880,7 +883,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -945,10 +948,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -999,12 +1000,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - [[package]] name = "hash-db" version = "0.16.0" @@ -1354,7 +1349,7 @@ dependencies = [ "derive_more", "ink_prelude", "parity-scale-codec", - "scale-decode 0.5.0", + "scale-decode", "scale-encode", "scale-info", "xxhash-rust", @@ -1616,15 +1611,6 @@ version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" -[[package]] -name = "lru" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" -dependencies = [ - "hashbrown 0.12.3", -] - [[package]] name = "mach" version = "0.3.2" @@ -1667,24 +1653,13 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memory-db" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "parity-util-mem", -] - [[package]] name = "memory-db" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -1805,9 +1780,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", ] @@ -1875,9 +1850,9 @@ dependencies = [ "bitflags", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] @@ -1907,32 +1882,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parity-util-mem" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" -dependencies = [ - "cfg-if", - "hashbrown 0.12.3", - "impl-trait-for-tuples", - "parity-util-mem-derive", - "parking_lot", - "primitive-types", - "winapi", -] - -[[package]] -name = "parity-util-mem-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" -dependencies = [ - "proc-macro2", - "syn 1.0.109", - "synstructure", -] - [[package]] name = "parity-wasm" version = "0.45.0" @@ -1968,15 +1917,6 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - [[package]] name = "pbkdf2" version = "0.8.0" @@ -2003,29 +1943,29 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pin-project" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "030ad2bc4db10a8944cb0d837f158bdfec4d4a4873ab701a95046770d11f8842" +checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec2e072ecce94ec471b13398d5402c188e76ac03cf74dd1a975161b23a3f6d9c" +checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "pin-project-lite" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c40d25201921e5ff0c862a505c6557ea88568a4e3ace775ab55e93f2f4f9d57" +checksum = "2c516611246607d0c04186886dbb3a754368ef82c79e9827a802c6d836dd111c" [[package]] name = "pin-utils" @@ -2060,11 +2000,11 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2121,9 +2061,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.31" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fe8a65d69dd0808184ebb5f836ab526bb259db23c657efa38711b1072ee47f0" +checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" dependencies = [ "proc-macro2", ] @@ -2145,7 +2085,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc", - "rand_pcg", ] [[package]] @@ -2206,15 +2145,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "redox_syscall" version = "0.3.5" @@ -2226,33 +2156,33 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1641819477c319ef452a075ac34a4be92eb9ba09f6841f62d594d50fdcf0bf6b" +checksum = "61ef7e18e8841942ddb1cf845054f8008410030a3997875d9e49b7a363063df1" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68bf53dad9b6086826722cdc99140793afd9f62faa14a1ad07eb4f955e7a7216" +checksum = "2dfaf0c85b766276c797f3791f5bc6d5bd116b41d53049af2789666b0c0bc9fa" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "regex" -version = "1.9.1" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2eae68fc220f7cf2532e4494aded17545fce192d59cd996e0fe7887f4ceb575" +checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.3.3", + "regex-automata 0.3.6", "regex-syntax 0.7.4", ] @@ -2267,9 +2197,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.3.3" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39354c10dd07468c2e73926b23bb9c2caca74c5501e38a35da70406f1d923310" +checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69" dependencies = [ "aho-corasick", "memchr", @@ -2411,18 +2341,6 @@ dependencies = [ "serde", ] -[[package]] -name = "scale-decode" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d823d4be477fc33321f93d08fb6c2698273d044f01362dc27573a750deb7c233" -dependencies = [ - "parity-scale-codec", - "scale-bits", - "scale-info", - "thiserror", -] - [[package]] name = "scale-decode" version = "0.5.0" @@ -2430,6 +2348,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e5527e4b3bf079d4c0b2f253418598c380722ba37ef20fac9088081407f2b6" dependencies = [ "parity-scale-codec", + "primitive-types", "scale-bits", "scale-decode-derive", "scale-info", @@ -2456,6 +2375,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15546e5efbb45f0fc2291f7e202dee8623274c5d8bbfdf9c6886cc8b44a7ced3" dependencies = [ "parity-scale-codec", + "primitive-types", + "scale-bits", "scale-encode-derive", "scale-info", "thiserror", @@ -2502,15 +2423,16 @@ dependencies = [ [[package]] name = "scale-value" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a5e7810815bd295da73e4216d1dfbced3c7c7c7054d70fa5f6e4c58123fff4" +checksum = "11f549769261561e6764218f847e500588f9a79a289de49ce92f9e26642a3574" dependencies = [ "either", "frame-metadata", "parity-scale-codec", "scale-bits", - "scale-decode 0.4.0", + "scale-decode", + "scale-encode", "scale-info", "serde", "thiserror", @@ -2627,9 +2549,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.1" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ "bitflags", "core-foundation", @@ -2640,9 +2562,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f51d0c0d83bec45f16480d0ce0058397a69e48fcdc52d1dc8855fb68acbd31a7" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", @@ -2659,29 +2581,29 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.171" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30e27d1e4fd7659406c492fd6cfaf2066ba8773de45ca75e855590f856dc34a9" +checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.171" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "389894603bd18c46fa56231694f8d827779c0951a667087194cf9de94ed24682" +checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "serde_json" -version = "1.0.103" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d03b412469450d4404fe8499a268edd7f8b79fecb074b0d812ad64ca21f4031b" +checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c" dependencies = [ "itoa", "ryu", @@ -2807,17 +2729,17 @@ name = "sp-api" version = "4.0.0-dev" source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "scale-info", "sp-api-proc-macro", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "sp-metadata-ir", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "sp-version", "thiserror", ] @@ -2833,116 +2755,114 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a70f8245ad75c773c43e46d16e81adb62290d37cd07efcde6cef06d93235e5" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf23435a4bbd6eeec2bbbc346719ba4f3200e0ddb5f9e9f06c1724db03a8410" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3856b3e912f0a7a1332f1642b5fd3c2e76476e894c656538d32c004698690157" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "static_assertions", ] [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3d3507a803e8bc332fa290ed3015a7b51d4436ce2b836744642fc412040456" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "static_assertions", ] [[package]] name = "sp-core" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88c78530907dbf7949af928d0ce88b485067389201b6d9b468074b1924f209f0" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "array-bytes", - "base58", "bitflags", "blake2", - "byteorder", + "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.15.2", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", "libsecp256k1", "log", "merlin", - "num-traits", "parity-scale-codec", "parking_lot", + "paste", "primitive-types", - "rand 0.7.3", + "rand 0.8.5", "regex", "scale-info", "schnorrkel", "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 5.0.0", + "sp-debug-derive 5.0.0", + "sp-externalities 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 0.8.2", - "wasmi", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7789372146f8ad40d0b40fad0596cb1db5771187a258eabe19b06f00767fcbd6" dependencies = [ "array-bytes", "bitflags", @@ -2952,7 +2872,7 @@ dependencies = [ "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.16.0", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", @@ -2961,7 +2881,6 @@ dependencies = [ "merlin", "parity-scale-codec", "parking_lot", - "paste", "primitive-types", "rand 0.8.5", "regex", @@ -2970,45 +2889,45 @@ dependencies = [ "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 8.0.0", + "sp-debug-derive 7.0.0", + "sp-externalities 0.18.0", + "sp-runtime-interface 16.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 1.0.0", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b9d1daa6aebfc144729b630885e91df92ff00560490ec065a56cb538e8895a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "blake2", + "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27449abdfbe41b473e625bce8113745e81d65777dd1d5a8462cf24137930dad8" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "twox-hash", ] @@ -3019,85 +2938,85 @@ source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=alep dependencies = [ "proc-macro2", "quote", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "syn 2.0.26", + "sp-core-hashing 5.0.0", + "syn 2.0.28", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9ba7352773b96a4aa57e903447f841c6bc26e8c798377db6e7eb332346454" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62211eed9ef9dac4b9d837c56ccc9f8ee4fc49d9d9b7e6b9daf098fe173389ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef739442230f49d88ece41259e5d886d6b8bc0f4197ef7f1585c39c762ce7ef2" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", + "sp-storage 7.0.0", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae0f275760689aaefe967943331d458cd99f5169d18364365d4cb584b246d1c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", + "sp-storage 12.0.0", ] [[package]] name = "sp-io" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6280bd3643354f7ff0b2abd36c687745455779231a7a86d90945608f0d4924c4" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", + "ed25519", + "ed25519-dalek", "futures", - "hash-db 0.15.2", "libsecp256k1", "log", "parity-scale-codec", - "parking_lot", + "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-keystore 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-state-machine 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-keystore 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-trie 7.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd3431c245992fe51b8256c838fc2e981f8d3b0afc1d1377ca7dbe0a3287a764" dependencies = [ "bytes", "ed25519", @@ -3108,14 +3027,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-keystore 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-keystore 0.26.0", + "sp-runtime-interface 16.0.0", + "sp-state-machine 0.27.0", + "sp-std 7.0.0", + "sp-tracing 9.0.0", + "sp-trie 21.0.0", "tracing", "tracing-core", ] @@ -3123,30 +3042,29 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44bec4f0d036b6993c14bbee4216781f21275e5c201e43e45fed4a434bf0e5a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "async-trait", "futures", - "merlin", "parity-scale-codec", "parking_lot", - "schnorrkel", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", "thiserror", ] [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "452d079f592c97369c9ca8a5083b25f146751c6b5af10cbcacc2b24dc53fd72a" dependencies = [ "futures", + "merlin", "parity-scale-codec", "parking_lot", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "schnorrkel", + "sp-core 20.0.0", + "sp-externalities 0.18.0", "thiserror", ] @@ -3158,14 +3076,13 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97549ec99cb289db2a9f5c656b6880f7c90097135e1ca6c6ae4fe5694232e526" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "backtrace", "lazy_static", @@ -3174,8 +3091,9 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75986cc917d897e0f6d0c848088064df4c74ccbb8f1c1848700b725f5ca7fe04" dependencies = [ "backtrace", "lazy_static", @@ -3185,31 +3103,30 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0edfc5c54c2b31d2f0cf904d472a0bff7125c0c2a2e2330507842e56f9a27444" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", "parity-scale-codec", - "parity-util-mem", "paste", - "rand 0.7.3", + "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-weights 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-application-crypto 7.0.0", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6220216caa67e3d931c693b06a3590dfcaa255f19bb3c3e3150f1672b8bc53f6" dependencies = [ "either", "hash256-std-hasher", @@ -3220,74 +3137,74 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 22.0.0", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", + "sp-weights 19.0.0", ] [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b886a5d34400b0e0c12d389e3bb48b7a93d651cddf7e248124b81fe64c339251" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface-proc-macro 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.13.0", + "sp-runtime-interface-proc-macro 6.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", + "sp-tracing 6.0.0", + "sp-wasm-interface 7.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5d0cd80200bf85b8b064238b2508b69b6146b13adf36066ec5d924825af737" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface-proc-macro 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-wasm-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-externalities 0.18.0", + "sp-runtime-interface-proc-macro 10.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", + "sp-tracing 9.0.0", + "sp-wasm-interface 13.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a157f1ce0108b9b87f87e826726049d9b6253318b74410c814be7fc2af416b51" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ae5b00aef477127ddb6177b3464ad1e2bdcc12ee913fc5dfc9d065c6cea89b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] @@ -3298,50 +3215,48 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-state-machine" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5c2d97ad69011d34ca257f0383532b80096d53f889f5894ae2b24a211bec66f" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.15.2", + "hash-db", "log", - "num-traits", "parity-scale-codec", "parking_lot", - "rand 0.7.3", + "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-panic-handler 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-panic-handler 5.0.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "thiserror", "tracing", - "trie-root 0.17.0", ] [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e49c3bfcc8c832c34552cd8194180cc60508c6d3d9b0b9615d6b7c3e275019" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "parking_lot", "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-panic-handler 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-panic-handler 7.0.0", + "sp-std 7.0.0", + "sp-trie 21.0.0", "thiserror", "tracing", ] @@ -3349,49 +3264,48 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3fd4c1d304be101e6ebbafd3d4be9a37b320c970ef4e8df188b16873981c93" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de8eef39962b5b97478719c493bed2926cf70cb621005bbf68ebe58252ff986" [[package]] name = "sp-storage" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb987ed2e4d7d870170a225083ea962f2a359d75cdf76935d5ed8d91bee912d9" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ad1f8c52d4700ac7bc42b3375679a6c6fc1fe876f4b40c6efdf36f933ef0291" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-tracing" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e761df87dc940d87720939de8f976d1fc0657e523886ae0d7bf3f7e2e2f0abb6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3399,11 +3313,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00fab60bf3d42255ce3f678903d3a2564662371c75623de4a1ffc7cac46143df" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3412,48 +3327,48 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4f48c887e90050537e399d2d8b6ee82787ebec0fe46e4880b42cab0c2d5ba6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "ahash 0.7.6", - "hash-db 0.15.2", - "hashbrown 0.12.3", + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", "lazy_static", - "lru", - "memory-db 0.30.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "schnellru", + "sp-core 7.0.0", + "sp-std 5.0.0", "thiserror", "tracing", - "trie-db 0.24.0", - "trie-root 0.17.0", + "trie-db", + "trie-root", ] [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58401c53c08b6ecad83acd7e14534c8bbcb3fa73e81e26685e0ac70e51b00c56" dependencies = [ "ahash 0.8.3", - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "lazy_static", - "memory-db 0.32.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", "schnellru", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-std 7.0.0", "thiserror", "tracing", - "trie-db 0.27.1", - "trie-root 0.18.0", + "trie-db", + "trie-root", ] [[package]] @@ -3467,8 +3382,8 @@ dependencies = [ "scale-info", "serde", "sp-core-hashing-proc-macro", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version-proc-macro", "thiserror", ] @@ -3481,32 +3396,34 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f43c40afab6ecac20505907631c929957ed636b7af8795984649bbaa6ff38c3" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ + "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "wasmi", + "wasmtime", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "153b7374179439e2aa783c66ed439bd86920c67bbc95d34c76390561972bc02f" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "wasmi", "wasmtime", ] @@ -3514,33 +3431,32 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c671673133b30e6ab6d88139b06adcdaec5aa06548abe0e155a0c830b592793b" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123c661915e1bf328e21f8ecbe4e5247feba86f9149b782ea4348004547ce8ef" dependencies = [ "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -3603,26 +3519,33 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "subxt" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3cbc78fd36035a24883eada29e0205b9b1416172530a7d00a60c07d0337db0c" +checksum = "53b9c4ddefcb2d87eb18a6336f65635c29208f766d0deefaa2a1a19f7426a993" dependencies = [ - "bitvec", + "base58", + "blake2", "derivative", + "either", "frame-metadata", "futures", "getrandom 0.2.10", "hex", + "impl-serde", "jsonrpsee", "parity-scale-codec", "parking_lot", - "scale-decode 0.4.0", + "primitive-types", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "scale-value", "serde", "serde_json", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 20.0.0", + "sp-core-hashing 8.0.0", + "sp-runtime 23.0.0", "subxt-macro", "subxt-metadata", "thiserror", @@ -3631,9 +3554,9 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7722c31febf55eb300c73d977da5d65cfd6fb443419b1185b9abcdd9925fd7be" +checksum = "e924f41069e9273236398ff89662d6d336468a5d94faac812129d44547db0e7f" dependencies = [ "darling", "frame-metadata", @@ -3641,20 +3564,20 @@ dependencies = [ "hex", "jsonrpsee", "parity-scale-codec", - "proc-macro-error", "proc-macro2", "quote", "scale-info", "subxt-metadata", "syn 1.0.109", + "thiserror", "tokio", ] [[package]] name = "subxt-macro" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f64826f2c4ba20e3b2a86ec81a6ae8655ca6b6a4c2a6ccc888b6615efc2df14" +checksum = "ced0b043a069ee039f8700d3dfda01be156e4229c82277c305bc8e79a7dd855d" dependencies = [ "darling", "proc-macro-error", @@ -3664,14 +3587,14 @@ dependencies = [ [[package]] name = "subxt-metadata" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869af75e23513538ad0af046af4a97b8d684e8d202e35ff4127ee061c1110813" +checksum = "18be3b8f4308fe7369ee1df66ae59c2eca79de20eab57b0f41c75736e843300f" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 8.0.0", ] [[package]] @@ -3687,27 +3610,15 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.26" +version = "2.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45c3457aacde3c65315de5031ec191ce46604304d2446e803d71ade03308d970" +checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "tap" version = "1.0.1" @@ -3716,28 +3627,28 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.9" +version = "0.12.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df8e77cb757a61f51b947ec4a7e3646efd825b73561db1c232a8ccb639e611a0" +checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a" [[package]] name = "thiserror" -version = "1.0.43" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a35fc5b8971143ca348fa6df4f024d4d55264f3468c71ad1c2f365b0a4d58c42" +checksum = "611040a08a0439f8248d1990b111c95baa9c704c805fa1f62104b39655fd7f90" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.43" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "463fe12d7993d3b327787537ce8dd4dfa058de32fc2b195ef3cde03dc4771e8f" +checksum = "090198534930841fab3a5d1bb637cde49e339654e606195f8d9c76eeb081dc96" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -3750,25 +3661,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-bip39" version = "1.0.0" @@ -3829,7 +3721,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -3901,7 +3793,7 @@ checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -3957,48 +3849,26 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "trie-db" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "log", - "rustc-hex", - "smallvec", -] - [[package]] name = "trie-db" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", ] -[[package]] -name = "trie-root" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" -dependencies = [ - "hash-db 0.15.2", -] - [[package]] name = "trie-root" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -4136,7 +4006,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", "wasm-bindgen-shared", ] @@ -4158,7 +4028,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -4553,9 +4423,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.5.0" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fac9742fd1ad1bd9643b991319f72dd031016d44b77039a26977eb667141e7" +checksum = "acaaa1190073b2b101e15083c38ee8ec891b5e05cbee516521e94ec008f61e64" dependencies = [ "memchr", ] @@ -4577,9 +4447,9 @@ checksum = "735a71d46c4d68d71d4b24d03fdc2b98e38cea81730595801db779c04fe80d70" [[package]] name = "yap" -version = "0.7.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc77f52dc9e9b10d55d3f4462c3b7fc393c4f17975d641542833ab2d3bc26ef" +checksum = "e2a7eb6d82a11e4d0b8e6bda8347169aff4ccd8235d039bba7c47482d977dcf7" [[package]] name = "zeroize" @@ -4598,5 +4468,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] diff --git a/aleph-client/Cargo.toml b/aleph-client/Cargo.toml index 903eab8336..f1dc278f87 100644 --- a/aleph-client/Cargo.toml +++ b/aleph-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aleph_client" -version = "3.4.2" +version = "3.5.0" edition = "2021" authors = ["Cardinal"] documentation = "https://docs.rs/aleph_client" @@ -20,7 +20,7 @@ thiserror = "1.0" serde_json = { version = "1.0.94" } contract-transcode = "2.1.0" ink_metadata = { version = "=4.0.1" } -subxt = "0.25.0" +subxt = { version = "0.28.0", features = ["substrate-compat"] } futures = "0.3.25" serde = { version = "1.0", features = ["derive"] } diff --git a/aleph-client/docker/subxt-integration-entrypoint.sh b/aleph-client/docker/subxt-integration-entrypoint.sh index a60bb03acd..7a8061f4fb 100644 --- a/aleph-client/docker/subxt-integration-entrypoint.sh +++ b/aleph-client/docker/subxt-integration-entrypoint.sh @@ -1,13 +1,14 @@ #!/usr/bin/env bash -subxt codegen --derive Clone --derive Debug --derive Eq --derive PartialEq | rustfmt --edition=2021 --config-path aleph-node/rustfmt.toml > aleph_zero.rs +subxt codegen --derive Clone --derive Debug --derive PartialEq --derive Eq \ + --substitute-type 'sp_core::crypto::AccountId32=::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>' \ + | rustfmt --edition=2021 --config-path aleph-node/rustfmt.toml > aleph_zero.rs; diff -y -W 200 --suppress-common-lines aleph_zero.rs aleph-node/aleph-client/src/aleph_zero.rs diff_exit_code=$? if [[ ! $diff_exit_code -eq 0 ]]; then echo "Current runtime metadata is different than versioned in git!" - echo "Run subxt codegen --derive Clone --derive Debug --derive Eq --derive PartialEq | rustfmt --edition=2021 >" \ -"src/aleph_zero.rs from aleph-client directory and commit to git." - exit 1 + echo "Run subxt codegen command as in $(basename $0) from aleph-client directory and commit to git." + exit 1 fi echo "Current runtime metadata and versioned in git matches." diff --git a/aleph-client/src/aleph_zero.rs b/aleph-client/src/aleph_zero.rs index d1877ae4ba..7b7c2b3cd8 100644 --- a/aleph-client/src/aleph_zero.rs +++ b/aleph-client/src/aleph_zero.rs @@ -1,6 +1,10 @@ #[allow(dead_code, unused_imports, non_camel_case_types)] +#[allow(clippy::all)] pub mod api { - use super::api as root_mod; + #[allow(unused_imports)] + mod root_mod { + pub use super::*; + } pub static PALLETS: [&str; 22usize] = [ "System", "RandomnessCollectiveFlip", @@ -25,14 +29,20 @@ pub mod api { "Identity", "CommitteeManagement", ]; + #[doc = r" The error type returned when there is a runtime issue."] + pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Event { #[codec(index = 0)] System(system::Event), @@ -69,6 +79,342 @@ pub mod api { #[codec(index = 21)] CommitteeManagement(committee_management::Event), } + impl ::subxt::events::RootEvent for Event { + fn root_event( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Event::System(system::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Scheduler" { + return Ok(Event::Scheduler(scheduler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Balances" { + return Ok(Event::Balances(balances::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "TransactionPayment" { + return Ok(Event::TransactionPayment( + transaction_payment::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Event::Staking(staking::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Session" { + return Ok(Event::Session(session::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Aleph" { + return Ok(Event::Aleph(aleph::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Elections" { + return Ok(Event::Elections(elections::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Treasury" { + return Ok(Event::Treasury(treasury::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Vesting" { + return Ok(Event::Vesting(vesting::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Utility" { + return Ok(Event::Utility(utility::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Multisig" { + return Ok(Event::Multisig(multisig::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Sudo" { + return Ok(Event::Sudo(sudo::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Contracts" { + return Ok(Event::Contracts(contracts::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "NominationPools" { + return Ok(Event::NominationPools( + nomination_pools::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Identity" { + return Ok(Event::Identity(identity::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "CommitteeManagement" { + return Ok(Event::CommitteeManagement( + committee_management::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Event enum", + pallet_name + )) + .into()) + } + } + pub fn constants() -> ConstantsApi { + ConstantsApi + } + pub fn storage() -> StorageApi { + StorageApi + } + pub fn tx() -> TransactionApi { + TransactionApi + } + pub struct ConstantsApi; + impl ConstantsApi { + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi + } + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { + scheduler::constants::ConstantsApi + } + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { + timestamp::constants::ConstantsApi + } + pub fn balances(&self) -> balances::constants::ConstantsApi { + balances::constants::ConstantsApi + } + pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { + transaction_payment::constants::ConstantsApi + } + pub fn staking(&self) -> staking::constants::ConstantsApi { + staking::constants::ConstantsApi + } + pub fn elections(&self) -> elections::constants::ConstantsApi { + elections::constants::ConstantsApi + } + pub fn treasury(&self) -> treasury::constants::ConstantsApi { + treasury::constants::ConstantsApi + } + pub fn vesting(&self) -> vesting::constants::ConstantsApi { + vesting::constants::ConstantsApi + } + pub fn utility(&self) -> utility::constants::ConstantsApi { + utility::constants::ConstantsApi + } + pub fn multisig(&self) -> multisig::constants::ConstantsApi { + multisig::constants::ConstantsApi + } + pub fn contracts(&self) -> contracts::constants::ConstantsApi { + contracts::constants::ConstantsApi + } + pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { + nomination_pools::constants::ConstantsApi + } + pub fn identity(&self) -> identity::constants::ConstantsApi { + identity::constants::ConstantsApi + } + pub fn committee_management(&self) -> committee_management::constants::ConstantsApi { + committee_management::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 scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } + pub fn aura(&self) -> aura::storage::StorageApi { + aura::storage::StorageApi + } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi + } + pub fn balances(&self) -> balances::storage::StorageApi { + balances::storage::StorageApi + } + pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { + transaction_payment::storage::StorageApi + } + pub fn authorship(&self) -> authorship::storage::StorageApi { + authorship::storage::StorageApi + } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } + pub fn history(&self) -> history::storage::StorageApi { + history::storage::StorageApi + } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } + pub fn aleph(&self) -> aleph::storage::StorageApi { + aleph::storage::StorageApi + } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::storage::StorageApi + } + pub fn vesting(&self) -> vesting::storage::StorageApi { + vesting::storage::StorageApi + } + pub fn multisig(&self) -> multisig::storage::StorageApi { + multisig::storage::StorageApi + } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } + pub fn contracts(&self) -> contracts::storage::StorageApi { + contracts::storage::StorageApi + } + pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { + nomination_pools::storage::StorageApi + } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } + pub fn committee_management(&self) -> committee_management::storage::StorageApi { + committee_management::storage::StorageApi + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi { + scheduler::calls::TransactionApi + } + pub fn timestamp(&self) -> timestamp::calls::TransactionApi { + timestamp::calls::TransactionApi + } + pub fn balances(&self) -> balances::calls::TransactionApi { + balances::calls::TransactionApi + } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } + pub fn aleph(&self) -> aleph::calls::TransactionApi { + aleph::calls::TransactionApi + } + pub fn elections(&self) -> elections::calls::TransactionApi { + elections::calls::TransactionApi + } + pub fn treasury(&self) -> treasury::calls::TransactionApi { + treasury::calls::TransactionApi + } + pub fn vesting(&self) -> vesting::calls::TransactionApi { + vesting::calls::TransactionApi + } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } + pub fn multisig(&self) -> multisig::calls::TransactionApi { + multisig::calls::TransactionApi + } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } + pub fn contracts(&self) -> contracts::calls::TransactionApi { + contracts::calls::TransactionApi + } + pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { + nomination_pools::calls::TransactionApi + } + pub fn identity(&self) -> identity::calls::TransactionApi { + identity::calls::TransactionApi + } + pub fn committee_management(&self) -> committee_management::calls::TransactionApi { + committee_management::calls::TransactionApi + } + } + #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] + pub fn validate_codegen>( + client: &C, + ) -> Result<(), ::subxt::error::MetadataError> { + let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); + if runtime_metadata_hash + != [ + 39u8, 174u8, 197u8, 179u8, 229u8, 192u8, 75u8, 42u8, 97u8, 10u8, 122u8, 239u8, + 133u8, 198u8, 155u8, 33u8, 96u8, 251u8, 116u8, 80u8, 103u8, 218u8, 200u8, 177u8, + 7u8, 116u8, 58u8, 255u8, 87u8, 50u8, 13u8, 15u8, + ] + { + Err(::subxt::error::MetadataError::IncompatibleMetadata) + } else { + Ok(()) + } + } pub mod system { use super::{root_mod, runtime_types}; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] @@ -78,11 +424,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Remark { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -90,44 +440,60 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHeapPages { pub pages: ::core::primitive::u64, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCode { pub code: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCodeWithoutChecks { pub code: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStorage { pub items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -137,22 +503,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillStorage { pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillPrefix { pub prefix: ::std::vec::Vec<::core::primitive::u8>, pub subkeys: ::core::primitive::u32, @@ -160,11 +534,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemarkWithEvent { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -177,8 +555,8 @@ pub mod api { pub fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "remark", Remark { remark }, @@ -194,8 +572,8 @@ pub mod api { pub fn set_heap_pages( &self, pages: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_heap_pages", SetHeapPages { pages }, @@ -213,8 +591,8 @@ pub mod api { pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_code", SetCode { code }, @@ -232,8 +610,8 @@ pub mod api { pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_code_without_checks", SetCodeWithoutChecks { code }, @@ -251,8 +629,8 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::std::vec::Vec<::core::primitive::u8>, )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_storage", SetStorage { items }, @@ -267,8 +645,8 @@ pub mod api { pub fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "kill_storage", KillStorage { keys }, @@ -288,8 +666,8 @@ pub mod api { &self, prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "kill_prefix", KillPrefix { prefix, subkeys }, @@ -305,8 +683,8 @@ pub mod api { pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "remark_with_event", RemarkWithEvent { remark }, @@ -327,11 +705,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, @@ -343,11 +725,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error: runtime_types::sp_runtime::DispatchError, @@ -360,11 +746,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::events::StaticEvent for CodeUpdated { @@ -374,14 +764,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new account was created."] pub struct NewAccount { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for NewAccount { const PALLET: &'static str = "System"; @@ -390,14 +784,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was reaped."] pub struct KilledAccount { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for KilledAccount { const PALLET: &'static str = "System"; @@ -406,15 +804,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "On on-chain remark happened."] pub struct Remarked { - pub sender: ::subxt::ext::sp_core::crypto::AccountId32, - pub hash: ::subxt::ext::sp_core::H256, + pub sender: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Remarked { const PALLET: &'static str = "System"; @@ -428,26 +830,24 @@ pub mod api { #[doc = " The full account information for a particular account ID."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::types::AccountData< - ::core::primitive::u128, - >, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Account", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 248u8, 178u8, 160u8, 222u8, 45u8, 231u8, 115u8, 164u8, 98u8, 184u8, @@ -460,20 +860,17 @@ pub mod api { #[doc = " The full account information for a particular account ID."] pub fn account_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::types::AccountData< - ::core::primitive::u128, - >, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Account", Vec::new(), @@ -488,13 +885,14 @@ pub mod api { #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicCount", vec![], @@ -508,17 +906,16 @@ pub mod api { #[doc = " The current weight for the block."] pub fn block_weight( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::dispatch::PerDispatchClass< - runtime_types::sp_weights::weight_v2::Weight, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::sp_weights::weight_v2::Weight, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "BlockWeight", vec![], @@ -533,13 +930,14 @@ pub mod api { #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "AllExtrinsicsLen", vec![], @@ -555,18 +953,18 @@ pub mod api { pub fn block_hash( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "BlockHash", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 50u8, 112u8, 176u8, 239u8, 175u8, 18u8, 205u8, 20u8, 241u8, 195u8, @@ -578,13 +976,14 @@ pub mod api { #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "BlockHash", Vec::new(), @@ -599,18 +998,18 @@ pub mod api { pub fn extrinsic_data( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::core::primitive::u8>>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicData", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, 194u8, 238u8, 211u8, @@ -622,13 +1021,14 @@ pub mod api { #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::core::primitive::u8>>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicData", Vec::new(), @@ -642,13 +1042,14 @@ pub mod api { #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Number", vec![], @@ -663,13 +1064,14 @@ pub mod api { #[doc = " Hash of the previous block."] pub fn parent_hash( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ParentHash", vec![], @@ -684,15 +1086,14 @@ pub mod api { #[doc = " Digest of the current block, also part of the block header."] pub fn digest( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_runtime::generic::digest::Digest, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_runtime::generic::digest::Digest, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Digest", vec![], @@ -712,20 +1113,19 @@ pub mod api { #[doc = " just in case someone still reads them from within the runtime."] pub fn events( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec< - runtime_types::frame_system::EventRecord< - runtime_types::aleph_runtime::RuntimeEvent, - ::subxt::ext::sp_core::H256, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::frame_system::EventRecord< + runtime_types::aleph_runtime::RuntimeEvent, + ::subxt::utils::H256, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Events", vec![], @@ -739,13 +1139,14 @@ pub mod api { #[doc = " The number of events in the `Events` list."] pub fn event_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "EventCount", vec![], @@ -769,21 +1170,19 @@ pub mod api { #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "EventTopics", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 205u8, 90u8, 142u8, 190u8, 176u8, 37u8, 94u8, 82u8, 98u8, 1u8, 129u8, @@ -805,15 +1204,14 @@ pub mod api { #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "EventTopics", Vec::new(), @@ -828,15 +1226,14 @@ pub mod api { #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::LastRuntimeUpgradeInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::LastRuntimeUpgradeInfo, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "LastRuntimeUpgrade", vec![], @@ -850,13 +1247,14 @@ pub mod api { #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "UpgradedToU32RefCount", vec![], @@ -871,13 +1269,14 @@ pub mod api { #[doc = " (default) if not."] pub fn upgraded_to_triple_ref_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "UpgradedToTripleRefCount", vec![], @@ -892,13 +1291,14 @@ pub mod api { #[doc = " The execution phase of the block."] pub fn execution_phase( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::Phase, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExecutionPhase", vec![], @@ -919,12 +1319,9 @@ pub mod api { #[doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockWeights, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "BlockWeights", [ @@ -938,12 +1335,9 @@ pub mod api { #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockLength, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "BlockLength", [ @@ -957,10 +1351,8 @@ pub mod api { #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "System", "BlockHashCount", [ @@ -974,10 +1366,9 @@ pub mod api { #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "DbWeight", [ @@ -991,10 +1382,9 @@ pub mod api { #[doc = " Get the chain's current version."] pub fn version( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "Version", [ @@ -1009,12 +1399,8 @@ pub mod api { #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] - pub fn ss58_prefix( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { + ::subxt::constants::Address::new_static( "System", "SS58Prefix", [ @@ -1038,17 +1424,16 @@ pub mod api { #[doc = " the oldest hash."] pub fn random_material( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::H256, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "RandomnessCollectiveFlip", "RandomMaterial", vec![], @@ -1072,11 +1457,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Schedule { pub when: ::core::primitive::u32, pub maybe_periodic: @@ -1087,11 +1476,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, @@ -1099,11 +1492,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamed { pub id: [::core::primitive::u8; 32usize], pub when: ::core::primitive::u32, @@ -1115,22 +1512,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelNamed { pub id: [::core::primitive::u8; 32usize], } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleAfter { pub after: ::core::primitive::u32, pub maybe_periodic: @@ -1141,11 +1546,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamedAfter { pub id: [::core::primitive::u8; 32usize], pub after: ::core::primitive::u32, @@ -1166,8 +1575,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule", Schedule { @@ -1188,8 +1597,8 @@ pub mod api { &self, when: ::core::primitive::u32, index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "cancel", Cancel { when, index }, @@ -1211,8 +1620,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named", ScheduleNamed { @@ -1234,8 +1643,8 @@ pub mod api { pub fn cancel_named( &self, id: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "cancel_named", CancelNamed { id }, @@ -1256,8 +1665,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule_after", ScheduleAfter { @@ -1284,8 +1693,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named_after", ScheduleNamedAfter { @@ -1311,11 +1720,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Scheduled some task."] pub struct Scheduled { pub when: ::core::primitive::u32, @@ -1328,11 +1741,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Canceled some task."] pub struct Canceled { pub when: ::core::primitive::u32, @@ -1345,11 +1762,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Dispatched some task."] pub struct Dispatched { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1363,11 +1784,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1380,11 +1805,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: (::core::primitive::u32, ::core::primitive::u32), @@ -1397,11 +1826,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1418,13 +1851,14 @@ pub mod api { impl StorageApi { pub fn incomplete_since( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "IncompleteSince", vec![], @@ -1440,19 +1874,18 @@ pub mod api { pub fn agenda( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - 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::aleph_runtime::RuntimeCall, - >, - ::core::primitive::u32, - runtime_types::aleph_runtime::OriginCaller, - ::subxt::ext::sp_core::crypto::AccountId32, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_scheduler::Scheduled< + [::core::primitive::u8; 32usize], + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::aleph_runtime::RuntimeCall, >, + ::core::primitive::u32, + runtime_types::aleph_runtime::OriginCaller, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, >, >, @@ -1460,12 +1893,11 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 48u8, 65u8, 163u8, 111u8, 82u8, 33u8, 246u8, 16u8, 83u8, 40u8, 138u8, @@ -1477,19 +1909,18 @@ pub mod api { #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - 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::aleph_runtime::RuntimeCall, - >, - ::core::primitive::u32, - runtime_types::aleph_runtime::OriginCaller, - ::subxt::ext::sp_core::crypto::AccountId32, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_scheduler::Scheduled< + [::core::primitive::u8; 32usize], + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::aleph_runtime::RuntimeCall, >, + ::core::primitive::u32, + runtime_types::aleph_runtime::OriginCaller, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, >, >, @@ -1497,7 +1928,7 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", Vec::new(), @@ -1515,21 +1946,18 @@ pub mod api { pub fn lookup( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Lookup", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 82u8, 20u8, 178u8, 101u8, 108u8, 198u8, 71u8, 99u8, 16u8, 175u8, 15u8, @@ -1545,16 +1973,14 @@ pub mod api { #[doc = " identities."] pub fn lookup_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Lookup", Vec::new(), @@ -1575,12 +2001,9 @@ pub mod api { #[doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Scheduler", "MaximumWeight", [ @@ -1598,10 +2021,8 @@ pub mod api { #[doc = " higher limit under `runtime-benchmarks` feature."] pub fn max_scheduled_per_block( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Scheduler", "MaxScheduledPerBlock", [ @@ -1624,17 +2045,16 @@ pub mod api { #[doc = " The current authority set."] pub fn authorities( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aura", "Authorities", vec![], @@ -1651,13 +2071,14 @@ pub mod api { #[doc = " This will be set in `on_initialize`."] pub fn current_slot( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aura", "CurrentSlot", vec![], @@ -1681,11 +2102,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Set { #[codec(compact)] pub now: ::core::primitive::u64, @@ -1707,11 +2132,8 @@ pub mod api { #[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: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Timestamp", "set", Set { now }, @@ -1731,13 +2153,14 @@ pub mod api { #[doc = " Current time for the current block."] pub fn now( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Timestamp", "Now", vec![], @@ -1751,13 +2174,14 @@ pub mod api { #[doc = " Did the timestamp get updated in this block?"] pub fn did_update( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Timestamp", "DidUpdate", vec![], @@ -1780,10 +2204,8 @@ pub mod api { #[doc = " double this period on default settings."] pub fn minimum_period( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( "Timestamp", "MinimumPeriod", [ @@ -1806,14 +2228,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAllowDeath { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1822,14 +2248,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBalanceDeprecated { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1840,18 +2270,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { - pub source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1860,14 +2294,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferKeepAlive { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1876,14 +2314,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAll { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub keep_alive: ::core::primitive::bool, @@ -1891,14 +2333,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnreserve { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub amount: ::core::primitive::u128, @@ -1906,25 +2352,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpgradeAccounts { - pub who: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub who: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transfer { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1933,14 +2389,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetBalance { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1957,13 +2417,13 @@ pub mod api { #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub fn transfer_allow_death( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer_allow_death", TransferAllowDeath { dest, value }, @@ -1982,14 +2442,14 @@ pub mod api { #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] pub fn set_balance_deprecated( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, new_free: ::core::primitive::u128, old_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "set_balance_deprecated", SetBalanceDeprecated { @@ -2009,17 +2469,17 @@ pub mod api { #[doc = "may be specified."] pub fn force_transfer( &self, - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "force_transfer", ForceTransfer { @@ -2043,13 +2503,13 @@ pub mod api { #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer_keep_alive", TransferKeepAlive { dest, value }, @@ -2078,13 +2538,13 @@ pub mod api { #[doc = " keep the sender account alive (true)."] pub fn transfer_all( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer_all", TransferAll { dest, keep_alive }, @@ -2101,13 +2561,13 @@ pub mod api { #[doc = "Can only be called by ROOT."] pub fn force_unreserve( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "force_unreserve", ForceUnreserve { who, amount }, @@ -2129,9 +2589,11 @@ pub mod api { #[doc = "possibililty of churn)."] pub fn upgrade_accounts( &self, - who: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + who: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "upgrade_accounts", UpgradeAccounts { who }, @@ -2147,13 +2609,13 @@ pub mod api { #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] pub fn transfer( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer", Transfer { dest, value }, @@ -2170,13 +2632,13 @@ pub mod api { #[doc = "The dispatch origin for this call is `root`."] pub fn force_set_balance( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, new_free: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "force_set_balance", ForceSetBalance { who, new_free }, @@ -2196,14 +2658,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was created with some free balance."] pub struct Endowed { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub free_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Endowed { @@ -2213,15 +2679,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DustLost { @@ -2231,15 +2701,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Transfer succeeded."] pub struct Transfer { - pub from: ::subxt::ext::sp_core::crypto::AccountId32, - pub to: ::subxt::ext::sp_core::crypto::AccountId32, + pub from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Transfer { @@ -2249,14 +2723,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A balance was set by root."] pub struct BalanceSet { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub free: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BalanceSet { @@ -2266,14 +2744,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Reserved { @@ -2283,14 +2765,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unreserved { @@ -2300,16 +2786,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: ::subxt::ext::sp_core::crypto::AccountId32, - pub to: ::subxt::ext::sp_core::crypto::AccountId32, + pub from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, pub destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, @@ -2321,14 +2811,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { @@ -2338,14 +2832,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdraw { @@ -2355,14 +2853,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { @@ -2372,14 +2874,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was minted into an account."] pub struct Minted { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Minted { @@ -2389,14 +2895,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was burned from an account."] pub struct Burned { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burned { @@ -2406,14 +2916,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Suspended { @@ -2423,14 +2937,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was restored into an account."] pub struct Restored { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Restored { @@ -2440,14 +2958,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was upgraded."] pub struct Upgraded { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Upgraded { const PALLET: &'static str = "Balances"; @@ -2457,11 +2979,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { pub amount: ::core::primitive::u128, @@ -2474,11 +3000,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { pub amount: ::core::primitive::u128, @@ -2490,14 +3020,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was locked."] pub struct Locked { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Locked { @@ -2507,14 +3041,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unlocked."] pub struct Unlocked { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unlocked { @@ -2524,14 +3062,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was frozen."] pub struct Frozen { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Frozen { @@ -2541,14 +3083,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was thawed."] pub struct Thawed { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Thawed { @@ -2563,13 +3109,14 @@ pub mod api { #[doc = " The total units issued in the system."] pub fn total_issuance( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "TotalIssuance", vec![], @@ -2583,13 +3130,14 @@ pub mod api { #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "InactiveIssuance", vec![], @@ -2627,21 +3175,21 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Account", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 109u8, 250u8, 18u8, 96u8, 139u8, 232u8, 4u8, 139u8, 133u8, 239u8, 30u8, @@ -2677,15 +3225,14 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Account", Vec::new(), @@ -2701,25 +3248,23 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::types::BalanceLock< - ::core::primitive::u128, - >, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Locks", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, 244u8, 134u8, 195u8, @@ -2732,19 +3277,16 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::types::BalanceLock< - ::core::primitive::u128, - >, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Locks", Vec::new(), @@ -2758,26 +3300,26 @@ pub mod api { #[doc = " Named reserves on some account balances."] pub fn reserves( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Reserves", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, 42u8, 250u8, 128u8, @@ -2789,20 +3331,19 @@ pub mod api { #[doc = " Named reserves on some account balances."] pub fn reserves_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Reserves", Vec::new(), @@ -2816,26 +3357,26 @@ pub mod api { #[doc = " Holds on account balances."] pub fn holds( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Holds", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 247u8, 81u8, 4u8, 220u8, 77u8, 205u8, 28u8, 131u8, 215u8, 74u8, 197u8, @@ -2847,20 +3388,19 @@ pub mod api { #[doc = " Holds on account balances."] pub fn holds_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Holds", Vec::new(), @@ -2874,26 +3414,26 @@ pub mod api { #[doc = " Freeze locks on account balances."] pub fn freezes( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Freezes", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 211u8, 24u8, 237u8, 217u8, 47u8, 230u8, 147u8, 39u8, 112u8, 209u8, @@ -2905,20 +3445,19 @@ pub mod api { #[doc = " Freeze locks on account balances."] pub fn freezes_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Freezes", Vec::new(), @@ -2945,10 +3484,8 @@ pub mod api { #[doc = " Bottom line: Do yourself a favour and make it at least one!"] pub fn existential_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Balances", "ExistentialDeposit", [ @@ -2960,12 +3497,8 @@ pub mod api { } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] - pub fn max_locks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxLocks", [ @@ -2977,12 +3510,8 @@ pub mod api { ) } #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxReserves", [ @@ -2994,12 +3523,8 @@ pub mod api { ) } #[doc = " The maximum number of holds that can exist on an account at any time."] - pub fn max_holds( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxHolds", [ @@ -3011,12 +3536,8 @@ pub mod api { ) } #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] - pub fn max_freezes( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxFreezes", [ @@ -3039,15 +3560,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub actual_fee: ::core::primitive::u128, pub tip: ::core::primitive::u128, } @@ -3062,15 +3587,14 @@ pub mod api { impl StorageApi { pub fn next_fee_multiplier( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::fixed_point::FixedU128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "TransactionPayment", "NextFeeMultiplier", vec![], @@ -3084,15 +3608,14 @@ pub mod api { } pub fn storage_version( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_transaction_payment::Releases, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_transaction_payment::Releases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "TransactionPayment", "StorageVersion", vec![], @@ -3132,10 +3655,8 @@ pub mod api { #[doc = " transactions."] pub fn operational_fee_multiplier( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( "TransactionPayment", "OperationalFeeMultiplier", [ @@ -3158,13 +3679,14 @@ pub mod api { #[doc = " Author of current block."] pub fn author( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Authorship", "Author", vec![], @@ -3188,30 +3710,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bond { - pub controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] pub value: ::core::primitive::u128, pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { #[codec(compact)] pub max_additional: ::core::primitive::u128, @@ -3219,11 +3749,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -3232,37 +3766,49 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { pub num_slashing_spans: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Validate { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { pub targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, @@ -3270,47 +3816,63 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPayee { pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetController { - pub controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidatorCount { #[codec(compact)] pub new: ::core::primitive::u32, @@ -3318,11 +3880,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: ::core::primitive::u32, @@ -3330,72 +3896,102 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScaleValidatorCount { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoEras; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEra; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub invulnerables: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnstake { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub num_slashing_spans: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEraAlways; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelDeferredSlash { pub era: ::core::primitive::u32, pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, @@ -3403,23 +3999,32 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PayoutStakers { - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub era: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Rebond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -3427,27 +4032,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReapStash { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub num_slashing_spans: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Kick { pub who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, @@ -3455,11 +4068,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStakingConfigs { pub min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, @@ -3481,33 +4098,46 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChillOther { - pub controller: ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinCommission { pub new: runtime_types::sp_arithmetic::per_things::Perbill, } @@ -3530,16 +4160,16 @@ pub mod api { #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] pub fn bond( &self, - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "bond", Bond { @@ -3572,8 +4202,8 @@ pub mod api { pub fn bond_extra( &self, max_additional: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "bond_extra", BondExtra { max_additional }, @@ -3606,8 +4236,8 @@ pub mod api { pub fn unbond( &self, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "unbond", Unbond { value }, @@ -3636,8 +4266,8 @@ pub mod api { pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "withdraw_unbonded", WithdrawUnbonded { num_slashing_spans }, @@ -3657,8 +4287,8 @@ pub mod api { pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "validate", Validate { prefs }, @@ -3683,13 +4313,13 @@ pub mod api { pub fn nominate( &self, targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "nominate", Nominate { targets }, @@ -3711,8 +4341,8 @@ pub mod api { #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] - pub fn chill(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn chill(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "chill", Chill {}, @@ -3739,10 +4369,10 @@ pub mod api { pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_payee", SetPayee { payee }, @@ -3766,12 +4396,12 @@ pub mod api { #[doc = "- Writes are limited to the `origin` account key."] pub fn set_controller( &self, - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_controller", SetController { controller }, @@ -3791,8 +4421,8 @@ pub mod api { pub fn set_validator_count( &self, new: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_validator_count", SetValidatorCount { new }, @@ -3813,8 +4443,8 @@ pub mod api { pub fn increase_validator_count( &self, additional: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "increase_validator_count", IncreaseValidatorCount { additional }, @@ -3835,8 +4465,8 @@ pub mod api { pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "scale_validator_count", ScaleValidatorCount { factor }, @@ -3861,8 +4491,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] - pub fn force_no_eras(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn force_no_eras(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_no_eras", ForceNoEras {}, @@ -3887,8 +4517,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] - pub fn force_new_era(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn force_new_era(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_new_era", ForceNewEra {}, @@ -3904,9 +4534,11 @@ pub mod api { #[doc = "The dispatch origin must be Root."] pub fn set_invulnerables( &self, - invulnerables: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + invulnerables: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_invulnerables", SetInvulnerables { invulnerables }, @@ -3922,10 +4554,10 @@ pub mod api { #[doc = "The dispatch origin must be Root."] pub fn force_unstake( &self, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_unstake", ForceUnstake { @@ -3949,10 +4581,8 @@ pub mod api { #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] - pub fn force_new_era_always( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn force_new_era_always(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_new_era_always", ForceNewEraAlways {}, @@ -3973,8 +4603,8 @@ pub mod api { &self, era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "cancel_deferred_slash", CancelDeferredSlash { era, slash_indices }, @@ -3999,10 +4629,12 @@ pub mod api { #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] pub fn payout_stakers( &self, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, era: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "payout_stakers", PayoutStakers { @@ -4026,8 +4658,8 @@ pub mod api { pub fn rebond( &self, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "rebond", Rebond { value }, @@ -4053,10 +4685,10 @@ pub mod api { #[doc = "Refunds the transaction fees upon successful execution."] pub fn reap_stash( &self, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "reap_stash", ReapStash { @@ -4085,13 +4717,13 @@ pub mod api { pub fn kick( &self, who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "kick", Kick { who }, @@ -4139,8 +4771,8 @@ pub mod api { min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_staking_configs", SetStakingConfigs { @@ -4186,9 +4818,9 @@ pub mod api { #[doc = "who do not satisfy these requirements."] pub fn chill_other( &self, - controller: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + controller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "chill_other", ChillOther { controller }, @@ -4204,9 +4836,11 @@ pub mod api { #[doc = "can call this."] pub fn force_apply_min_commission( &self, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + validator_stash: ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_apply_min_commission", ForceApplyMinCommission { validator_stash }, @@ -4225,8 +4859,8 @@ pub mod api { pub fn set_min_commission( &self, new: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_min_commission", SetMinCommission { new }, @@ -4247,11 +4881,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] #[doc = "the remainder from the maximum amount of reward."] pub struct EraPaid { @@ -4266,14 +4904,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The nominator has been rewarded by this amount."] pub struct Rewarded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { @@ -4283,14 +4925,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] pub struct Slashed { - pub staker: ::subxt::ext::sp_core::crypto::AccountId32, + pub staker: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { @@ -4300,15 +4946,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] pub struct SlashReported { - pub validator: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, pub slash_era: ::core::primitive::u32, } @@ -4320,11 +4970,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed."] pub struct OldSlashingReportDiscarded { @@ -4337,11 +4991,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::events::StaticEvent for StakersElected { @@ -4351,17 +5009,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has bonded this amount. \\[stash, amount\\]"] #[doc = ""] #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] pub struct Bonded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Bonded { @@ -4371,14 +5033,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has unbonded this amount."] pub struct Unbonded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unbonded { @@ -4388,15 +5054,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] pub struct Withdrawn { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { @@ -4406,15 +5076,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A nominator has been kicked from a validator."] pub struct Kicked { - pub nominator: ::subxt::ext::sp_core::crypto::AccountId32, - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Kicked { const PALLET: &'static str = "Staking"; @@ -4423,11 +5097,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::events::StaticEvent for StakingElectionFailed { @@ -4437,14 +5115,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has stopped participating as either a validator or nominator."] pub struct Chilled { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Chilled { const PALLET: &'static str = "Staking"; @@ -4453,15 +5135,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for PayoutStarted { const PALLET: &'static str = "Staking"; @@ -4470,14 +5157,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A validator has set their preferences."] pub struct ValidatorPrefsSet { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::events::StaticEvent for ValidatorPrefsSet { @@ -4487,11 +5178,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new force era mode was set."] pub struct ForceEra { pub mode: runtime_types::pallet_staking::Forcing, @@ -4508,13 +5203,14 @@ pub mod api { #[doc = " The ideal number of active validators."] pub fn validator_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorCount", vec![], @@ -4528,13 +5224,14 @@ pub mod api { #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinimumValidatorCount", vec![], @@ -4550,15 +5247,16 @@ pub mod api { #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Invulnerables", vec![], @@ -4574,19 +5272,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Bonded", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, 77u8, 15u8, 118u8, @@ -4600,13 +5300,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Bonded", Vec::new(), @@ -4620,13 +5321,14 @@ pub mod api { #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinNominatorBond", vec![], @@ -4640,13 +5342,14 @@ pub mod api { #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinValidatorBond", vec![], @@ -4660,13 +5363,14 @@ pub mod api { #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinimumActiveStake", vec![], @@ -4682,15 +5386,14 @@ pub mod api { #[doc = " If set to `0`, no limit exists."] pub fn min_commission( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinCommission", vec![], @@ -4704,21 +5407,21 @@ pub mod api { #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::StakingLedger, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Ledger", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, 33u8, 189u8, 124u8, @@ -4731,15 +5434,14 @@ pub mod api { #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::StakingLedger, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Ledger", Vec::new(), @@ -4756,23 +5458,23 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Payee", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, 187u8, 163u8, 20u8, @@ -4787,17 +5489,16 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Payee", Vec::new(), @@ -4814,21 +5515,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Validators", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, 43u8, 24u8, 149u8, @@ -4843,15 +5544,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Validators", Vec::new(), @@ -4866,13 +5566,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CounterForValidators", vec![], @@ -4888,13 +5589,14 @@ pub mod api { #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MaxValidatorsCount", vec![], @@ -4925,19 +5627,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Nominators", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, 254u8, 19u8, 152u8, @@ -4967,13 +5671,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Nominators", Vec::new(), @@ -4988,13 +5693,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CounterForNominators", vec![], @@ -5010,13 +5716,14 @@ pub mod api { #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MaxNominatorsCount", vec![], @@ -5034,13 +5741,14 @@ pub mod api { #[doc = " set, it might be active or not."] pub fn current_era( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CurrentEra", vec![], @@ -5057,15 +5765,14 @@ pub mod api { #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ActiveEraInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ActiveEraInfo, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ActiveEra", vec![], @@ -5083,18 +5790,18 @@ pub mod api { pub fn eras_start_session_index( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStartSessionIndex", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, 230u8, 229u8, @@ -5110,13 +5817,14 @@ pub mod api { #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStartSessionIndex", Vec::new(), @@ -5137,30 +5845,25 @@ pub mod api { pub fn eras_stakers( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakers", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, 15u8, 139u8, 210u8, @@ -5177,18 +5880,17 @@ pub mod api { #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakers", Vec::new(), @@ -5213,30 +5915,25 @@ pub mod api { pub fn eras_stakers_clipped( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakersClipped", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, 153u8, 26u8, 55u8, 71u8, @@ -5259,18 +5956,17 @@ pub mod api { #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakersClipped", Vec::new(), @@ -5290,27 +5986,22 @@ pub mod api { pub fn eras_validator_prefs( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorPrefs", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, 129u8, 62u8, 4u8, @@ -5327,15 +6018,14 @@ pub mod api { #[doc = " Is it removed after `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorPrefs", Vec::new(), @@ -5353,18 +6043,18 @@ pub mod api { pub fn eras_validator_reward( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorReward", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, 231u8, 84u8, 124u8, @@ -5378,13 +6068,14 @@ pub mod api { #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorReward", Vec::new(), @@ -5400,22 +6091,20 @@ pub mod api { pub fn eras_reward_points( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasRewardPoints", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, 88u8, 65u8, 24u8, @@ -5428,17 +6117,16 @@ pub mod api { #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasRewardPoints", Vec::new(), @@ -5454,18 +6142,18 @@ pub mod api { pub fn eras_total_stake( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasTotalStake", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, 240u8, 4u8, 46u8, 77u8, @@ -5478,13 +6166,14 @@ pub mod api { #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasTotalStake", Vec::new(), @@ -5498,13 +6187,14 @@ pub mod api { #[doc = " Mode of era forcing."] pub fn force_era( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Forcing, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ForceEra", vec![], @@ -5520,15 +6210,14 @@ pub mod api { #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SlashRewardFraction", vec![], @@ -5544,13 +6233,14 @@ pub mod api { #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CanceledSlashPayout", vec![], @@ -5565,25 +6255,23 @@ pub mod api { pub fn unapplied_slashes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "UnappliedSlashes", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, 47u8, 125u8, 57u8, @@ -5595,20 +6283,19 @@ pub mod api { #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "UnappliedSlashes", Vec::new(), @@ -5625,15 +6312,14 @@ pub mod api { #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "BondedEras", vec![], @@ -5650,28 +6336,25 @@ pub mod api { pub fn validator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128, - )>, + ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorSlashInEra", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, 251u8, 196u8, 85u8, @@ -5685,16 +6368,17 @@ pub mod api { #[doc = " and slash value of the era."] pub fn validator_slash_in_era_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128, - )>, + ), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorSlashInEra", Vec::new(), @@ -5710,25 +6394,22 @@ pub mod api { pub fn nominator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "NominatorSlashInEra", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, 12u8, 53u8, 101u8, 80u8, @@ -5740,13 +6421,14 @@ pub mod api { #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "NominatorSlashInEra", Vec::new(), @@ -5760,21 +6442,21 @@ pub mod api { #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SlashingSpans, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SlashingSpans", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, 255u8, 204u8, 44u8, @@ -5786,15 +6468,14 @@ pub mod api { #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SlashingSpans, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SlashingSpans", Vec::new(), @@ -5809,25 +6490,24 @@ pub mod api { #[doc = " as well as how much reward has been paid out."] pub fn span_slash( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SpanSlash", - vec![::subxt::storage::address::StorageMapKey::new( - &(_0.borrow(), _1.borrow()), - ::subxt::storage::address::StorageHasher::Twox64Concat, - )], + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, 116u8, 210u8, 225u8, 230u8, 224u8, @@ -5839,18 +6519,15 @@ pub mod api { #[doc = " Records information about the maximum slash of a stash within a slashing span,"] #[doc = " as well as how much reward has been paid out."] pub fn span_slash_root( - &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, - >, + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SpanSlash", Vec::new(), @@ -5867,13 +6544,14 @@ pub mod api { #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CurrentPlannedSession", vec![], @@ -5895,15 +6573,14 @@ pub mod api { #[doc = " the era ends."] pub fn offending_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "OffendingValidators", vec![], @@ -5919,15 +6596,14 @@ pub mod api { #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Percent, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Percent, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ChillThreshold", vec![], @@ -5947,10 +6623,8 @@ pub mod api { #[doc = " Maximum number of nominations per nominator."] pub fn max_nominations( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "MaxNominations", [ @@ -5981,12 +6655,8 @@ pub mod api { #[doc = " the existing value can lead to inconsistencies in the"] #[doc = " `StakingLedger` and will need to be handled properly in a migration."] #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] - pub fn history_depth( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "HistoryDepth", [ @@ -6000,10 +6670,8 @@ pub mod api { #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "SessionsPerEra", [ @@ -6017,10 +6685,8 @@ pub mod api { #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "BondingDuration", [ @@ -6037,10 +6703,8 @@ pub mod api { #[doc = " should be applied immediately, without opportunity for intervention."] pub fn slash_defer_duration( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "SlashDeferDuration", [ @@ -6057,10 +6721,8 @@ pub mod api { #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] pub fn max_nominator_rewarded_per_validator( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "MaxNominatorRewardedPerValidator", [ @@ -6083,10 +6745,8 @@ pub mod api { #[doc = " this effect."] pub fn max_unlocking_chunks( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "MaxUnlockingChunks", [ @@ -6110,21 +6770,18 @@ pub mod api { pub fn historical_sessions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::H256, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "History", "HistoricalSessions", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 94u8, 72u8, 245u8, 151u8, 214u8, 10u8, 12u8, 113u8, 13u8, 141u8, 176u8, @@ -6136,16 +6793,14 @@ pub mod api { #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::H256, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "History", "HistoricalSessions", Vec::new(), @@ -6159,16 +6814,14 @@ pub mod api { #[doc = " The range of historical sessions we store. [first, last)"] pub fn stored_range( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "History", "StoredRange", vec![], @@ -6191,11 +6844,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKeys { pub keys: runtime_types::aleph_runtime::SessionKeys, pub proof: ::std::vec::Vec<::core::primitive::u8>, @@ -6203,11 +6860,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PurgeKeys; pub struct TransactionApi; impl TransactionApi { @@ -6224,8 +6885,8 @@ pub mod api { &self, keys: runtime_types::aleph_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Session", "set_keys", SetKeys { keys, proof }, @@ -6249,8 +6910,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] #[doc = " `T::Keys::key_ids()` which is fixed."] - pub fn purge_keys(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn purge_keys(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Session", "purge_keys", PurgeKeys {}, @@ -6271,11 +6932,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] pub struct NewSession { @@ -6293,15 +6958,16 @@ pub mod api { #[doc = " The current set of validators."] pub fn validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "Validators", vec![], @@ -6316,13 +6982,14 @@ pub mod api { #[doc = " Current index of the session."] pub fn current_index( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "CurrentIndex", vec![], @@ -6338,13 +7005,14 @@ pub mod api { #[doc = " has changed in the queued validator set."] pub fn queued_changed( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "QueuedChanged", vec![], @@ -6359,18 +7027,17 @@ pub mod api { #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, - runtime_types::aleph_runtime::SessionKeys, - )>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + runtime_types::aleph_runtime::SessionKeys, + )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "QueuedKeys", vec![], @@ -6389,13 +7056,14 @@ pub mod api { #[doc = " a new set of identities."] pub fn disabled_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::core::primitive::u32>>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "DisabledValidators", vec![], @@ -6410,19 +7078,21 @@ pub mod api { #[doc = " The next session keys for a validator."] pub fn next_keys( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::aleph_runtime::SessionKeys, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "NextKeys", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 18u8, 209u8, 31u8, 20u8, 131u8, 9u8, 97u8, 157u8, 63u8, 9u8, 233u8, @@ -6434,13 +7104,14 @@ pub mod api { #[doc = " The next session keys for a validator."] pub fn next_keys_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::aleph_runtime::SessionKeys, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "NextKeys", Vec::new(), @@ -6456,19 +7127,20 @@ pub mod api { &self, _0: impl ::std::borrow::Borrow, _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "KeyOwner", - vec![::subxt::storage::address::StorageMapKey::new( - &(_0.borrow(), _1.borrow()), - ::subxt::storage::address::StorageHasher::Twox64Concat, - )], + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, @@ -6479,13 +7151,14 @@ pub mod api { #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "KeyOwner", Vec::new(), @@ -6508,22 +7181,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetEmergencyFinalizer { pub emergency_finalizer: runtime_types::primitives::app::Public, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleFinalityVersionChange { pub version_incoming: ::core::primitive::u32, pub session: ::core::primitive::u32, @@ -6535,8 +7216,8 @@ pub mod api { pub fn set_emergency_finalizer( &self, emergency_finalizer: runtime_types::primitives::app::Public, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Aleph", "set_emergency_finalizer", SetEmergencyFinalizer { @@ -6559,8 +7240,8 @@ pub mod api { &self, version_incoming: ::core::primitive::u32, session: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Aleph", "schedule_finality_version_change", ScheduleFinalityVersionChange { @@ -6584,11 +7265,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChangeEmergencyFinalizer(pub runtime_types::primitives::app::Public); impl ::subxt::events::StaticEvent for ChangeEmergencyFinalizer { const PALLET: &'static str = "Aleph"; @@ -6597,11 +7282,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleFinalityVersionChange(pub runtime_types::primitives::VersionChange); impl ::subxt::events::StaticEvent for ScheduleFinalityVersionChange { const PALLET: &'static str = "Aleph"; @@ -6610,11 +7299,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FinalityVersionChange(pub runtime_types::primitives::VersionChange); impl ::subxt::events::StaticEvent for FinalityVersionChange { const PALLET: &'static str = "Aleph"; @@ -6627,15 +7320,14 @@ pub mod api { impl StorageApi { pub fn authorities( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "Authorities", vec![], @@ -6648,38 +7340,38 @@ pub mod api { } pub fn next_authorities( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "NextAuthorities", vec![], [ - 238u8, 1u8, 244u8, 43u8, 190u8, 78u8, 240u8, 93u8, 131u8, 11u8, 91u8, - 30u8, 227u8, 120u8, 217u8, 184u8, 43u8, 182u8, 123u8, 177u8, 14u8, - 115u8, 84u8, 216u8, 180u8, 3u8, 211u8, 174u8, 212u8, 124u8, 110u8, - 140u8, + 161u8, 194u8, 43u8, 73u8, 107u8, 117u8, 78u8, 35u8, 42u8, 21u8, 171u8, + 138u8, 249u8, 160u8, 189u8, 224u8, 27u8, 44u8, 148u8, 211u8, 34u8, + 46u8, 170u8, 179u8, 12u8, 43u8, 146u8, 213u8, 137u8, 68u8, 117u8, + 105u8, ], ) } #[doc = " Set of account ids that will be used as authorities in the next session"] pub fn next_finality_committee( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "NextFinalityCommittee", vec![], @@ -6692,13 +7384,14 @@ pub mod api { } pub fn emergency_finalizer( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::app::Public, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "EmergencyFinalizer", vec![], @@ -6711,13 +7404,14 @@ pub mod api { } pub fn queued_emergency_finalizer( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::app::Public, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "QueuedEmergencyFinalizer", vec![], @@ -6730,13 +7424,14 @@ pub mod api { } pub fn next_emergency_finalizer( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::app::Public, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "NextEmergencyFinalizer", vec![], @@ -6750,13 +7445,14 @@ pub mod api { #[doc = " Current finality version."] pub fn finality_version( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "FinalityVersion", vec![], @@ -6771,13 +7467,14 @@ pub mod api { #[doc = " Scheduled finality version change."] pub fn finality_scheduled_version_change( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::VersionChange, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "FinalityScheduledVersionChange", vec![], @@ -6801,17 +7498,25 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChangeValidators { pub reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, pub non_reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, pub committee_size: ::core::option::Option, @@ -6819,11 +7524,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetElectionsOpenness { pub openness: runtime_types::primitives::ElectionOpenness, } @@ -6832,16 +7541,20 @@ pub mod api { pub fn change_validators( &self, reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, non_reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, committee_size: ::core::option::Option< runtime_types::primitives::CommitteeSeats, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Elections", "change_validators", ChangeValidators { @@ -6860,8 +7573,8 @@ pub mod api { pub fn set_elections_openness( &self, openness: runtime_types::primitives::ElectionOpenness, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Elections", "set_elections_openness", SetElectionsOpenness { openness }, @@ -6882,15 +7595,23 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Committee for the next era has changed"] pub struct ChangeValidators( - pub ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - pub ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + pub ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub runtime_types::primitives::CommitteeSeats, ); impl ::subxt::events::StaticEvent for ChangeValidators { @@ -6905,13 +7626,14 @@ pub mod api { #[doc = " Desirable size of a committee, see [`CommitteeSeats`]."] pub fn committee_size( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::CommitteeSeats, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "CommitteeSize", vec![], @@ -6925,13 +7647,14 @@ pub mod api { #[doc = " Desired size of a committee in effect from a new era."] pub fn next_era_committee_size( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::CommitteeSeats, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "NextEraCommitteeSize", vec![], @@ -6946,15 +7669,16 @@ pub mod api { #[doc = " Next era's list of reserved validators."] pub fn next_era_reserved_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "NextEraReservedValidators", vec![], @@ -6968,17 +7692,16 @@ pub mod api { #[doc = " Current era's list of reserved validators."] pub fn current_era_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::primitives::EraValidators< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::EraValidators< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "CurrentEraValidators", vec![], @@ -6993,15 +7716,16 @@ pub mod api { #[doc = " Next era's list of non reserved validators."] pub fn next_era_non_reserved_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "NextEraNonReservedValidators", vec![], @@ -7016,15 +7740,14 @@ pub mod api { #[doc = " the validators list is managed by sudo"] pub fn openness( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::primitives::ElectionOpenness, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::ElectionOpenness, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "Openness", vec![], @@ -7046,12 +7769,8 @@ pub mod api { #[doc = " implementation."] #[doc = ""] #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] - pub fn max_winners( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_winners(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Elections", "MaxWinners", [ @@ -7074,27 +7793,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeSpend { #[codec(compact)] pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RejectProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -7102,11 +7829,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -7114,27 +7845,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Spend { #[codec(compact)] pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveApproval { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -7150,12 +7889,12 @@ pub mod api { pub fn propose_spend( &self, value: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "propose_spend", ProposeSpend { value, beneficiary }, @@ -7175,8 +7914,8 @@ pub mod api { pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "reject_proposal", RejectProposal { proposal_id }, @@ -7198,8 +7937,8 @@ pub mod api { pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "approve_proposal", ApproveProposal { proposal_id }, @@ -7221,12 +7960,12 @@ pub mod api { pub fn spend( &self, amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "spend", Spend { @@ -7256,8 +7995,8 @@ pub mod api { pub fn remove_approval( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "remove_approval", RemoveApproval { proposal_id }, @@ -7278,11 +8017,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New proposal."] pub struct Proposed { pub proposal_index: ::core::primitive::u32, @@ -7295,11 +8038,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { pub budget_remaining: ::core::primitive::u128, @@ -7311,16 +8058,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been allocated."] pub struct Awarded { pub proposal_index: ::core::primitive::u32, pub award: ::core::primitive::u128, - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Awarded { const PALLET: &'static str = "Treasury"; @@ -7329,11 +8080,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal was rejected; funds were slashed."] pub struct Rejected { pub proposal_index: ::core::primitive::u32, @@ -7347,11 +8102,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some of our funds have been burnt."] pub struct Burnt { pub burnt_funds: ::core::primitive::u128, @@ -7364,11 +8123,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { pub rollover_balance: ::core::primitive::u128, @@ -7381,11 +8144,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been deposited."] pub struct Deposit { pub value: ::core::primitive::u128, @@ -7397,16 +8164,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new spend proposal has been approved."] pub struct SpendApproved { pub proposal_index: ::core::primitive::u32, pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for SpendApproved { const PALLET: &'static str = "Treasury"; @@ -7415,11 +8186,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The inactive funds of the pallet have been updated."] pub struct UpdatedInactive { pub reactivated: ::core::primitive::u128, @@ -7437,13 +8212,14 @@ pub mod api { #[doc = " Number of proposals that have been made."] pub fn proposal_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "ProposalCount", vec![], @@ -7459,23 +8235,21 @@ pub mod api { pub fn proposals( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_treasury::Proposal< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Proposals", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 62u8, 223u8, 55u8, 209u8, 151u8, 134u8, 122u8, 65u8, 207u8, 38u8, @@ -7487,18 +8261,17 @@ pub mod api { #[doc = " Proposals that have been made."] pub fn proposals_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_treasury::Proposal< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Proposals", Vec::new(), @@ -7512,13 +8285,14 @@ pub mod api { #[doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Deactivated", vec![], @@ -7532,17 +8306,16 @@ pub mod api { #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Approvals", vec![], @@ -7564,12 +8337,9 @@ pub mod api { #[doc = " An accepted proposal gets these back. A rejected proposal does not."] pub fn proposal_bond( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Treasury", "ProposalBond", [ @@ -7582,10 +8352,8 @@ pub mod api { #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Treasury", "ProposalBondMinimum", [ @@ -7598,12 +8366,9 @@ pub mod api { #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> + { + ::subxt::constants::Address::new_static( "Treasury", "ProposalBondMaximum", [ @@ -7615,12 +8380,8 @@ pub mod api { ) } #[doc = " Period between successive spends."] - pub fn spend_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Treasury", "SpendPeriod", [ @@ -7634,12 +8395,9 @@ pub mod api { #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Treasury", "Burn", [ @@ -7652,10 +8410,9 @@ pub mod api { #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Treasury", "PalletId", [ @@ -7668,12 +8425,8 @@ pub mod api { #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] - pub fn max_approvals( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Treasury", "MaxApprovals", [ @@ -7696,37 +8449,49 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vest; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestOther { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestedTransfer { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -7737,18 +8502,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceVestedTransfer { - pub source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -7759,11 +8528,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MergeSchedules { pub schedule1_index: ::core::primitive::u32, pub schedule2_index: ::core::primitive::u32, @@ -7779,8 +8552,8 @@ pub mod api { #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] - pub fn vest(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn vest(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "vest", Vest {}, @@ -7804,12 +8577,12 @@ pub mod api { #[doc = "- `O(1)`."] pub fn vest_other( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "vest_other", VestOther { target }, @@ -7836,16 +8609,16 @@ pub mod api { #[doc = "- `O(1)`."] pub fn vested_transfer( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "vested_transfer", VestedTransfer { target, schedule }, @@ -7873,20 +8646,20 @@ pub mod api { #[doc = "- `O(1)`."] pub fn force_vested_transfer( &self, - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "force_vested_transfer", ForceVestedTransfer { @@ -7926,8 +8699,8 @@ pub mod api { &self, schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "merge_schedules", MergeSchedules { @@ -7950,15 +8723,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub unvested: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for VestingUpdated { @@ -7968,14 +8745,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for VestingCompleted { const PALLET: &'static str = "Vesting"; @@ -7989,26 +8770,26 @@ pub mod api { #[doc = " Information regarding the vesting of a given account."] pub fn vesting( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, >, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 23u8, 209u8, 233u8, 126u8, 89u8, 156u8, 193u8, 204u8, 100u8, 90u8, @@ -8020,20 +8801,19 @@ pub mod api { #[doc = " Information regarding the vesting of a given account."] pub fn vesting_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, >, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", Vec::new(), @@ -8049,13 +8829,14 @@ pub mod api { #[doc = " New networks start with latest version, as determined by the genesis build."] pub fn storage_version( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_vesting::Releases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Vesting", "StorageVersion", vec![], @@ -8075,10 +8856,8 @@ pub mod api { #[doc = " The minimum amount transferred to call `vested_transfer`."] pub fn min_vested_transfer( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Vesting", "MinVestedTransfer", [ @@ -8090,10 +8869,8 @@ pub mod api { } pub fn max_vesting_schedules( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Vesting", "MaxVestingSchedules", [ @@ -8116,22 +8893,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Batch { pub calls: ::std::vec::Vec, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsDerivative { pub index: ::core::primitive::u16, pub call: ::std::boxed::Box, @@ -8139,22 +8924,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BatchAll { pub calls: ::std::vec::Vec, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchAs { pub as_origin: ::std::boxed::Box, pub call: ::std::boxed::Box, @@ -8162,22 +8955,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceBatch { pub calls: ::std::vec::Vec, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithWeight { pub call: ::std::boxed::Box, pub weight: runtime_types::sp_weights::weight_v2::Weight, @@ -8205,8 +9006,8 @@ pub mod api { pub fn batch( &self, calls: ::std::vec::Vec, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "batch", Batch { calls }, @@ -8234,8 +9035,8 @@ pub mod api { &self, index: ::core::primitive::u16, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "as_derivative", AsDerivative { @@ -8266,8 +9067,8 @@ pub mod api { pub fn batch_all( &self, calls: ::std::vec::Vec, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "batch_all", BatchAll { calls }, @@ -8288,8 +9089,8 @@ pub mod api { &self, as_origin: runtime_types::aleph_runtime::OriginCaller, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "dispatch_as", DispatchAs { @@ -8319,8 +9120,8 @@ pub mod api { pub fn force_batch( &self, calls: ::std::vec::Vec, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "force_batch", ForceBatch { calls }, @@ -8341,8 +9142,8 @@ pub mod api { &self, call: runtime_types::aleph_runtime::RuntimeCall, weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "with_weight", WithWeight { @@ -8365,11 +9166,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 { @@ -8383,11 +9188,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; impl ::subxt::events::StaticEvent for BatchCompleted { @@ -8397,11 +9206,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors; impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { @@ -8411,11 +9224,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; impl ::subxt::events::StaticEvent for ItemCompleted { @@ -8425,11 +9242,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { pub error: runtime_types::sp_runtime::DispatchError, @@ -8441,11 +9262,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A call was dispatched."] pub struct DispatchedAs { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -8462,10 +9287,8 @@ pub mod api { #[doc = " The limit on the number of batched calls."] pub fn batched_calls_limit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Utility", "batched_calls_limit", [ @@ -8488,26 +9311,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMultiThreshold1 { - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub call: ::std::boxed::Box, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -8517,14 +9352,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveAsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -8534,14 +9375,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelAsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, pub call_hash: [::core::primitive::u8; 32usize], } @@ -8561,10 +9408,12 @@ pub mod api { #[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: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "as_multi_threshold_1", AsMultiThreshold1 { @@ -8621,14 +9470,16 @@ pub mod api { pub fn as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, call: runtime_types::aleph_runtime::RuntimeCall, max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "as_multi", AsMulti { @@ -8678,14 +9529,16 @@ pub mod api { pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::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, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "approve_as_multi", ApproveAsMulti { @@ -8727,11 +9580,13 @@ pub mod api { pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "cancel_as_multi", CancelAsMulti { @@ -8756,15 +9611,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new multisig operation has begun."] pub struct NewMultisig { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for NewMultisig { @@ -8774,16 +9633,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigApproval { @@ -8793,16 +9656,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } @@ -8813,16 +9680,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { - pub cancelling: ::subxt::ext::sp_core::crypto::AccountId32, + pub cancelling: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigCancelled { @@ -8837,32 +9708,27 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Multisig", "Multisigs", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 69u8, 153u8, 186u8, 204u8, 117u8, 95u8, 119u8, 182u8, 220u8, 87u8, 8u8, @@ -8874,19 +9740,18 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Multisig", "Multisigs", Vec::new(), @@ -8909,12 +9774,8 @@ pub mod api { #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] - pub fn deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Multisig", "DepositBase", [ @@ -8929,10 +9790,8 @@ pub mod api { #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] pub fn deposit_factor( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Multisig", "DepositFactor", [ @@ -8945,10 +9804,8 @@ pub mod api { #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Multisig", "MaxSignatories", [ @@ -8971,22 +9828,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Sudo { pub call: ::std::boxed::Box, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoUncheckedWeight { pub call: ::std::boxed::Box, pub weight: runtime_types::sp_weights::weight_v2::Weight, @@ -8994,28 +9859,36 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKey { - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoAs { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub call: ::std::boxed::Box, @@ -9031,8 +9904,8 @@ pub mod api { pub fn sudo( &self, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo", Sudo { @@ -9057,8 +9930,8 @@ pub mod api { &self, call: runtime_types::aleph_runtime::RuntimeCall, weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo_unchecked_weight", SudoUncheckedWeight { @@ -9081,12 +9954,12 @@ pub mod api { #[doc = "- O(1)."] pub fn set_key( &self, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "set_key", SetKey { new }, @@ -9106,13 +9979,13 @@ pub mod api { #[doc = "- O(1)."] pub fn sudo_as( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo_as", SudoAs { @@ -9135,11 +10008,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sudo just took place. \\[result\\]"] pub struct Sudid { pub sudo_result: @@ -9152,14 +10029,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] pub struct KeyChanged { - pub old_sudoer: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub old_sudoer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } impl ::subxt::events::StaticEvent for KeyChanged { const PALLET: &'static str = "Sudo"; @@ -9168,11 +10051,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sudo just took place. \\[result\\]"] pub struct SudoAsDone { pub sudo_result: @@ -9190,13 +10077,14 @@ pub mod api { #[doc = " The `AccountId` of the sudo key."] pub fn key( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Sudo", "Key", vec![], @@ -9219,14 +10107,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CallOldWeight { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -9240,11 +10132,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstantiateWithCodeOldWeight { #[codec(compact)] pub value: ::core::primitive::u128, @@ -9259,11 +10155,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstantiateOldWeight { #[codec(compact)] pub value: ::core::primitive::u128, @@ -9271,18 +10171,22 @@ pub mod api { pub gas_limit: ::core::primitive::u64, pub storage_deposit_limit: ::core::option::Option<::subxt::ext::codec::Compact<::core::primitive::u128>>, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, pub data: ::std::vec::Vec<::core::primitive::u8>, pub salt: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UploadCode { pub code: ::std::vec::Vec<::core::primitive::u8>, pub storage_deposit_limit: @@ -9292,40 +10196,52 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveCode { - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCode { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Call { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -9338,11 +10254,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstantiateWithCode { #[codec(compact)] pub value: ::core::primitive::u128, @@ -9356,18 +10276,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Instantiate { #[codec(compact)] pub value: ::core::primitive::u128, pub gas_limit: runtime_types::sp_weights::weight_v2::Weight, pub storage_deposit_limit: ::core::option::Option<::subxt::ext::codec::Compact<::core::primitive::u128>>, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, pub data: ::std::vec::Vec<::core::primitive::u8>, pub salt: ::std::vec::Vec<::core::primitive::u8>, } @@ -9376,8 +10300,8 @@ pub mod api { #[doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] pub fn call_old_weight( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, @@ -9386,8 +10310,8 @@ pub mod api { ::subxt::ext::codec::Compact<::core::primitive::u128>, >, data: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "call_old_weight", CallOldWeight { @@ -9416,8 +10340,8 @@ pub mod api { code: ::std::vec::Vec<::core::primitive::u8>, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate_with_code_old_weight", InstantiateWithCodeOldWeight { @@ -9443,11 +10367,11 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate_old_weight", InstantiateOldWeight { @@ -9492,8 +10416,8 @@ pub mod api { ::subxt::ext::codec::Compact<::core::primitive::u128>, >, determinism: runtime_types::pallet_contracts::wasm::Determinism, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "upload_code", UploadCode { @@ -9514,9 +10438,9 @@ pub mod api { #[doc = "not used by any contract."] pub fn remove_code( &self, - code_hash: ::subxt::ext::sp_core::H256, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + code_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "remove_code", RemoveCode { code_hash }, @@ -9539,13 +10463,13 @@ pub mod api { #[doc = "this dispatchable."] pub fn set_code( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - code_hash: ::subxt::ext::sp_core::H256, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + code_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "set_code", SetCode { dest, code_hash }, @@ -9575,8 +10499,8 @@ pub mod api { #[doc = "a regular account will be created and any value will be transferred."] pub fn call( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, @@ -9585,8 +10509,8 @@ pub mod api { ::subxt::ext::codec::Compact<::core::primitive::u128>, >, data: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "call", Call { @@ -9640,8 +10564,8 @@ pub mod api { code: ::std::vec::Vec<::core::primitive::u8>, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate_with_code", InstantiateWithCode { @@ -9671,11 +10595,11 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate", Instantiate { @@ -9702,15 +10626,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contract deployed by address at the specified address."] pub struct Instantiated { - pub deployer: ::subxt::ext::sp_core::crypto::AccountId32, - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, + pub deployer: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Instantiated { const PALLET: &'static str = "Contracts"; @@ -9719,11 +10647,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contract has been removed."] #[doc = ""] #[doc = "# Note"] @@ -9731,8 +10663,8 @@ pub mod api { #[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: ::subxt::ext::sp_core::crypto::AccountId32, - pub beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub beneficiary: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Terminated { const PALLET: &'static str = "Contracts"; @@ -9741,14 +10673,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Code with the specified hash has been stored."] pub struct CodeStored { - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for CodeStored { const PALLET: &'static str = "Contracts"; @@ -9757,14 +10693,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A custom event emitted by the contract."] pub struct ContractEmitted { - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub data: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for ContractEmitted { @@ -9774,14 +10714,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A code with the specified hash was removed."] pub struct CodeRemoved { - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for CodeRemoved { const PALLET: &'static str = "Contracts"; @@ -9790,16 +10734,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A contract's code was updated."] pub struct ContractCodeUpdated { - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, - pub new_code_hash: ::subxt::ext::sp_core::H256, - pub old_code_hash: ::subxt::ext::sp_core::H256, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub new_code_hash: ::subxt::utils::H256, + pub old_code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for ContractCodeUpdated { const PALLET: &'static str = "Contracts"; @@ -9808,11 +10756,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A contract was called either by a plain account or another contract."] #[doc = ""] #[doc = "# Note"] @@ -9821,8 +10773,8 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] pub struct Called { - pub caller: ::subxt::ext::sp_core::crypto::AccountId32, - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, + pub caller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Called { const PALLET: &'static str = "Contracts"; @@ -9831,11 +10783,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A contract delegate called a code hash."] #[doc = ""] #[doc = "# Note"] @@ -9844,8 +10800,8 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] pub struct DelegateCalled { - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, - pub code_hash: ::subxt::ext::sp_core::H256, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for DelegateCalled { const PALLET: &'static str = "Contracts"; @@ -9859,23 +10815,21 @@ pub mod api { #[doc = " A mapping from an original code hash to the original code, untouched by instrumentation."] pub fn pristine_code( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "PristineCode", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, )], [ 244u8, 169u8, 220u8, 235u8, 62u8, 153u8, 226u8, 187u8, 220u8, 141u8, @@ -9888,17 +10842,16 @@ pub mod api { #[doc = " A mapping from an original code hash to the original code, untouched by instrumentation."] pub fn pristine_code_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "PristineCode", Vec::new(), @@ -9913,21 +10866,19 @@ pub mod api { #[doc = " A mapping between an original code hash and instrumented wasm code, ready for execution."] pub fn code_storage( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::PrefabWasmModule, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::PrefabWasmModule, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "CodeStorage", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, )], [ 135u8, 67u8, 120u8, 68u8, 191u8, 176u8, 13u8, 35u8, 114u8, 76u8, 58u8, @@ -9940,15 +10891,14 @@ pub mod api { #[doc = " A mapping between an original code hash and instrumented wasm code, ready for execution."] pub fn code_storage_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::PrefabWasmModule, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::PrefabWasmModule, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "CodeStorage", Vec::new(), @@ -9963,21 +10913,19 @@ pub mod api { #[doc = " A mapping between an original code hash and its owner information."] pub fn owner_info_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::OwnerInfo, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::OwnerInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "OwnerInfoOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, )], [ 147u8, 6u8, 225u8, 62u8, 211u8, 236u8, 61u8, 116u8, 152u8, 219u8, @@ -9990,15 +10938,14 @@ pub mod api { #[doc = " A mapping between an original code hash and its owner information."] pub fn owner_info_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::OwnerInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::OwnerInfo, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "OwnerInfoOf", Vec::new(), @@ -10034,13 +10981,14 @@ pub mod api { #[doc = " a contract is destroyed."] pub fn nonce( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "Nonce", vec![], @@ -10057,21 +11005,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::storage::ContractInfo, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::storage::ContractInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "ContractInfoOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 232u8, 91u8, 50u8, 59u8, 181u8, 61u8, 225u8, 209u8, 85u8, 192u8, 4u8, @@ -10085,15 +11033,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::storage::ContractInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::storage::ContractInfo, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "ContractInfoOf", Vec::new(), @@ -10111,22 +11058,20 @@ pub mod api { pub fn deletion_queue( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "DeletionQueue", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 249u8, 233u8, 96u8, 16u8, 170u8, 151u8, 40u8, 157u8, 85u8, 237u8, @@ -10141,17 +11086,16 @@ pub mod api { #[doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] pub fn deletion_queue_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "DeletionQueue", Vec::new(), @@ -10166,15 +11110,14 @@ pub mod api { #[doc = " and the latest deleted contract in queue."] pub fn deletion_queue_counter( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::storage::DeletionQueueManager, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::storage::DeletionQueueManager, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "DeletionQueueCounter", vec![], @@ -10194,12 +11137,9 @@ pub mod api { #[doc = " Cost schedule and limits."] pub fn schedule( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::schedule::Schedule, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Contracts", "Schedule", [ @@ -10216,10 +11156,8 @@ pub mod api { #[doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_byte( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Contracts", "DepositPerByte", [ @@ -10232,10 +11170,8 @@ pub mod api { #[doc = " Fallback value to limit the storage deposit if it's not being set by the caller."] pub fn default_deposit_limit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Contracts", "DefaultDepositLimit", [ @@ -10252,10 +11188,8 @@ pub mod api { #[doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_item( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Contracts", "DepositPerItem", [ @@ -10272,12 +11206,8 @@ pub mod api { #[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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_code_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Contracts", "MaxCodeLen", [ @@ -10291,10 +11221,8 @@ pub mod api { #[doc = " The maximum allowable length in bytes for storage keys."] pub fn max_storage_key_len( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Contracts", "MaxStorageKeyLen", [ @@ -10316,10 +11244,8 @@ pub mod api { #[doc = " Do **not** set to `true` on productions chains."] pub fn unsafe_unstable_interface( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::bool> { + ::subxt::constants::Address::new_static( "Contracts", "UnsafeUnstableInterface", [ @@ -10332,10 +11258,8 @@ pub mod api { #[doc = " The maximum length of the debug buffer in bytes."] pub fn max_debug_buffer_len( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Contracts", "MaxDebugBufferLen", [ @@ -10358,11 +11282,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Join { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -10371,11 +11299,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { pub extra: runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, @@ -10383,23 +11315,31 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayout; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { - pub member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -10408,11 +11348,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolWithdrawUnbonded { pub pool_id: ::core::primitive::u32, pub num_slashing_spans: ::core::primitive::u32, @@ -10420,14 +11364,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { - pub member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub num_slashing_spans: ::core::primitive::u32, @@ -10435,48 +11383,56 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { #[codec(compact)] pub amount: ::core::primitive::u128, - pub root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateWithPoolId { #[codec(compact)] pub amount: ::core::primitive::u128, - pub root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub pool_id: ::core::primitive::u32, @@ -10484,23 +11440,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub validators: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetState { pub pool_id: ::core::primitive::u32, pub state: runtime_types::pallet_nomination_pools::PoolState, @@ -10508,11 +11474,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { pub pool_id: ::core::primitive::u32, pub metadata: ::std::vec::Vec<::core::primitive::u8>, @@ -10520,11 +11490,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetConfigs { pub min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, @@ -10543,46 +11517,58 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpdateRoles { pub pool_id: ::core::primitive::u32, pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill { pub pool_id: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtraOther { - pub member: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub extra: @@ -10591,48 +11577,64 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetClaimPermission { pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayoutOther { - pub other: ::subxt::ext::sp_core::crypto::AccountId32, + pub other: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommission { pub pool_id: ::core::primitive::u32, pub new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionMax { pub pool_id: ::core::primitive::u32, pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -10640,11 +11642,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionChangeRate { pub pool_id: ::core::primitive::u32, pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -10655,11 +11661,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimCommission { pub pool_id: ::core::primitive::u32, } @@ -10679,8 +11689,8 @@ pub mod api { &self, amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "join", Join { amount, pool_id }, @@ -10704,8 +11714,8 @@ pub mod api { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra", BondExtra { extra }, @@ -10725,8 +11735,8 @@ pub mod api { #[doc = "members in the pools stake. Rewards do not \"expire\"."] #[doc = ""] #[doc = "See `claim_payout_other` to caim rewards on bahalf of some `other` pool member."] - pub fn claim_payout(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn claim_payout(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout", ClaimPayout {}, @@ -10770,13 +11780,13 @@ pub mod api { #[doc = "staking system."] pub fn unbond( &self, - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "unbond", Unbond { @@ -10800,8 +11810,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "pool_withdraw_unbonded", PoolWithdrawUnbonded { @@ -10837,13 +11847,13 @@ pub mod api { #[doc = "If the target is the depositor, the pool will be destroyed."] pub fn withdraw_unbonded( &self, - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "withdraw_unbonded", WithdrawUnbonded { @@ -10878,20 +11888,20 @@ pub mod api { pub fn create( &self, amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "create", Create { @@ -10917,21 +11927,21 @@ pub mod api { pub fn create_with_pool_id( &self, amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "create_with_pool_id", CreateWithPoolId { @@ -10958,9 +11968,11 @@ pub mod api { pub fn nominate( &self, pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + validators: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "nominate", Nominate { @@ -10988,8 +12000,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_state", SetState { pool_id, state }, @@ -11009,8 +12021,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_metadata", SetMetadata { pool_id, metadata }, @@ -11052,8 +12064,8 @@ pub mod api { global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_configs", SetConfigs { @@ -11083,16 +12095,16 @@ pub mod api { &self, pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "update_roles", UpdateRoles { @@ -11119,8 +12131,8 @@ pub mod api { pub fn chill( &self, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "chill", Chill { pool_id }, @@ -11142,15 +12154,15 @@ pub mod api { #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] pub fn bond_extra_other( &self, - member: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra_other", BondExtraOther { member, extra }, @@ -11176,8 +12188,8 @@ pub mod api { pub fn set_claim_permission( &self, permission: runtime_types::pallet_nomination_pools::ClaimPermission, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_claim_permission", SetClaimPermission { permission }, @@ -11194,9 +12206,9 @@ pub mod api { #[doc = "for this call to be successful."] pub fn claim_payout_other( &self, - other: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + other: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout_other", ClaimPayoutOther { other }, @@ -11217,10 +12229,10 @@ pub mod api { pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_commission", SetCommission { @@ -11243,8 +12255,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_max", SetCommissionMax { @@ -11268,8 +12280,8 @@ pub mod api { change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_change_rate", SetCommissionChangeRate { @@ -11292,8 +12304,8 @@ pub mod api { pub fn claim_commission( &self, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "claim_commission", ClaimCommission { pool_id }, @@ -11314,14 +12326,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been created."] pub struct Created { - pub depositor: ::subxt::ext::sp_core::crypto::AccountId32, + pub depositor: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Created { @@ -11331,14 +12347,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has became bonded in a pool."] pub struct Bonded { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub bonded: ::core::primitive::u128, pub joined: ::core::primitive::bool, @@ -11350,14 +12370,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A payout has been made to a member."] pub struct PaidOut { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub payout: ::core::primitive::u128, } @@ -11368,11 +12392,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has unbonded from their pool."] #[doc = ""] #[doc = "- `balance` is the corresponding balance of the number of points that has been"] @@ -11385,7 +12413,7 @@ pub mod api { #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] pub struct Unbonded { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, @@ -11398,11 +12426,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has withdrawn from their pool."] #[doc = ""] #[doc = "The given number of `points` have been dissolved in return of `balance`."] @@ -11410,7 +12442,7 @@ pub mod api { #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] pub struct Withdrawn { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, @@ -11423,11 +12455,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been destroyed."] pub struct Destroyed { pub pool_id: ::core::primitive::u32, @@ -11439,11 +12475,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The state of a pool has changed"] pub struct StateChanged { pub pool_id: ::core::primitive::u32, @@ -11456,17 +12496,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has been removed from a pool."] #[doc = ""] #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] pub struct MemberRemoved { pub pool_id: ::core::primitive::u32, - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "NominationPools"; @@ -11475,17 +12519,27 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] pub struct RolesUpdated { - pub root: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub bouncer: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub nominator: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub root: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + pub bouncer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + pub nominator: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } impl ::subxt::events::StaticEvent for RolesUpdated { const PALLET: &'static str = "NominationPools"; @@ -11494,11 +12548,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] pub struct PoolSlashed { pub pool_id: ::core::primitive::u32, @@ -11511,11 +12569,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] pub struct UnbondingPoolSlashed { pub pool_id: ::core::primitive::u32, @@ -11529,17 +12591,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's commission setting has been changed."] pub struct PoolCommissionUpdated { pub pool_id: ::core::primitive::u32, pub current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, } impl ::subxt::events::StaticEvent for PoolCommissionUpdated { @@ -11549,11 +12615,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's maximum commission setting has been changed."] pub struct PoolMaxCommissionUpdated { pub pool_id: ::core::primitive::u32, @@ -11566,11 +12636,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's commission `change_rate` has been changed."] pub struct PoolCommissionChangeRateUpdated { pub pool_id: ::core::primitive::u32, @@ -11585,11 +12659,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Pool commission has been claimed."] pub struct PoolCommissionClaimed { pub pool_id: ::core::primitive::u32, @@ -11607,13 +12685,14 @@ pub mod api { #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MinJoinBond", vec![], @@ -11634,13 +12713,14 @@ pub mod api { #[doc = " while all other accounts leave."] pub fn min_create_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MinCreateBond", vec![], @@ -11656,13 +12736,14 @@ pub mod api { #[doc = " pools can exist."] pub fn max_pools( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPools", vec![], @@ -11677,13 +12758,14 @@ pub mod api { #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembers", vec![], @@ -11698,13 +12780,14 @@ pub mod api { #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembersPerPool", vec![], @@ -11720,15 +12803,14 @@ pub mod api { #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] pub fn global_max_commission( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "GlobalMaxCommission", vec![], @@ -11745,21 +12827,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::PoolMember, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "PoolMembers", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, 144u8, 5u8, 108u8, 70u8, @@ -11774,15 +12856,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::PoolMember, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "PoolMembers", Vec::new(), @@ -11797,13 +12878,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForPoolMembers", vec![], @@ -11819,20 +12901,18 @@ pub mod api { pub fn bonded_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::BondedPoolInner, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "BondedPools", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 3u8, 183u8, 140u8, 154u8, 74u8, 225u8, 69u8, 243u8, 150u8, 132u8, @@ -11845,15 +12925,14 @@ pub mod api { #[doc = " Storage for bonded pools."] pub fn bonded_pools_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::BondedPoolInner, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "BondedPools", Vec::new(), @@ -11868,13 +12947,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForBondedPools", vec![], @@ -11891,20 +12971,18 @@ pub mod api { pub fn reward_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::RewardPool, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "RewardPools", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 235u8, 6u8, 2u8, 103u8, 137u8, 31u8, 109u8, 165u8, 129u8, 48u8, 154u8, @@ -11918,15 +12996,14 @@ pub mod api { #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::RewardPool, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "RewardPools", Vec::new(), @@ -11941,13 +13018,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForRewardPools", vec![], @@ -11964,20 +13042,18 @@ pub mod api { pub fn sub_pools_storage( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::SubPools, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "SubPoolsStorage", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, 134u8, 224u8, 196u8, @@ -11991,15 +13067,14 @@ pub mod api { #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::SubPools, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "SubPoolsStorage", Vec::new(), @@ -12014,13 +13089,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForSubPoolsStorage", vec![], @@ -12035,22 +13111,20 @@ pub mod api { pub fn metadata( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "Metadata", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, 62u8, 97u8, 163u8, @@ -12063,17 +13137,16 @@ pub mod api { #[doc = " Metadata for the pool."] pub fn metadata_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "Metadata", Vec::new(), @@ -12088,13 +13161,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForMetadata", vec![], @@ -12109,13 +13183,14 @@ pub mod api { #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "LastPoolId", vec![], @@ -12132,19 +13207,21 @@ pub mod api { #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ReversePoolIdLookup", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, 236u8, 159u8, 36u8, @@ -12159,13 +13236,14 @@ pub mod api { #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ReversePoolIdLookup", Vec::new(), @@ -12179,13 +13257,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForReversePoolIdLookup", vec![], @@ -12200,21 +13279,21 @@ pub mod api { #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::ClaimPermission, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ClaimPermissions", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 23u8, 124u8, 83u8, 109u8, 174u8, 228u8, 170u8, 25u8, 124u8, 91u8, @@ -12227,15 +13306,14 @@ pub mod api { #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::ClaimPermission, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ClaimPermissions", Vec::new(), @@ -12256,10 +13334,9 @@ pub mod api { #[doc = " The nomination pool's pallet id."] pub fn pallet_id( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "NominationPools", "PalletId", [ @@ -12283,10 +13360,8 @@ pub mod api { #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] pub fn max_points_to_balance( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( "NominationPools", "MaxPointsToBalance", [ @@ -12309,59 +13384,79 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddRegistrar { - pub account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetIdentity { pub info: ::std::boxed::Box, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSubs { pub subs: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, )>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearIdentity; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -12372,22 +13467,30 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelRequest { pub reg_index: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFee { #[codec(compact)] pub index: ::core::primitive::u32, @@ -12397,27 +13500,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetAccountId { #[codec(compact)] pub index: ::core::primitive::u32, - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFields { #[codec(compact)] pub index: ::core::primitive::u32, @@ -12428,47 +13539,59 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProvideJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub judgement: runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>, - pub identity: ::subxt::ext::sp_core::H256, + pub identity: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillIdentity { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddSub { - pub sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub data: runtime_types::pallet_identity::types::Data, @@ -12476,14 +13599,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RenameSub { - pub sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub data: runtime_types::pallet_identity::types::Data, @@ -12491,25 +13618,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveSub { - pub sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QuitSub; pub struct TransactionApi; impl TransactionApi { @@ -12525,12 +13660,12 @@ pub mod api { #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] pub fn add_registrar( &self, - account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "add_registrar", AddRegistrar { account }, @@ -12560,8 +13695,8 @@ pub mod api { pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_identity", SetIdentity { @@ -12591,11 +13726,11 @@ pub mod api { pub fn set_subs( &self, subs: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_subs", SetSubs { subs }, @@ -12621,8 +13756,8 @@ pub mod api { #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - pub fn clear_identity(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn clear_identity(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "clear_identity", ClearIdentity {}, @@ -12658,8 +13793,8 @@ pub mod api { &self, reg_index: ::core::primitive::u32, max_fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "request_judgement", RequestJudgement { reg_index, max_fee }, @@ -12688,8 +13823,8 @@ pub mod api { pub fn cancel_request( &self, reg_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "cancel_request", CancelRequest { reg_index }, @@ -12715,8 +13850,8 @@ pub mod api { &self, index: ::core::primitive::u32, fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_fee", SetFee { index, fee }, @@ -12741,12 +13876,12 @@ pub mod api { pub fn set_account_id( &self, index: ::core::primitive::u32, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_account_id", SetAccountId { index, new }, @@ -12774,8 +13909,8 @@ pub mod api { fields: runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_fields", SetFields { index, fields }, @@ -12806,16 +13941,16 @@ pub mod api { pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, - identity: ::subxt::ext::sp_core::H256, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + identity: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "provide_judgement", ProvideJudgement { @@ -12851,12 +13986,12 @@ pub mod api { #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn kill_identity( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "kill_identity", KillIdentity { target }, @@ -12877,13 +14012,13 @@ pub mod api { #[doc = "sub identity of `sub`."] pub fn add_sub( &self, - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "add_sub", AddSub { sub, data }, @@ -12901,13 +14036,13 @@ pub mod api { #[doc = "sub identity of `sub`."] pub fn rename_sub( &self, - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "rename_sub", RenameSub { sub, data }, @@ -12928,12 +14063,12 @@ pub mod api { #[doc = "sub identity of `sub`."] pub fn remove_sub( &self, - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "remove_sub", RemoveSub { sub }, @@ -12955,8 +14090,8 @@ pub mod api { #[doc = ""] #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] #[doc = "controller of an account is maliciously registered as a sub-account."] - pub fn quit_sub(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn quit_sub(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "quit_sub", QuitSub {}, @@ -12976,14 +14111,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for IdentitySet { const PALLET: &'static str = "Identity"; @@ -12992,14 +14131,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityCleared { @@ -13009,14 +14152,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityKilled { @@ -13026,14 +14173,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementRequested { @@ -13043,14 +14194,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementUnrequested { @@ -13060,14 +14215,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { - pub target: ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementGiven { @@ -13078,11 +14237,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A registrar was added."] pub struct RegistrarAdded { pub registrar_index: ::core::primitive::u32, @@ -13094,15 +14257,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { - pub sub: ::subxt::ext::sp_core::crypto::AccountId32, - pub main: ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityAdded { @@ -13112,15 +14279,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { - pub sub: ::subxt::ext::sp_core::crypto::AccountId32, - pub main: ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRemoved { @@ -13130,16 +14301,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { - pub sub: ::subxt::ext::sp_core::crypto::AccountId32, - pub main: ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRevoked { @@ -13156,23 +14331,21 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "IdentityOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 193u8, 195u8, 180u8, 188u8, 129u8, 250u8, 180u8, 219u8, 22u8, 95u8, @@ -13187,17 +14360,14 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "IdentityOf", Vec::new(), @@ -13213,22 +14383,24 @@ pub mod api { #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::crypto::AccountId32, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, - )>, + ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SuperOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 170u8, 249u8, 112u8, 249u8, 75u8, 176u8, 21u8, 29u8, 152u8, 149u8, @@ -13242,16 +14414,17 @@ pub mod api { #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::crypto::AccountId32, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, - )>, + ), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SuperOf", Vec::new(), @@ -13270,24 +14443,26 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( ::core::primitive::u128, runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - )>, + ), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 128u8, 15u8, 175u8, 155u8, 216u8, 225u8, 200u8, 169u8, 215u8, 206u8, @@ -13303,18 +14478,19 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( ::core::primitive::u128, runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - )>, + ), (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", Vec::new(), @@ -13331,14 +14507,13 @@ pub mod api { #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::option::Option< - runtime_types::pallet_identity::types::RegistrarInfo< - ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_identity::types::RegistrarInfo< + ::core::primitive::u128, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, >, >, @@ -13346,7 +14521,7 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "Registrars", vec![], @@ -13366,10 +14541,8 @@ pub mod api { #[doc = " The amount held on deposit for a registered identity"] pub fn basic_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Identity", "BasicDeposit", [ @@ -13382,10 +14555,8 @@ pub mod api { #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Identity", "FieldDeposit", [ @@ -13400,10 +14571,8 @@ pub mod api { #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Identity", "SubAccountDeposit", [ @@ -13416,10 +14585,8 @@ pub mod api { #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Identity", "MaxSubAccounts", [ @@ -13434,10 +14601,8 @@ pub mod api { #[doc = " required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Identity", "MaxAdditionalFields", [ @@ -13452,10 +14617,8 @@ pub mod api { #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Identity", "MaxRegistrars", [ @@ -13478,11 +14641,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBanConfig { pub minimal_expected_performance: ::core::option::Option<::core::primitive::u8>, pub underperformed_session_count_threshold: @@ -13493,35 +14660,47 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BanFromCommittee { - pub banned: ::subxt::ext::sp_core::crypto::AccountId32, + pub banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub ban_reason: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelBan { - pub banned: ::subxt::ext::sp_core::crypto::AccountId32, + pub banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetLenientThreshold { pub threshold_percent: ::core::primitive::u8, } @@ -13536,8 +14715,8 @@ pub mod api { >, clean_session_counter_delay: ::core::option::Option<::core::primitive::u32>, ban_period: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "set_ban_config", SetBanConfig { @@ -13557,10 +14736,10 @@ pub mod api { #[doc = "Schedule a non-reserved node to be banned out from the committee at the end of the era"] pub fn ban_from_committee( &self, - banned: ::subxt::ext::sp_core::crypto::AccountId32, + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ban_reason: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "ban_from_committee", BanFromCommittee { banned, ban_reason }, @@ -13574,9 +14753,9 @@ pub mod api { #[doc = "Cancel the ban of the node"] pub fn cancel_ban( &self, - banned: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "cancel_ban", CancelBan { banned }, @@ -13592,8 +14771,8 @@ pub mod api { pub fn set_lenient_threshold( &self, threshold_percent: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "set_lenient_threshold", SetLenientThreshold { threshold_percent }, @@ -13613,11 +14792,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Ban thresholds for the next era has changed"] pub struct SetBanConfig(pub runtime_types::primitives::BanConfig); impl ::subxt::events::StaticEvent for SetBanConfig { @@ -13627,15 +14810,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Validators have been banned from the committee"] pub struct BanValidators( pub ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::primitives::BanInfo, )>, ); @@ -13650,15 +14837,14 @@ pub mod api { impl StorageApi { pub fn lenient_threshold( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perquintill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perquintill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "LenientThreshold", vec![], @@ -13673,19 +14859,21 @@ pub mod api { #[doc = " A lookup how many blocks a validator produced."] pub fn session_validator_block_count( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "SessionValidatorBlockCount", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 186u8, 91u8, 185u8, 144u8, 216u8, 179u8, 157u8, 132u8, 17u8, 247u8, @@ -13698,13 +14886,14 @@ pub mod api { #[doc = " A lookup how many blocks a validator produced."] pub fn session_validator_block_count_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "SessionValidatorBlockCount", Vec::new(), @@ -13719,17 +14908,16 @@ pub mod api { #[doc = " Total possible reward per validator for the current era."] pub fn validator_era_total_reward( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_committee_management::ValidatorTotalRewards< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_committee_management::ValidatorTotalRewards< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "ValidatorEraTotalReward", vec![], @@ -13743,13 +14931,14 @@ pub mod api { #[doc = " Current era config for ban functionality, see [`BanConfig`]"] pub fn ban_config( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::BanConfig, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "BanConfig", vec![], @@ -13763,19 +14952,21 @@ pub mod api { #[doc = " A lookup for a number of underperformance sessions for a given validator"] pub fn underperformed_validator_session_count( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "UnderperformedValidatorSessionCount", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 46u8, 74u8, 46u8, 159u8, 162u8, 118u8, 159u8, 155u8, 233u8, 63u8, @@ -13788,13 +14979,14 @@ pub mod api { #[doc = " A lookup for a number of underperformance sessions for a given validator"] pub fn underperformed_validator_session_count_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "UnderperformedValidatorSessionCount", Vec::new(), @@ -13809,19 +15001,21 @@ pub mod api { #[doc = " Validators to be removed from non reserved list in the next era"] pub fn banned( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::BanInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "Banned", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 202u8, 38u8, 165u8, 35u8, 95u8, 207u8, 116u8, 43u8, 148u8, 73u8, 193u8, @@ -13833,13 +15027,14 @@ pub mod api { #[doc = " Validators to be removed from non reserved list in the next era"] pub fn banned_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::BanInfo, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "Banned", Vec::new(), @@ -13853,17 +15048,16 @@ pub mod api { #[doc = " SessionValidators in the current session."] pub fn current_and_next_session_validators_storage( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_committee_management::CurrentAndNextSessionValidators< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_committee_management::CurrentAndNextSessionValidators< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "CurrentAndNextSessionValidatorsStorage", vec![], @@ -13883,10 +15077,8 @@ pub mod api { #[doc = " Nr of blocks in the session."] pub fn session_period( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "CommitteeManagement", "SessionPeriod", [ @@ -13907,16 +15099,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum OriginCaller { #[codec(index = 0)] system( runtime_types::frame_support::dispatch::RawOrigin< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ), #[codec(index = 1)] @@ -13925,20 +15121,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Runtime; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeCall { #[codec(index = 0)] System(runtime_types::frame_system::pallet::Call), @@ -13978,11 +15182,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeEvent { #[codec(index = 0)] System(runtime_types::frame_system::pallet::Event), @@ -14022,11 +15230,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { pub aura: runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public, pub aleph: runtime_types::primitives::app::Public, @@ -14039,11 +15251,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); } pub mod bounded_vec { @@ -14051,11 +15267,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); } pub mod weak_bounded_vec { @@ -14063,11 +15283,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); } } @@ -14078,11 +15302,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchClass { #[codec(index = 0)] Normal, @@ -14094,11 +15322,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchInfo { pub weight: runtime_types::sp_weights::weight_v2::Weight, pub class: runtime_types::frame_support::dispatch::DispatchClass, @@ -14107,11 +15339,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Pays { #[codec(index = 0)] Yes, @@ -14121,11 +15357,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PerDispatchClass<_0> { pub normal: _0, pub operational: _0, @@ -14134,11 +15374,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RawOrigin<_0> { #[codec(index = 0)] Root, @@ -14155,15 +15399,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Bounded<_0> { #[codec(index = 0)] Legacy { - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, }, #[codec(index = 1)] Inline( @@ -14173,7 +15421,7 @@ pub mod api { ), #[codec(index = 2)] Lookup { - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, len: ::core::primitive::u32, }, __Ignore(::core::marker::PhantomData<_0>), @@ -14186,11 +15434,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BalanceStatus { #[codec(index = 0)] Free, @@ -14203,11 +15455,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PalletId(pub [::core::primitive::u8; 8usize]); } pub mod frame_system { @@ -14219,11 +15475,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckGenesis; } pub mod check_mortality { @@ -14231,11 +15491,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); } pub mod check_non_zero_sender { @@ -14243,11 +15507,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonZeroSender; } pub mod check_nonce { @@ -14255,11 +15523,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); } pub mod check_spec_version { @@ -14267,11 +15539,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckSpecVersion; } pub mod check_tx_version { @@ -14279,11 +15555,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckTxVersion; } pub mod check_weight { @@ -14291,11 +15571,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckWeight; } } @@ -14304,11 +15588,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockLength { pub max: runtime_types::frame_support::dispatch::PerDispatchClass< ::core::primitive::u32, @@ -14317,11 +15605,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockWeights { pub base_block: runtime_types::sp_weights::weight_v2::Weight, pub max_block: runtime_types::sp_weights::weight_v2::Weight, @@ -14332,11 +15624,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeightsPerClass { pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, pub max_extrinsic: @@ -14352,11 +15648,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -14417,11 +15717,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the System pallet"] pub enum Error { #[codec(index = 0)] @@ -14450,11 +15754,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Event for the System pallet."] pub enum Event { #[codec(index = 0)] @@ -14474,29 +15782,33 @@ pub mod api { #[codec(index = 3)] #[doc = "A new account was created."] NewAccount { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 4)] #[doc = "An account was reaped."] KilledAccount { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 5)] #[doc = "On on-chain remark happened."] Remarked { - sender: ::subxt::ext::sp_core::crypto::AccountId32, - hash: ::subxt::ext::sp_core::H256, + sender: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + hash: ::subxt::utils::H256, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountInfo<_0, _1> { pub nonce: _0, pub consumers: _0, @@ -14507,11 +15819,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EventRecord<_0, _1> { pub phase: runtime_types::frame_system::Phase, pub event: _0, @@ -14520,11 +15836,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { #[codec(compact)] pub spec_version: ::core::primitive::u32, @@ -14533,11 +15853,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase { #[codec(index = 0)] ApplyExtrinsic(::core::primitive::u32), @@ -14554,11 +15878,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -14582,11 +15910,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -14605,11 +15937,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -14621,8 +15957,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] transfer_allow_death { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -14636,8 +15972,8 @@ pub mod api { #[doc = ""] #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] set_balance_deprecated { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -14649,12 +15985,12 @@ pub mod api { #[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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -14668,8 +16004,8 @@ pub mod api { #[doc = ""] #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -14692,8 +16028,8 @@ pub mod api { #[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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, keep_alive: ::core::primitive::bool, @@ -14703,8 +16039,8 @@ pub mod api { #[doc = ""] #[doc = "Can only be called by ROOT."] force_unreserve { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, amount: ::core::primitive::u128, @@ -14719,15 +16055,17 @@ pub mod api { #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] #[doc = "possibililty of churn)."] upgrade_accounts { - who: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + who: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 7)] #[doc = "Alias for `transfer_allow_death`, provided only for name-wise compatibility."] #[doc = ""] #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] transfer { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -14738,8 +16076,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] force_set_balance { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -14749,11 +16087,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -14790,57 +16132,61 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "An account was created with some free balance."] Endowed { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, free_balance: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] DustLost { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Transfer succeeded."] Transfer { - from: ::subxt::ext::sp_core::crypto::AccountId32, - to: ::subxt::ext::sp_core::crypto::AccountId32, + from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A balance was set by root."] BalanceSet { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, free: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some balance was reserved (moved from free to reserved)."] Reserved { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] ReserveRepatriated { - from: ::subxt::ext::sp_core::crypto::AccountId32, - to: ::subxt::ext::sp_core::crypto::AccountId32, + from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, @@ -14848,49 +16194,49 @@ pub mod api { #[codec(index = 7)] #[doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 10)] #[doc = "Some amount was minted into an account."] Minted { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 11)] #[doc = "Some amount was burned from an account."] Burned { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 12)] #[doc = "Some amount was suspended from an account (it can be restored later)."] Suspended { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 13)] #[doc = "Some amount was restored into an account."] Restored { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 14)] #[doc = "An account was upgraded."] Upgraded { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 15)] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] @@ -14901,25 +16247,25 @@ pub mod api { #[codec(index = 17)] #[doc = "Some balance was locked."] Locked { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 18)] #[doc = "Some balance was unlocked."] Unlocked { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 19)] #[doc = "Some balance was frozen."] Frozen { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 20)] #[doc = "Some balance was thawed."] Thawed { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, } @@ -14929,11 +16275,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountData<_0> { pub free: _0, pub reserved: _0, @@ -14943,11 +16293,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BalanceLock<_0> { pub id: [::core::primitive::u8; 8usize], pub amount: _0, @@ -14957,20 +16311,28 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtraFlags(pub ::core::primitive::u128); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdAmount<_0, _1> { pub id: _0, pub amount: _1, @@ -14978,11 +16340,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Reasons { #[codec(index = 0)] Fee, @@ -14994,11 +16360,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReserveData<_0, _1> { pub id: _0, pub amount: _1, @@ -15012,11 +16382,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 1)] @@ -15031,13 +16405,13 @@ pub mod api { #[codec(index = 2)] #[doc = "Schedule a non-reserved node to be banned out from the committee at the end of the era"] ban_from_committee { - banned: ::subxt::ext::sp_core::crypto::AccountId32, + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ban_reason: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] #[doc = "Cancel the ban of the node"] cancel_ban { - banned: ::subxt::ext::sp_core::crypto::AccountId32, + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 4)] #[doc = "Set lenient threshold"] @@ -15048,11 +16422,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -15072,11 +16450,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -15086,7 +16468,7 @@ pub mod api { #[doc = "Validators have been banned from the committee"] BanValidators( ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::primitives::BanInfo, )>, ), @@ -15095,11 +16477,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentAndNextSessionValidators<_0> { pub next: runtime_types::primitives::SessionValidators<_0>, pub current: runtime_types::primitives::SessionValidators<_0>, @@ -15107,11 +16493,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorTotalRewards<_0>( pub ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, ); @@ -15123,18 +16513,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15170,7 +16564,7 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, }, @@ -15207,9 +16601,7 @@ pub mod api { #[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::sp_core::H256, - }, + remove_code { code_hash: ::subxt::utils::H256 }, #[codec(index = 5)] #[doc = "Privileged function that changes the code of an existing contract."] #[doc = ""] @@ -15222,11 +16614,11 @@ pub mod api { #[doc = "that the contract address is no longer derived from its code hash after calling"] #[doc = "this dispatchable."] set_code { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, }, #[codec(index = 6)] #[doc = "Makes a call to an account, optionally transferring some balance."] @@ -15246,8 +16638,8 @@ pub mod api { #[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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15309,7 +16701,7 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, }, @@ -15317,11 +16709,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -15430,18 +16826,24 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Contract deployed by address at the specified address."] Instantiated { - deployer: ::subxt::ext::sp_core::crypto::AccountId32, - contract: ::subxt::ext::sp_core::crypto::AccountId32, + deployer: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 1)] #[doc = "Contract has been removed."] @@ -15451,31 +16853,31 @@ pub mod api { #[doc = "The only way for a contract to be removed and emitting this event is by calling"] #[doc = "`seal_terminate`."] Terminated { - contract: ::subxt::ext::sp_core::crypto::AccountId32, - beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + beneficiary: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 2)] #[doc = "Code with the specified hash has been stored."] - CodeStored { - code_hash: ::subxt::ext::sp_core::H256, - }, + CodeStored { code_hash: ::subxt::utils::H256 }, #[codec(index = 3)] #[doc = "A custom event emitted by the contract."] ContractEmitted { - contract: ::subxt::ext::sp_core::crypto::AccountId32, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, data: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] #[doc = "A code with the specified hash was removed."] - CodeRemoved { - code_hash: ::subxt::ext::sp_core::H256, - }, + CodeRemoved { code_hash: ::subxt::utils::H256 }, #[codec(index = 5)] #[doc = "A contract's code was updated."] ContractCodeUpdated { - contract: ::subxt::ext::sp_core::crypto::AccountId32, - new_code_hash: ::subxt::ext::sp_core::H256, - old_code_hash: ::subxt::ext::sp_core::H256, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + new_code_hash: ::subxt::utils::H256, + old_code_hash: ::subxt::utils::H256, }, #[codec(index = 6)] #[doc = "A contract was called either by a plain account or another contract."] @@ -15486,8 +16888,9 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] Called { - caller: ::subxt::ext::sp_core::crypto::AccountId32, - contract: ::subxt::ext::sp_core::crypto::AccountId32, + caller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 7)] #[doc = "A contract delegate called a code hash."] @@ -15498,8 +16901,9 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] DelegateCalled { - contract: ::subxt::ext::sp_core::crypto::AccountId32, - code_hash: ::subxt::ext::sp_core::H256, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + code_hash: ::subxt::utils::H256, }, } } @@ -15508,11 +16912,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HostFnWeights { pub caller: runtime_types::sp_weights::weight_v2::Weight, pub is_contract: runtime_types::sp_weights::weight_v2::Weight, @@ -15580,11 +16988,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstructionWeights { pub version: ::core::primitive::u32, pub fallback: ::core::primitive::u32, @@ -15643,11 +17055,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Limits { pub event_topics: ::core::primitive::u32, pub globals: ::core::primitive::u32, @@ -15663,11 +17079,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Schedule { pub limits: runtime_types::pallet_contracts::schedule::Limits, pub instruction_weights: @@ -15680,17 +17100,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ContractInfo { pub trie_id: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, pub deposit_account: runtime_types::pallet_contracts::storage::DepositAccount, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, pub storage_bytes: ::core::primitive::u32, pub storage_items: ::core::primitive::u32, pub storage_byte_deposit: ::core::primitive::u128, @@ -15700,11 +17124,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DeletionQueueManager { pub insert_counter: ::core::primitive::u32, pub delete_counter: ::core::primitive::u32, @@ -15712,23 +17140,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct DepositAccount(pub ::subxt::ext::sp_core::crypto::AccountId32); + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DepositAccount( + pub ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ); } pub mod wasm { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Determinism { #[codec(index = 0)] Enforced, @@ -15738,13 +17176,17 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OwnerInfo { - pub owner: ::subxt::ext::sp_core::crypto::AccountId32, + pub owner: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, #[codec(compact)] pub deposit: ::core::primitive::u128, #[codec(compact)] @@ -15753,11 +17195,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PrefabWasmModule { #[codec(compact)] pub instruction_weights_version: ::core::primitive::u32, @@ -15779,20 +17225,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] change_validators { reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, non_reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, committee_size: ::core::option::Option, @@ -15806,11 +17260,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -15827,18 +17285,26 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Committee for the next era has changed"] ChangeValidators( - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, runtime_types::primitives::CommitteeSeats, ), } @@ -15851,11 +17317,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Identity pallet declaration."] pub enum Call { #[codec(index = 0)] @@ -15870,8 +17340,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] add_registrar { - account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -15912,7 +17382,7 @@ pub mod api { #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] set_subs { subs: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, )>, }, @@ -16010,8 +17480,8 @@ pub mod api { set_account_id { #[codec(compact)] index: ::core::primitive::u32, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16055,14 +17525,14 @@ pub mod api { provide_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, - identity: ::subxt::ext::sp_core::H256, + identity: ::subxt::utils::H256, }, #[codec(index = 10)] #[doc = "Remove an account's identity and sub-account information and slash the deposits."] @@ -16084,8 +17554,8 @@ pub mod api { #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] kill_identity { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16098,8 +17568,8 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] add_sub { - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, @@ -16110,8 +17580,8 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] rename_sub { - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, @@ -16125,8 +17595,8 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] remove_sub { - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16146,11 +17616,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -16211,46 +17685,50 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A name was set or reset (which will remove all judgements)."] IdentitySet { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 1)] #[doc = "A name was cleared, and the given balance returned."] IdentityCleared { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A name was removed and the given balance slashed."] IdentityKilled { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A judgement was asked from a registrar."] JudgementRequested { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, registrar_index: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "A judgement request was retracted."] JudgementUnrequested { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, registrar_index: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "A judgement was given by a registrar."] JudgementGiven { - target: ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, registrar_index: ::core::primitive::u32, }, #[codec(index = 6)] @@ -16261,23 +17739,23 @@ pub mod api { #[codec(index = 7)] #[doc = "A sub-identity was added to an identity and the deposit paid."] SubIdentityAdded { - sub: ::subxt::ext::sp_core::crypto::AccountId32, - main: ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "A sub-identity was removed from an identity and the deposit freed."] SubIdentityRemoved { - sub: ::subxt::ext::sp_core::crypto::AccountId32, - main: ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] SubIdentityRevoked { - sub: ::subxt::ext::sp_core::crypto::AccountId32, - main: ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, } @@ -16288,11 +17766,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BitFlags<_0>( pub ::core::primitive::u64, #[codec(skip)] pub ::core::marker::PhantomData<_0>, @@ -16300,11 +17782,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Data { #[codec(index = 0)] None, @@ -16386,11 +17872,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum IdentityField { #[codec(index = 1)] Display, @@ -16412,11 +17902,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdentityInfo { pub additional: runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::pallet_identity::types::Data, @@ -16434,11 +17928,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Judgement<_0> { #[codec(index = 0)] Unknown, @@ -16458,11 +17956,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RegistrarInfo<_0, _1> { pub account: _1, pub fee: _0, @@ -16473,11 +17975,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registration<_0> { pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, @@ -16495,11 +18001,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -16516,8 +18026,9 @@ pub mod api { #[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: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, call: ::std::boxed::Box, }, #[codec(index = 1)] @@ -16562,8 +18073,9 @@ pub mod api { #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -16603,8 +18115,9 @@ pub mod api { #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] approve_as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -16635,8 +18148,9 @@ pub mod api { #[doc = "- Storage: removes one item."] cancel_as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], @@ -16645,11 +18159,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -16698,36 +18216,46 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] NewMultisig { - approving: ::subxt::ext::sp_core::crypto::AccountId32, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + approving: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 1)] #[doc = "A multisig operation has been approved by someone."] MultisigApproval { - approving: ::subxt::ext::sp_core::crypto::AccountId32, + approving: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] #[doc = "A multisig operation has been executed."] MultisigExecuted { - approving: ::subxt::ext::sp_core::crypto::AccountId32, + approving: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -16735,10 +18263,12 @@ pub mod api { #[codec(index = 3)] #[doc = "A multisig operation has been cancelled."] MultisigCancelled { - cancelling: ::subxt::ext::sp_core::crypto::AccountId32, + cancelling: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], }, } @@ -16746,11 +18276,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Multisig<_0, _1, _2> { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, @@ -16760,11 +18294,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Timepoint<_0> { pub height: _0, pub index: _0, @@ -16777,11 +18315,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -16856,8 +18398,8 @@ pub mod api { #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] #[doc = "staking system."] unbond { - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -16895,8 +18437,8 @@ pub mod api { #[doc = ""] #[doc = "If the target is the depositor, the pool will be destroyed."] withdraw_unbonded { - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, num_slashing_spans: ::core::primitive::u32, @@ -16922,16 +18464,16 @@ pub mod api { create { #[codec(compact)] amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16945,16 +18487,16 @@ pub mod api { create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pool_id: ::core::primitive::u32, @@ -16969,7 +18511,9 @@ pub mod api { #[doc = "account."] nominate { pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + validators: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 9)] #[doc = "Set a new state for the pool."] @@ -17038,13 +18582,13 @@ pub mod api { update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, }, #[codec(index = 13)] @@ -17067,8 +18611,8 @@ pub mod api { #[doc = "`other` members assuming set_claim_permission for the given member is"] #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] bond_extra_other { - member: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, extra: runtime_types::pallet_nomination_pools::BondExtra< @@ -17097,7 +18641,7 @@ pub mod api { #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] #[doc = "for this call to be successful."] claim_payout_other { - other: ::subxt::ext::sp_core::crypto::AccountId32, + other: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 17)] #[doc = "Set the commission of a pool."] @@ -17109,7 +18653,7 @@ pub mod api { pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, }, #[codec(index = 18)] @@ -17144,11 +18688,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DefensiveError { #[codec(index = 0)] NotEnoughSpaceInUnbondPool, @@ -17164,11 +18712,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -17273,23 +18825,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Events of this pallet."] pub enum Event { #[codec(index = 0)] #[doc = "A pool has been created."] Created { - depositor: ::subxt::ext::sp_core::crypto::AccountId32, + depositor: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A member has became bonded in a pool."] Bonded { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, bonded: ::core::primitive::u128, joined: ::core::primitive::bool, @@ -17297,7 +18854,7 @@ pub mod api { #[codec(index = 2)] #[doc = "A payout has been made to a member."] PaidOut { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, payout: ::core::primitive::u128, }, @@ -17314,7 +18871,7 @@ pub mod api { #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] Unbonded { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -17328,7 +18885,7 @@ pub mod api { #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] Withdrawn { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -17348,16 +18905,21 @@ pub mod api { #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id: ::core::primitive::u32, - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 8)] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] RolesUpdated { - root: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - bouncer: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - nominator: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + root: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + bouncer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + nominator: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 9)] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] @@ -17378,7 +18940,7 @@ pub mod api { pool_id: ::core::primitive::u32, current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, }, #[codec(index = 12)] @@ -17406,11 +18968,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BondExtra<_0> { #[codec(index = 0)] FreeBalance(_0), @@ -17420,28 +18986,36 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondedPoolInner { pub commission: runtime_types::pallet_nomination_pools::Commission, pub member_counter: ::core::primitive::u32, pub points: ::core::primitive::u128, pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub state: runtime_types::pallet_nomination_pools::PoolState, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ClaimPermission { #[codec(index = 0)] Permissioned, @@ -17455,15 +19029,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Commission { pub current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, pub max: ::core::option::Option, pub change_rate: ::core::option::Option< @@ -17476,11 +19054,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommissionChangeRate<_0> { pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, pub min_delay: _0, @@ -17488,11 +19070,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -17504,11 +19090,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolMember { pub pool_id: ::core::primitive::u32, pub points: ::core::primitive::u128, @@ -17523,11 +19113,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolRoles<_0> { pub depositor: _0, pub root: ::core::option::Option<_0>, @@ -17537,11 +19131,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PoolState { #[codec(index = 0)] Open, @@ -17553,11 +19151,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RewardPool { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, @@ -17569,11 +19171,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, pub with_era: @@ -17585,11 +19191,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnbondPool { pub points: ::core::primitive::u128, pub balance: ::core::primitive::u128, @@ -17602,11 +19212,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -17670,11 +19284,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -17696,11 +19314,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Events type."] pub enum Event { #[codec(index = 0)] @@ -17746,11 +19368,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Scheduled<_0, _1, _2, _3, _4> { pub maybe_id: ::core::option::Option<_0>, pub priority: ::core::primitive::u8, @@ -17768,11 +19394,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -17807,11 +19437,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the session pallet."] pub enum Error { #[codec(index = 0)] @@ -17833,11 +19467,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -17858,11 +19496,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -17882,14 +19524,14 @@ pub mod api { #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] bond { - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, }, #[codec(index = 1)] @@ -17975,8 +19617,10 @@ pub mod api { #[doc = "- Both the reads and writes follow a similar pattern."] nominate { targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, (), >, >, @@ -18008,7 +19652,7 @@ pub mod api { #[doc = "---------"] set_payee { payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, }, #[codec(index = 8)] @@ -18024,8 +19668,8 @@ pub mod api { #[doc = "- Contains a limited number of reads."] #[doc = "- Writes are limited to the `origin` account key."] set_controller { - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -18099,15 +19743,17 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin must be Root."] set_invulnerables { - invulnerables: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + invulnerables: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 15)] #[doc = "Force a current staker to become completely unstaked, immediately."] #[doc = ""] #[doc = "The dispatch origin must be Root."] force_unstake { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] @@ -18144,7 +19790,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] payout_stakers { - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, era: ::core::primitive::u32, }, #[codec(index = 19)] @@ -18173,7 +19820,8 @@ pub mod api { #[doc = ""] #[doc = "Refunds the transaction fees upon successful execution."] reap_stash { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] @@ -18190,8 +19838,10 @@ pub mod api { #[doc = "block any further nominations."] kick { who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, (), >, >, @@ -18267,14 +19917,16 @@ pub mod api { #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] #[doc = "who do not satisfy these requirements."] chill_other { - controller: ::subxt::ext::sp_core::crypto::AccountId32, + controller: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 24)] #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] #[doc = "can call this."] force_apply_min_commission { - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 25)] #[doc = "Sets the minimum amount of commission that each validators must maintain."] @@ -18288,11 +19940,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -18304,11 +19960,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -18394,11 +20054,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -18412,20 +20076,23 @@ pub mod api { #[codec(index = 1)] #[doc = "The nominator has been rewarded by this amount."] Rewarded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { - staker: ::subxt::ext::sp_core::crypto::AccountId32, + staker: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] SlashReported { - validator: ::subxt::ext::sp_core::crypto::AccountId32, + validator: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, fraction: runtime_types::sp_arithmetic::per_things::Perbill, slash_era: ::core::primitive::u32, }, @@ -18444,27 +20111,32 @@ pub mod api { #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 7)] #[doc = "An account has unbonded this amount."] Unbonded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] Withdrawn { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A nominator has been kicked from a validator."] Kicked { - nominator: ::subxt::ext::sp_core::crypto::AccountId32, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + nominator: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 10)] #[doc = "The election failed. No new era is planned."] @@ -18472,18 +20144,21 @@ pub mod api { #[codec(index = 11)] #[doc = "An account has stopped participating as either a validator or nominator."] Chilled { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 12)] #[doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index: ::core::primitive::u32, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 13)] #[doc = "A validator has set their preferences."] ValidatorPrefsSet { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 14)] @@ -18499,11 +20174,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SlashingSpans { pub span_index: ::core::primitive::u32, pub last_start: ::core::primitive::u32, @@ -18513,11 +20192,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SpanRecord<_0> { pub slashed: _0, pub paid_out: _0, @@ -18526,11 +20209,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ActiveEraInfo { pub index: ::core::primitive::u32, pub start: ::core::option::Option<::core::primitive::u64>, @@ -18538,11 +20225,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraRewardPoints<_0> { pub total: ::core::primitive::u32, pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, @@ -18550,11 +20241,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Exposure<_0, _1> { #[codec(compact)] pub total: _1, @@ -18566,11 +20261,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Forcing { #[codec(index = 0)] NotForcing, @@ -18584,11 +20283,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IndividualExposure<_0, _1> { pub who: _0, #[codec(compact)] @@ -18597,14 +20300,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, @@ -18612,11 +20319,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RewardDestination<_0> { #[codec(index = 0)] Staked, @@ -18632,13 +20343,17 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StakingLedger { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, #[codec(compact)] pub total: ::core::primitive::u128, #[codec(compact)] @@ -18653,11 +20368,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnappliedSlash<_0, _1> { pub validator: _0, pub own: _1, @@ -18668,11 +20387,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnlockChunk<_0> { #[codec(compact)] pub value: _0, @@ -18682,11 +20405,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorPrefs { #[codec(compact)] pub commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -18700,11 +20427,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -18739,8 +20470,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- O(1)."] set_key { - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -18753,8 +20484,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- O(1)."] sudo_as { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, call: ::std::boxed::Box, @@ -18763,11 +20494,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the Sudo pallet"] pub enum Error { #[codec(index = 0)] @@ -18777,11 +20512,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -18793,8 +20532,9 @@ pub mod api { #[codec(index = 1)] #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] KeyChanged { - old_sudoer: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + old_sudoer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 2)] #[doc = "A sudo just took place. \\[result\\]"] @@ -18812,11 +20552,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -18849,18 +20593,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] 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::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, actual_fee: ::core::primitive::u128, tip: ::core::primitive::u128, }, @@ -18869,20 +20617,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V1Ancient, @@ -18897,11 +20653,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -18914,8 +20674,8 @@ pub mod api { propose_spend { #[codec(compact)] value: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -18954,8 +20714,8 @@ pub mod api { spend { #[codec(compact)] amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -18981,11 +20741,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the treasury pallet."] pub enum Error { #[codec(index = 0)] @@ -19008,11 +20772,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -19030,7 +20798,7 @@ pub mod api { Awarded { proposal_index: ::core::primitive::u32, award: ::core::primitive::u128, - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 3)] #[doc = "A proposal was rejected; funds were slashed."] @@ -19056,7 +20824,8 @@ pub mod api { SpendApproved { proposal_index: ::core::primitive::u32, amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 8)] #[doc = "The inactive funds of the pallet have been updated."] @@ -19069,11 +20838,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proposal<_0, _1> { pub proposer: _0, pub value: _1, @@ -19088,11 +20861,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -19195,11 +20972,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -19209,11 +20990,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -19253,11 +21038,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -19284,8 +21073,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)`."] vest_other { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -19304,8 +21093,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)`."] vested_transfer { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -19329,12 +21118,12 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)`."] force_vested_transfer { - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -19372,11 +21161,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the vesting pallet."] pub enum Error { #[codec(index = 0)] @@ -19399,24 +21192,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] VestingUpdated { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, unvested: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An \\[account\\] has become fully vested."] VestingCompleted { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, } } @@ -19425,11 +21222,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestingInfo<_0, _1> { pub locked: _0, pub per_block: _0, @@ -19439,11 +21240,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V0, @@ -19451,18 +21256,6 @@ pub mod api { V1, } } - pub mod primitive_types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct H256(pub [::core::primitive::u8; 32usize]); - } pub mod primitives { use super::runtime_types; pub mod app { @@ -19470,21 +21263,29 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::ed25519::Public); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BanConfig { pub minimal_expected_performance: runtime_types::sp_arithmetic::per_things::Perbill, pub underperformed_session_count_threshold: ::core::primitive::u32, @@ -19494,11 +21295,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BanInfo { pub reason: runtime_types::primitives::BanReason, pub start: ::core::primitive::u32, @@ -19506,11 +21311,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BanReason { #[codec(index = 0)] InsufficientUptime(::core::primitive::u32), @@ -19524,11 +21333,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommitteeSeats { pub reserved_seats: ::core::primitive::u32, pub non_reserved_seats: ::core::primitive::u32, @@ -19537,11 +21350,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ElectionOpenness { #[codec(index = 0)] Permissioned, @@ -19551,11 +21368,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraValidators<_0> { pub reserved: ::std::vec::Vec<_0>, pub non_reserved: ::std::vec::Vec<_0>, @@ -19563,11 +21384,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionValidators<_0> { pub committee: ::std::vec::Vec<_0>, pub non_committee: ::std::vec::Vec<_0>, @@ -19575,11 +21400,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VersionChange { pub version_incoming: ::core::primitive::u32, pub session: ::core::primitive::u32, @@ -19593,11 +21422,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { @@ -19606,51 +21439,71 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perbill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Percent(pub ::core::primitive::u8); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Permill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perquintill(pub ::core::primitive::u64); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ArithmeticError { #[codec(index = 0)] Underflow, @@ -19669,11 +21522,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } } @@ -19684,11 +21541,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Slot(pub ::core::primitive::u64); } pub mod sp_core { @@ -19698,20 +21559,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct AccountId32(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod ecdsa { @@ -19719,11 +21575,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 65usize]); } pub mod ed25519 { @@ -19731,20 +21591,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } pub mod sr25519 { @@ -19752,30 +21620,42 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } pub mod sp_runtime { @@ -19787,11 +21667,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Digest { pub logs: ::std::vec::Vec, @@ -19799,11 +21683,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DigestItem { #[codec(index = 6)] PreRuntime( @@ -19831,11 +21719,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Era { #[codec(index = 0)] Immortal, @@ -20356,48 +22248,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub ::std::vec::Vec<::core::primitive::u8>, #[codec(skip)] pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, ); } } - pub mod multiaddress { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum MultiAddress<_0, _1> { - #[codec(index = 0)] - Id(_0), - #[codec(index = 1)] - Index(#[codec(compact)] _1), - #[codec(index = 2)] - Raw(::std::vec::Vec<::core::primitive::u8>), - #[codec(index = 3)] - Address32([::core::primitive::u8; 32usize]), - #[codec(index = 4)] - Address20([::core::primitive::u8; 20usize]), - } - } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchError { #[codec(index = 0)] Other, @@ -20429,11 +22306,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ModuleError { pub index: ::core::primitive::u8, pub error: [::core::primitive::u8; 4usize], @@ -20441,11 +22322,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiSignature { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Signature), @@ -20457,11 +22342,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] FundsUnavailable, @@ -20485,11 +22374,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionalError { #[codec(index = 0)] LimitReached, @@ -20502,11 +22395,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeVersion { pub spec_name: ::std::string::String, pub impl_name: ::std::string::String, @@ -20526,11 +22423,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Weight { #[codec(compact)] pub ref_time: ::core::primitive::u64, @@ -20541,214 +22442,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeDbWeight { pub read: ::core::primitive::u64, pub write: ::core::primitive::u64, } } } - #[doc = r" The default error type returned when there is a runtime issue,"] - #[doc = r" exposed here for ease of use."] - pub type DispatchError = runtime_types::sp_runtime::DispatchError; - pub fn constants() -> ConstantsApi { - ConstantsApi - } - pub fn storage() -> StorageApi { - StorageApi - } - pub fn tx() -> TransactionApi { - TransactionApi - } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi - } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi - } - pub fn balances(&self) -> balances::constants::ConstantsApi { - balances::constants::ConstantsApi - } - pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { - transaction_payment::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn elections(&self) -> elections::constants::ConstantsApi { - elections::constants::ConstantsApi - } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::constants::ConstantsApi - } - pub fn vesting(&self) -> vesting::constants::ConstantsApi { - vesting::constants::ConstantsApi - } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi - } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { - multisig::constants::ConstantsApi - } - pub fn contracts(&self) -> contracts::constants::ConstantsApi { - contracts::constants::ConstantsApi - } - pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi - } - pub fn committee_management(&self) -> committee_management::constants::ConstantsApi { - committee_management::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 scheduler(&self) -> scheduler::storage::StorageApi { - scheduler::storage::StorageApi - } - pub fn aura(&self) -> aura::storage::StorageApi { - aura::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } - pub fn balances(&self) -> balances::storage::StorageApi { - balances::storage::StorageApi - } - pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { - transaction_payment::storage::StorageApi - } - pub fn authorship(&self) -> authorship::storage::StorageApi { - authorship::storage::StorageApi - } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn history(&self) -> history::storage::StorageApi { - history::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn aleph(&self) -> aleph::storage::StorageApi { - aleph::storage::StorageApi - } - pub fn elections(&self) -> elections::storage::StorageApi { - elections::storage::StorageApi - } - pub fn treasury(&self) -> treasury::storage::StorageApi { - treasury::storage::StorageApi - } - pub fn vesting(&self) -> vesting::storage::StorageApi { - vesting::storage::StorageApi - } - pub fn multisig(&self) -> multisig::storage::StorageApi { - multisig::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn contracts(&self) -> contracts::storage::StorageApi { - contracts::storage::StorageApi - } - pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi - } - pub fn identity(&self) -> identity::storage::StorageApi { - identity::storage::StorageApi - } - pub fn committee_management(&self) -> committee_management::storage::StorageApi { - committee_management::storage::StorageApi - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi - } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi { - scheduler::calls::TransactionApi - } - pub fn timestamp(&self) -> timestamp::calls::TransactionApi { - timestamp::calls::TransactionApi - } - pub fn balances(&self) -> balances::calls::TransactionApi { - balances::calls::TransactionApi - } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi - } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi - } - pub fn aleph(&self) -> aleph::calls::TransactionApi { - aleph::calls::TransactionApi - } - pub fn elections(&self) -> elections::calls::TransactionApi { - elections::calls::TransactionApi - } - pub fn treasury(&self) -> treasury::calls::TransactionApi { - treasury::calls::TransactionApi - } - pub fn vesting(&self) -> vesting::calls::TransactionApi { - vesting::calls::TransactionApi - } - pub fn utility(&self) -> utility::calls::TransactionApi { - utility::calls::TransactionApi - } - pub fn multisig(&self) -> multisig::calls::TransactionApi { - multisig::calls::TransactionApi - } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi - } - pub fn contracts(&self) -> contracts::calls::TransactionApi { - contracts::calls::TransactionApi - } - pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi - } - pub fn identity(&self) -> identity::calls::TransactionApi { - identity::calls::TransactionApi - } - pub fn committee_management(&self) -> committee_management::calls::TransactionApi { - committee_management::calls::TransactionApi - } - } - #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] - pub fn validate_codegen>( - client: &C, - ) -> Result<(), ::subxt::error::MetadataError> { - let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); - if runtime_metadata_hash - != [ - 83u8, 144u8, 139u8, 193u8, 132u8, 226u8, 185u8, 194u8, 235u8, 219u8, 176u8, 55u8, - 208u8, 157u8, 55u8, 90u8, 191u8, 114u8, 181u8, 100u8, 167u8, 49u8, 207u8, 53u8, - 162u8, 99u8, 32u8, 215u8, 6u8, 197u8, 236u8, 127u8, - ] - { - Err(::subxt::error::MetadataError::IncompatibleMetadata) - } else { - Ok(()) - } - } } diff --git a/aleph-client/src/aleph_zero_liminal.rs b/aleph-client/src/aleph_zero_liminal.rs index c862296f32..c8492979e8 100644 --- a/aleph-client/src/aleph_zero_liminal.rs +++ b/aleph-client/src/aleph_zero_liminal.rs @@ -1,6 +1,10 @@ #[allow(dead_code, unused_imports, non_camel_case_types)] +#[allow(clippy::all)] pub mod api { - use super::api as root_mod; + #[allow(unused_imports)] + mod root_mod { + pub use super::*; + } pub static PALLETS: [&str; 23usize] = [ "System", "RandomnessCollectiveFlip", @@ -26,14 +30,20 @@ pub mod api { "CommitteeManagement", "BabyLiminal", ]; + #[doc = r" The error type returned when there is a runtime issue."] + pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Event { #[codec(index = 0)] System(system::Event), @@ -72,6 +82,360 @@ pub mod api { #[codec(index = 22)] BabyLiminal(baby_liminal::Event), } + impl ::subxt::events::RootEvent for Event { + fn root_event( + pallet_bytes: &[u8], + pallet_name: &str, + pallet_ty: u32, + metadata: &::subxt::Metadata, + ) -> Result { + use ::subxt::metadata::DecodeWithMetadata; + if pallet_name == "System" { + return Ok(Event::System(system::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Scheduler" { + return Ok(Event::Scheduler(scheduler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Balances" { + return Ok(Event::Balances(balances::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "TransactionPayment" { + return Ok(Event::TransactionPayment( + transaction_payment::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Staking" { + return Ok(Event::Staking(staking::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Session" { + return Ok(Event::Session(session::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Aleph" { + return Ok(Event::Aleph(aleph::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Elections" { + return Ok(Event::Elections(elections::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Treasury" { + return Ok(Event::Treasury(treasury::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Vesting" { + return Ok(Event::Vesting(vesting::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Utility" { + return Ok(Event::Utility(utility::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Multisig" { + return Ok(Event::Multisig(multisig::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Sudo" { + return Ok(Event::Sudo(sudo::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Contracts" { + return Ok(Event::Contracts(contracts::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "NominationPools" { + return Ok(Event::NominationPools( + nomination_pools::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "Identity" { + return Ok(Event::Identity(identity::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "CommitteeManagement" { + return Ok(Event::CommitteeManagement( + committee_management::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + if pallet_name == "BabyLiminal" { + return Ok(Event::BabyLiminal( + baby_liminal::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Event enum", + pallet_name + )) + .into()) + } + } + pub fn constants() -> ConstantsApi { + ConstantsApi + } + pub fn storage() -> StorageApi { + StorageApi + } + pub fn tx() -> TransactionApi { + TransactionApi + } + pub struct ConstantsApi; + impl ConstantsApi { + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi + } + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { + scheduler::constants::ConstantsApi + } + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { + timestamp::constants::ConstantsApi + } + pub fn balances(&self) -> balances::constants::ConstantsApi { + balances::constants::ConstantsApi + } + pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { + transaction_payment::constants::ConstantsApi + } + pub fn staking(&self) -> staking::constants::ConstantsApi { + staking::constants::ConstantsApi + } + pub fn elections(&self) -> elections::constants::ConstantsApi { + elections::constants::ConstantsApi + } + pub fn treasury(&self) -> treasury::constants::ConstantsApi { + treasury::constants::ConstantsApi + } + pub fn vesting(&self) -> vesting::constants::ConstantsApi { + vesting::constants::ConstantsApi + } + pub fn utility(&self) -> utility::constants::ConstantsApi { + utility::constants::ConstantsApi + } + pub fn multisig(&self) -> multisig::constants::ConstantsApi { + multisig::constants::ConstantsApi + } + pub fn contracts(&self) -> contracts::constants::ConstantsApi { + contracts::constants::ConstantsApi + } + pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { + nomination_pools::constants::ConstantsApi + } + pub fn identity(&self) -> identity::constants::ConstantsApi { + identity::constants::ConstantsApi + } + pub fn committee_management(&self) -> committee_management::constants::ConstantsApi { + committee_management::constants::ConstantsApi + } + pub fn baby_liminal(&self) -> baby_liminal::constants::ConstantsApi { + baby_liminal::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 scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } + pub fn aura(&self) -> aura::storage::StorageApi { + aura::storage::StorageApi + } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi + } + pub fn balances(&self) -> balances::storage::StorageApi { + balances::storage::StorageApi + } + pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { + transaction_payment::storage::StorageApi + } + pub fn authorship(&self) -> authorship::storage::StorageApi { + authorship::storage::StorageApi + } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } + pub fn history(&self) -> history::storage::StorageApi { + history::storage::StorageApi + } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } + pub fn aleph(&self) -> aleph::storage::StorageApi { + aleph::storage::StorageApi + } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::storage::StorageApi + } + pub fn vesting(&self) -> vesting::storage::StorageApi { + vesting::storage::StorageApi + } + pub fn multisig(&self) -> multisig::storage::StorageApi { + multisig::storage::StorageApi + } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } + pub fn contracts(&self) -> contracts::storage::StorageApi { + contracts::storage::StorageApi + } + pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { + nomination_pools::storage::StorageApi + } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } + pub fn committee_management(&self) -> committee_management::storage::StorageApi { + committee_management::storage::StorageApi + } + pub fn baby_liminal(&self) -> baby_liminal::storage::StorageApi { + baby_liminal::storage::StorageApi + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi { + scheduler::calls::TransactionApi + } + pub fn timestamp(&self) -> timestamp::calls::TransactionApi { + timestamp::calls::TransactionApi + } + pub fn balances(&self) -> balances::calls::TransactionApi { + balances::calls::TransactionApi + } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } + pub fn aleph(&self) -> aleph::calls::TransactionApi { + aleph::calls::TransactionApi + } + pub fn elections(&self) -> elections::calls::TransactionApi { + elections::calls::TransactionApi + } + pub fn treasury(&self) -> treasury::calls::TransactionApi { + treasury::calls::TransactionApi + } + pub fn vesting(&self) -> vesting::calls::TransactionApi { + vesting::calls::TransactionApi + } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } + pub fn multisig(&self) -> multisig::calls::TransactionApi { + multisig::calls::TransactionApi + } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } + pub fn contracts(&self) -> contracts::calls::TransactionApi { + contracts::calls::TransactionApi + } + pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { + nomination_pools::calls::TransactionApi + } + pub fn identity(&self) -> identity::calls::TransactionApi { + identity::calls::TransactionApi + } + pub fn committee_management(&self) -> committee_management::calls::TransactionApi { + committee_management::calls::TransactionApi + } + pub fn baby_liminal(&self) -> baby_liminal::calls::TransactionApi { + baby_liminal::calls::TransactionApi + } + } + #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] + pub fn validate_codegen>( + client: &C, + ) -> Result<(), ::subxt::error::MetadataError> { + let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); + if runtime_metadata_hash + != [ + 71u8, 179u8, 6u8, 228u8, 188u8, 139u8, 181u8, 184u8, 101u8, 35u8, 161u8, 59u8, + 157u8, 122u8, 119u8, 147u8, 65u8, 227u8, 126u8, 107u8, 73u8, 226u8, 209u8, 233u8, + 54u8, 10u8, 83u8, 113u8, 87u8, 129u8, 53u8, 180u8, + ] + { + Err(::subxt::error::MetadataError::IncompatibleMetadata) + } else { + Ok(()) + } + } pub mod system { use super::{root_mod, runtime_types}; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] @@ -81,11 +445,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Remark { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -93,44 +461,60 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHeapPages { pub pages: ::core::primitive::u64, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCode { pub code: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCodeWithoutChecks { pub code: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStorage { pub items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -140,22 +524,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillStorage { pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillPrefix { pub prefix: ::std::vec::Vec<::core::primitive::u8>, pub subkeys: ::core::primitive::u32, @@ -163,11 +555,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemarkWithEvent { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -180,8 +576,8 @@ pub mod api { pub fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "remark", Remark { remark }, @@ -197,8 +593,8 @@ pub mod api { pub fn set_heap_pages( &self, pages: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_heap_pages", SetHeapPages { pages }, @@ -216,8 +612,8 @@ pub mod api { pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_code", SetCode { code }, @@ -235,8 +631,8 @@ pub mod api { pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_code_without_checks", SetCodeWithoutChecks { code }, @@ -254,8 +650,8 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::std::vec::Vec<::core::primitive::u8>, )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "set_storage", SetStorage { items }, @@ -270,8 +666,8 @@ pub mod api { pub fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "kill_storage", KillStorage { keys }, @@ -291,8 +687,8 @@ pub mod api { &self, prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "kill_prefix", KillPrefix { prefix, subkeys }, @@ -308,8 +704,8 @@ pub mod api { pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "System", "remark_with_event", RemarkWithEvent { remark }, @@ -330,11 +726,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, @@ -346,11 +746,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error: runtime_types::sp_runtime::DispatchError, @@ -363,11 +767,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::events::StaticEvent for CodeUpdated { @@ -377,14 +785,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new account was created."] pub struct NewAccount { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for NewAccount { const PALLET: &'static str = "System"; @@ -393,14 +805,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was reaped."] pub struct KilledAccount { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for KilledAccount { const PALLET: &'static str = "System"; @@ -409,15 +825,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "On on-chain remark happened."] pub struct Remarked { - pub sender: ::subxt::ext::sp_core::crypto::AccountId32, - pub hash: ::subxt::ext::sp_core::H256, + pub sender: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Remarked { const PALLET: &'static str = "System"; @@ -431,26 +851,24 @@ pub mod api { #[doc = " The full account information for a particular account ID."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::types::AccountData< - ::core::primitive::u128, - >, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Account", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 248u8, 178u8, 160u8, 222u8, 45u8, 231u8, 115u8, 164u8, 98u8, 184u8, @@ -463,20 +881,17 @@ pub mod api { #[doc = " The full account information for a particular account ID."] pub fn account_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::AccountInfo< - ::core::primitive::u32, - runtime_types::pallet_balances::types::AccountData< - ::core::primitive::u128, - >, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Account", Vec::new(), @@ -491,13 +906,14 @@ pub mod api { #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicCount", vec![], @@ -511,17 +927,16 @@ pub mod api { #[doc = " The current weight for the block."] pub fn block_weight( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_support::dispatch::PerDispatchClass< - runtime_types::sp_weights::weight_v2::Weight, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::sp_weights::weight_v2::Weight, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "BlockWeight", vec![], @@ -536,13 +951,14 @@ pub mod api { #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "AllExtrinsicsLen", vec![], @@ -558,18 +974,18 @@ pub mod api { pub fn block_hash( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "BlockHash", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 50u8, 112u8, 176u8, 239u8, 175u8, 18u8, 205u8, 20u8, 241u8, 195u8, @@ -581,13 +997,14 @@ pub mod api { #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "BlockHash", Vec::new(), @@ -602,18 +1019,18 @@ pub mod api { pub fn extrinsic_data( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::core::primitive::u8>>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicData", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, 194u8, 238u8, 211u8, @@ -625,13 +1042,14 @@ pub mod api { #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::core::primitive::u8>>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExtrinsicData", Vec::new(), @@ -645,13 +1063,14 @@ pub mod api { #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Number", vec![], @@ -666,13 +1085,14 @@ pub mod api { #[doc = " Hash of the previous block."] pub fn parent_hash( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ParentHash", vec![], @@ -687,15 +1107,14 @@ pub mod api { #[doc = " Digest of the current block, also part of the block header."] pub fn digest( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_runtime::generic::digest::Digest, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_runtime::generic::digest::Digest, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Digest", vec![], @@ -715,20 +1134,19 @@ pub mod api { #[doc = " just in case someone still reads them from within the runtime."] pub fn events( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec< - runtime_types::frame_system::EventRecord< - runtime_types::aleph_runtime::RuntimeEvent, - ::subxt::ext::sp_core::H256, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::frame_system::EventRecord< + runtime_types::aleph_runtime::RuntimeEvent, + ::subxt::utils::H256, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "Events", vec![], @@ -742,13 +1160,14 @@ pub mod api { #[doc = " The number of events in the `Events` list."] pub fn event_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "EventCount", vec![], @@ -772,21 +1191,19 @@ pub mod api { #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "EventTopics", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 205u8, 90u8, 142u8, 190u8, 176u8, 37u8, 94u8, 82u8, 98u8, 1u8, 129u8, @@ -808,15 +1225,14 @@ pub mod api { #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "EventTopics", Vec::new(), @@ -831,15 +1247,14 @@ pub mod api { #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::LastRuntimeUpgradeInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::LastRuntimeUpgradeInfo, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "LastRuntimeUpgrade", vec![], @@ -853,13 +1268,14 @@ pub mod api { #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "UpgradedToU32RefCount", vec![], @@ -874,13 +1290,14 @@ pub mod api { #[doc = " (default) if not."] pub fn upgraded_to_triple_ref_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "UpgradedToTripleRefCount", vec![], @@ -895,13 +1312,14 @@ pub mod api { #[doc = " The execution phase of the block."] pub fn execution_phase( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::Phase, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "System", "ExecutionPhase", vec![], @@ -922,12 +1340,9 @@ pub mod api { #[doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockWeights, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "BlockWeights", [ @@ -941,12 +1356,9 @@ pub mod api { #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::frame_system::limits::BlockLength, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "BlockLength", [ @@ -960,10 +1372,8 @@ pub mod api { #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "System", "BlockHashCount", [ @@ -977,10 +1387,9 @@ pub mod api { #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "DbWeight", [ @@ -994,10 +1403,9 @@ pub mod api { #[doc = " Get the chain's current version."] pub fn version( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "System", "Version", [ @@ -1012,12 +1420,8 @@ pub mod api { #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] - pub fn ss58_prefix( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u16>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { + ::subxt::constants::Address::new_static( "System", "SS58Prefix", [ @@ -1041,17 +1445,16 @@ pub mod api { #[doc = " the oldest hash."] pub fn random_material( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::H256, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "RandomnessCollectiveFlip", "RandomMaterial", vec![], @@ -1075,11 +1478,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Schedule { pub when: ::core::primitive::u32, pub maybe_periodic: @@ -1090,11 +1497,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, @@ -1102,11 +1513,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamed { pub id: [::core::primitive::u8; 32usize], pub when: ::core::primitive::u32, @@ -1118,22 +1533,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelNamed { pub id: [::core::primitive::u8; 32usize], } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleAfter { pub after: ::core::primitive::u32, pub maybe_periodic: @@ -1144,11 +1567,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamedAfter { pub id: [::core::primitive::u8; 32usize], pub after: ::core::primitive::u32, @@ -1169,8 +1596,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule", Schedule { @@ -1191,8 +1618,8 @@ pub mod api { &self, when: ::core::primitive::u32, index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "cancel", Cancel { when, index }, @@ -1214,8 +1641,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named", ScheduleNamed { @@ -1237,8 +1664,8 @@ pub mod api { pub fn cancel_named( &self, id: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "cancel_named", CancelNamed { id }, @@ -1259,8 +1686,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule_after", ScheduleAfter { @@ -1288,8 +1715,8 @@ pub mod api { )>, priority: ::core::primitive::u8, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named_after", ScheduleNamedAfter { @@ -1316,11 +1743,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Scheduled some task."] pub struct Scheduled { pub when: ::core::primitive::u32, @@ -1333,11 +1764,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Canceled some task."] pub struct Canceled { pub when: ::core::primitive::u32, @@ -1350,11 +1785,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Dispatched some task."] pub struct Dispatched { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1368,11 +1807,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1385,11 +1828,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: (::core::primitive::u32, ::core::primitive::u32), @@ -1402,11 +1849,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1423,13 +1874,14 @@ pub mod api { impl StorageApi { pub fn incomplete_since( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "IncompleteSince", vec![], @@ -1445,19 +1897,18 @@ pub mod api { pub fn agenda( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - 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::aleph_runtime::RuntimeCall, - >, - ::core::primitive::u32, - runtime_types::aleph_runtime::OriginCaller, - ::subxt::ext::sp_core::crypto::AccountId32, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_scheduler::Scheduled< + [::core::primitive::u8; 32usize], + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::aleph_runtime::RuntimeCall, >, + ::core::primitive::u32, + runtime_types::aleph_runtime::OriginCaller, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, >, >, @@ -1465,12 +1916,11 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 48u8, 65u8, 163u8, 111u8, 82u8, 33u8, 246u8, 16u8, 83u8, 40u8, 138u8, @@ -1482,19 +1932,18 @@ pub mod api { #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - 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::aleph_runtime::RuntimeCall, - >, - ::core::primitive::u32, - runtime_types::aleph_runtime::OriginCaller, - ::subxt::ext::sp_core::crypto::AccountId32, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_scheduler::Scheduled< + [::core::primitive::u8; 32usize], + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::aleph_runtime::RuntimeCall, >, + ::core::primitive::u32, + runtime_types::aleph_runtime::OriginCaller, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, >, >, @@ -1502,7 +1951,7 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", Vec::new(), @@ -1520,21 +1969,18 @@ pub mod api { pub fn lookup( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Lookup", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 82u8, 20u8, 178u8, 101u8, 108u8, 198u8, 71u8, 99u8, 16u8, 175u8, 15u8, @@ -1550,16 +1996,14 @@ pub mod api { #[doc = " identities."] pub fn lookup_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Scheduler", "Lookup", Vec::new(), @@ -1580,12 +2024,9 @@ pub mod api { #[doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_weights::weight_v2::Weight, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Scheduler", "MaximumWeight", [ @@ -1603,10 +2044,8 @@ pub mod api { #[doc = " higher limit under `runtime-benchmarks` feature."] pub fn max_scheduled_per_block( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Scheduler", "MaxScheduledPerBlock", [ @@ -1629,17 +2068,16 @@ pub mod api { #[doc = " The current authority set."] pub fn authorities( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aura", "Authorities", vec![], @@ -1656,13 +2094,14 @@ pub mod api { #[doc = " This will be set in `on_initialize`."] pub fn current_slot( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aura", "CurrentSlot", vec![], @@ -1686,11 +2125,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Set { #[codec(compact)] pub now: ::core::primitive::u64, @@ -1712,11 +2155,8 @@ pub mod api { #[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: ::core::primitive::u64, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Timestamp", "set", Set { now }, @@ -1736,13 +2176,14 @@ pub mod api { #[doc = " Current time for the current block."] pub fn now( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Timestamp", "Now", vec![], @@ -1756,13 +2197,14 @@ pub mod api { #[doc = " Did the timestamp get updated in this block?"] pub fn did_update( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Timestamp", "DidUpdate", vec![], @@ -1785,10 +2227,8 @@ pub mod api { #[doc = " double this period on default settings."] pub fn minimum_period( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( "Timestamp", "MinimumPeriod", [ @@ -1811,14 +2251,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAllowDeath { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1827,14 +2271,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBalanceDeprecated { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1845,18 +2293,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { - pub source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1865,14 +2317,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferKeepAlive { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1881,14 +2337,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAll { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub keep_alive: ::core::primitive::bool, @@ -1896,14 +2356,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnreserve { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub amount: ::core::primitive::u128, @@ -1911,25 +2375,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpgradeAccounts { - pub who: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub who: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transfer { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1938,14 +2412,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetBalance { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -1962,13 +2440,13 @@ pub mod api { #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub fn transfer_allow_death( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer_allow_death", TransferAllowDeath { dest, value }, @@ -1987,14 +2465,14 @@ pub mod api { #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] pub fn set_balance_deprecated( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, new_free: ::core::primitive::u128, old_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "set_balance_deprecated", SetBalanceDeprecated { @@ -2014,17 +2492,17 @@ pub mod api { #[doc = "may be specified."] pub fn force_transfer( &self, - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "force_transfer", ForceTransfer { @@ -2048,13 +2526,13 @@ pub mod api { #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer_keep_alive", TransferKeepAlive { dest, value }, @@ -2083,13 +2561,13 @@ pub mod api { #[doc = " keep the sender account alive (true)."] pub fn transfer_all( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, keep_alive: ::core::primitive::bool, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer_all", TransferAll { dest, keep_alive }, @@ -2106,13 +2584,13 @@ pub mod api { #[doc = "Can only be called by ROOT."] pub fn force_unreserve( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, amount: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "force_unreserve", ForceUnreserve { who, amount }, @@ -2134,9 +2612,11 @@ pub mod api { #[doc = "possibililty of churn)."] pub fn upgrade_accounts( &self, - who: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + who: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "upgrade_accounts", UpgradeAccounts { who }, @@ -2152,13 +2632,13 @@ pub mod api { #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] pub fn transfer( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "transfer", Transfer { dest, value }, @@ -2175,13 +2655,13 @@ pub mod api { #[doc = "The dispatch origin for this call is `root`."] pub fn force_set_balance( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, new_free: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Balances", "force_set_balance", ForceSetBalance { who, new_free }, @@ -2201,14 +2681,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was created with some free balance."] pub struct Endowed { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub free_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Endowed { @@ -2218,15 +2702,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DustLost { @@ -2236,15 +2724,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Transfer succeeded."] pub struct Transfer { - pub from: ::subxt::ext::sp_core::crypto::AccountId32, - pub to: ::subxt::ext::sp_core::crypto::AccountId32, + pub from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Transfer { @@ -2254,14 +2746,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A balance was set by root."] pub struct BalanceSet { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub free: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BalanceSet { @@ -2271,14 +2767,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Reserved { @@ -2288,14 +2788,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unreserved { @@ -2305,16 +2809,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: ::subxt::ext::sp_core::crypto::AccountId32, - pub to: ::subxt::ext::sp_core::crypto::AccountId32, + pub from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, pub destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, @@ -2326,14 +2834,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { @@ -2343,14 +2855,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdraw { @@ -2360,14 +2876,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { @@ -2377,14 +2897,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was minted into an account."] pub struct Minted { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Minted { @@ -2394,14 +2918,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was burned from an account."] pub struct Burned { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burned { @@ -2411,14 +2939,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Suspended { @@ -2428,14 +2960,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was restored into an account."] pub struct Restored { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Restored { @@ -2445,14 +2981,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was upgraded."] pub struct Upgraded { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Upgraded { const PALLET: &'static str = "Balances"; @@ -2462,11 +3002,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { pub amount: ::core::primitive::u128, @@ -2479,11 +3023,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { pub amount: ::core::primitive::u128, @@ -2495,14 +3043,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was locked."] pub struct Locked { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Locked { @@ -2512,14 +3064,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unlocked."] pub struct Unlocked { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unlocked { @@ -2529,14 +3085,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was frozen."] pub struct Frozen { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Frozen { @@ -2546,14 +3106,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was thawed."] pub struct Thawed { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Thawed { @@ -2568,13 +3132,14 @@ pub mod api { #[doc = " The total units issued in the system."] pub fn total_issuance( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "TotalIssuance", vec![], @@ -2588,13 +3153,14 @@ pub mod api { #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "InactiveIssuance", vec![], @@ -2632,21 +3198,21 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Account", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 109u8, 250u8, 18u8, 96u8, 139u8, 232u8, 4u8, 139u8, 133u8, 239u8, 30u8, @@ -2682,15 +3248,14 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Account", Vec::new(), @@ -2706,25 +3271,23 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::types::BalanceLock< - ::core::primitive::u128, - >, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Locks", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 216u8, 253u8, 87u8, 73u8, 24u8, 218u8, 35u8, 0u8, 244u8, 134u8, 195u8, @@ -2737,19 +3300,16 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::types::BalanceLock< - ::core::primitive::u128, - >, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Locks", Vec::new(), @@ -2763,26 +3323,26 @@ pub mod api { #[doc = " Named reserves on some account balances."] pub fn reserves( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Reserves", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 17u8, 32u8, 191u8, 46u8, 76u8, 220u8, 101u8, 100u8, 42u8, 250u8, 128u8, @@ -2794,20 +3354,19 @@ pub mod api { #[doc = " Named reserves on some account balances."] pub fn reserves_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Reserves", Vec::new(), @@ -2821,26 +3380,26 @@ pub mod api { #[doc = " Holds on account balances."] pub fn holds( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Holds", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 247u8, 81u8, 4u8, 220u8, 77u8, 205u8, 28u8, 131u8, 215u8, 74u8, 197u8, @@ -2852,20 +3411,19 @@ pub mod api { #[doc = " Holds on account balances."] pub fn holds_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Holds", Vec::new(), @@ -2879,26 +3437,26 @@ pub mod api { #[doc = " Freeze locks on account balances."] pub fn freezes( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Freezes", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 211u8, 24u8, 237u8, 217u8, 47u8, 230u8, 147u8, 39u8, 112u8, 209u8, @@ -2910,20 +3468,19 @@ pub mod api { #[doc = " Freeze locks on account balances."] pub fn freezes_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Balances", "Freezes", Vec::new(), @@ -2950,10 +3507,8 @@ pub mod api { #[doc = " Bottom line: Do yourself a favour and make it at least one!"] pub fn existential_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Balances", "ExistentialDeposit", [ @@ -2965,12 +3520,8 @@ pub mod api { } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] - pub fn max_locks( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxLocks", [ @@ -2982,12 +3533,8 @@ pub mod api { ) } #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxReserves", [ @@ -2999,12 +3546,8 @@ pub mod api { ) } #[doc = " The maximum number of holds that can exist on an account at any time."] - pub fn max_holds( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxHolds", [ @@ -3016,12 +3559,8 @@ pub mod api { ) } #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] - pub fn max_freezes( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Balances", "MaxFreezes", [ @@ -3044,15 +3583,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub actual_fee: ::core::primitive::u128, pub tip: ::core::primitive::u128, } @@ -3067,15 +3610,14 @@ pub mod api { impl StorageApi { pub fn next_fee_multiplier( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::fixed_point::FixedU128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "TransactionPayment", "NextFeeMultiplier", vec![], @@ -3089,15 +3631,14 @@ pub mod api { } pub fn storage_version( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_transaction_payment::Releases, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_transaction_payment::Releases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "TransactionPayment", "StorageVersion", vec![], @@ -3137,10 +3678,8 @@ pub mod api { #[doc = " transactions."] pub fn operational_fee_multiplier( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( "TransactionPayment", "OperationalFeeMultiplier", [ @@ -3163,13 +3702,14 @@ pub mod api { #[doc = " Author of current block."] pub fn author( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Authorship", "Author", vec![], @@ -3193,30 +3733,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bond { - pub controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] pub value: ::core::primitive::u128, pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { #[codec(compact)] pub max_additional: ::core::primitive::u128, @@ -3224,11 +3772,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -3237,37 +3789,49 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { pub num_slashing_spans: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Validate { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { pub targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, @@ -3275,47 +3839,63 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPayee { pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetController { - pub controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidatorCount { #[codec(compact)] pub new: ::core::primitive::u32, @@ -3323,11 +3903,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: ::core::primitive::u32, @@ -3335,72 +3919,102 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScaleValidatorCount { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoEras; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEra; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub invulnerables: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnstake { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub num_slashing_spans: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEraAlways; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelDeferredSlash { pub era: ::core::primitive::u32, pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, @@ -3408,23 +4022,32 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PayoutStakers { - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub era: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Rebond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -3432,27 +4055,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReapStash { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub num_slashing_spans: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Kick { pub who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, @@ -3460,11 +4091,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStakingConfigs { pub min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, @@ -3486,33 +4121,46 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChillOther { - pub controller: ::subxt::ext::sp_core::crypto::AccountId32, + pub controller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinCommission { pub new: runtime_types::sp_arithmetic::per_things::Perbill, } @@ -3535,16 +4183,16 @@ pub mod api { #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] pub fn bond( &self, - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "bond", Bond { @@ -3577,8 +4225,8 @@ pub mod api { pub fn bond_extra( &self, max_additional: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "bond_extra", BondExtra { max_additional }, @@ -3611,8 +4259,8 @@ pub mod api { pub fn unbond( &self, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "unbond", Unbond { value }, @@ -3641,8 +4289,8 @@ pub mod api { pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "withdraw_unbonded", WithdrawUnbonded { num_slashing_spans }, @@ -3662,8 +4310,8 @@ pub mod api { pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "validate", Validate { prefs }, @@ -3688,13 +4336,13 @@ pub mod api { pub fn nominate( &self, targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "nominate", Nominate { targets }, @@ -3716,8 +4364,8 @@ pub mod api { #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] - pub fn chill(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn chill(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "chill", Chill {}, @@ -3744,10 +4392,10 @@ pub mod api { pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_payee", SetPayee { payee }, @@ -3771,12 +4419,12 @@ pub mod api { #[doc = "- Writes are limited to the `origin` account key."] pub fn set_controller( &self, - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_controller", SetController { controller }, @@ -3796,8 +4444,8 @@ pub mod api { pub fn set_validator_count( &self, new: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_validator_count", SetValidatorCount { new }, @@ -3818,8 +4466,8 @@ pub mod api { pub fn increase_validator_count( &self, additional: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "increase_validator_count", IncreaseValidatorCount { additional }, @@ -3840,8 +4488,8 @@ pub mod api { pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "scale_validator_count", ScaleValidatorCount { factor }, @@ -3866,8 +4514,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] - pub fn force_no_eras(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn force_no_eras(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_no_eras", ForceNoEras {}, @@ -3892,8 +4540,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] - pub fn force_new_era(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn force_new_era(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_new_era", ForceNewEra {}, @@ -3909,9 +4557,11 @@ pub mod api { #[doc = "The dispatch origin must be Root."] pub fn set_invulnerables( &self, - invulnerables: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + invulnerables: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_invulnerables", SetInvulnerables { invulnerables }, @@ -3927,10 +4577,10 @@ pub mod api { #[doc = "The dispatch origin must be Root."] pub fn force_unstake( &self, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_unstake", ForceUnstake { @@ -3954,10 +4604,8 @@ pub mod api { #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] - pub fn force_new_era_always( - &self, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn force_new_era_always(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_new_era_always", ForceNewEraAlways {}, @@ -3978,8 +4626,8 @@ pub mod api { &self, era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "cancel_deferred_slash", CancelDeferredSlash { era, slash_indices }, @@ -4004,10 +4652,12 @@ pub mod api { #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] pub fn payout_stakers( &self, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, era: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "payout_stakers", PayoutStakers { @@ -4031,8 +4681,8 @@ pub mod api { pub fn rebond( &self, value: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "rebond", Rebond { value }, @@ -4058,10 +4708,10 @@ pub mod api { #[doc = "Refunds the transaction fees upon successful execution."] pub fn reap_stash( &self, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "reap_stash", ReapStash { @@ -4090,13 +4740,13 @@ pub mod api { pub fn kick( &self, who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "kick", Kick { who }, @@ -4144,8 +4794,8 @@ pub mod api { min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_staking_configs", SetStakingConfigs { @@ -4191,9 +4841,9 @@ pub mod api { #[doc = "who do not satisfy these requirements."] pub fn chill_other( &self, - controller: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + controller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "chill_other", ChillOther { controller }, @@ -4209,9 +4859,11 @@ pub mod api { #[doc = "can call this."] pub fn force_apply_min_commission( &self, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + validator_stash: ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "force_apply_min_commission", ForceApplyMinCommission { validator_stash }, @@ -4230,8 +4882,8 @@ pub mod api { pub fn set_min_commission( &self, new: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Staking", "set_min_commission", SetMinCommission { new }, @@ -4252,11 +4904,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] #[doc = "the remainder from the maximum amount of reward."] pub struct EraPaid { @@ -4271,14 +4927,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The nominator has been rewarded by this amount."] pub struct Rewarded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { @@ -4288,14 +4948,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] pub struct Slashed { - pub staker: ::subxt::ext::sp_core::crypto::AccountId32, + pub staker: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { @@ -4305,15 +4969,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] pub struct SlashReported { - pub validator: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, pub slash_era: ::core::primitive::u32, } @@ -4325,11 +4993,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed."] pub struct OldSlashingReportDiscarded { @@ -4342,11 +5014,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::events::StaticEvent for StakersElected { @@ -4356,17 +5032,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has bonded this amount. \\[stash, amount\\]"] #[doc = ""] #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] pub struct Bonded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Bonded { @@ -4376,14 +5056,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has unbonded this amount."] pub struct Unbonded { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unbonded { @@ -4393,15 +5077,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] pub struct Withdrawn { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { @@ -4411,15 +5099,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A nominator has been kicked from a validator."] pub struct Kicked { - pub nominator: ::subxt::ext::sp_core::crypto::AccountId32, - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Kicked { const PALLET: &'static str = "Staking"; @@ -4428,11 +5120,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::events::StaticEvent for StakingElectionFailed { @@ -4442,14 +5138,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has stopped participating as either a validator or nominator."] pub struct Chilled { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Chilled { const PALLET: &'static str = "Staking"; @@ -4458,15 +5158,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: ::core::primitive::u32, - pub validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for PayoutStarted { const PALLET: &'static str = "Staking"; @@ -4475,14 +5180,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A validator has set their preferences."] pub struct ValidatorPrefsSet { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::events::StaticEvent for ValidatorPrefsSet { @@ -4492,11 +5201,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new force era mode was set."] pub struct ForceEra { pub mode: runtime_types::pallet_staking::Forcing, @@ -4513,13 +5226,14 @@ pub mod api { #[doc = " The ideal number of active validators."] pub fn validator_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorCount", vec![], @@ -4533,13 +5247,14 @@ pub mod api { #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinimumValidatorCount", vec![], @@ -4555,15 +5270,16 @@ pub mod api { #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Invulnerables", vec![], @@ -4579,19 +5295,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Bonded", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 35u8, 197u8, 156u8, 60u8, 22u8, 59u8, 103u8, 83u8, 77u8, 15u8, 118u8, @@ -4605,13 +5323,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Bonded", Vec::new(), @@ -4625,13 +5344,14 @@ pub mod api { #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinNominatorBond", vec![], @@ -4645,13 +5365,14 @@ pub mod api { #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinValidatorBond", vec![], @@ -4665,13 +5386,14 @@ pub mod api { #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinimumActiveStake", vec![], @@ -4687,15 +5409,14 @@ pub mod api { #[doc = " If set to `0`, no limit exists."] pub fn min_commission( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MinCommission", vec![], @@ -4709,21 +5430,21 @@ pub mod api { #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::StakingLedger, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Ledger", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 31u8, 205u8, 3u8, 165u8, 22u8, 22u8, 62u8, 92u8, 33u8, 189u8, 124u8, @@ -4736,15 +5457,14 @@ pub mod api { #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::StakingLedger, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Ledger", Vec::new(), @@ -4761,23 +5481,23 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Payee", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 195u8, 125u8, 82u8, 213u8, 216u8, 64u8, 76u8, 63u8, 187u8, 163u8, 20u8, @@ -4792,17 +5512,16 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Payee", Vec::new(), @@ -4819,21 +5538,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Validators", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 80u8, 77u8, 66u8, 18u8, 197u8, 250u8, 41u8, 185u8, 43u8, 24u8, 149u8, @@ -4848,15 +5567,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Validators", Vec::new(), @@ -4871,13 +5589,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CounterForValidators", vec![], @@ -4893,13 +5612,14 @@ pub mod api { #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MaxValidatorsCount", vec![], @@ -4930,19 +5650,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Nominators", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 1u8, 154u8, 55u8, 170u8, 215u8, 64u8, 56u8, 83u8, 254u8, 19u8, 152u8, @@ -4972,13 +5694,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "Nominators", Vec::new(), @@ -4993,13 +5716,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CounterForNominators", vec![], @@ -5015,13 +5739,14 @@ pub mod api { #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "MaxNominatorsCount", vec![], @@ -5039,13 +5764,14 @@ pub mod api { #[doc = " set, it might be active or not."] pub fn current_era( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CurrentEra", vec![], @@ -5062,15 +5788,14 @@ pub mod api { #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ActiveEraInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ActiveEraInfo, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ActiveEra", vec![], @@ -5088,18 +5813,18 @@ pub mod api { pub fn eras_start_session_index( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStartSessionIndex", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, 230u8, 229u8, @@ -5115,13 +5840,14 @@ pub mod api { #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStartSessionIndex", Vec::new(), @@ -5142,30 +5868,25 @@ pub mod api { pub fn eras_stakers( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakers", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 192u8, 50u8, 152u8, 151u8, 92u8, 180u8, 206u8, 15u8, 139u8, 210u8, @@ -5182,18 +5903,17 @@ pub mod api { #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakers", Vec::new(), @@ -5218,30 +5938,25 @@ pub mod api { pub fn eras_stakers_clipped( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakersClipped", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 43u8, 159u8, 113u8, 223u8, 122u8, 169u8, 98u8, 153u8, 26u8, 55u8, 71u8, @@ -5264,18 +5979,17 @@ pub mod api { #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::Exposure< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasStakersClipped", Vec::new(), @@ -5295,27 +6009,22 @@ pub mod api { pub fn eras_validator_prefs( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorPrefs", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 6u8, 196u8, 209u8, 138u8, 252u8, 18u8, 203u8, 86u8, 129u8, 62u8, 4u8, @@ -5332,15 +6041,14 @@ pub mod api { #[doc = " Is it removed after `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::ValidatorPrefs, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorPrefs", Vec::new(), @@ -5358,18 +6066,18 @@ pub mod api { pub fn eras_validator_reward( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorReward", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, 231u8, 84u8, 124u8, @@ -5383,13 +6091,14 @@ pub mod api { #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorReward", Vec::new(), @@ -5405,22 +6114,20 @@ pub mod api { pub fn eras_reward_points( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasRewardPoints", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 194u8, 29u8, 20u8, 83u8, 200u8, 47u8, 158u8, 102u8, 88u8, 65u8, 24u8, @@ -5433,17 +6140,16 @@ pub mod api { #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasRewardPoints", Vec::new(), @@ -5459,18 +6165,18 @@ pub mod api { pub fn eras_total_stake( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasTotalStake", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, 240u8, 4u8, 46u8, 77u8, @@ -5483,13 +6189,14 @@ pub mod api { #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ErasTotalStake", Vec::new(), @@ -5503,13 +6210,14 @@ pub mod api { #[doc = " Mode of era forcing."] pub fn force_era( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Forcing, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ForceEra", vec![], @@ -5525,15 +6233,14 @@ pub mod api { #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SlashRewardFraction", vec![], @@ -5549,13 +6256,14 @@ pub mod api { #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CanceledSlashPayout", vec![], @@ -5570,25 +6278,23 @@ pub mod api { pub fn unapplied_slashes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "UnappliedSlashes", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 130u8, 4u8, 163u8, 163u8, 28u8, 85u8, 34u8, 156u8, 47u8, 125u8, 57u8, @@ -5600,20 +6306,19 @@ pub mod api { #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "UnappliedSlashes", Vec::new(), @@ -5630,15 +6335,14 @@ pub mod api { #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "BondedEras", vec![], @@ -5655,28 +6359,25 @@ pub mod api { pub fn validator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128, - )>, + ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorSlashInEra", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 237u8, 80u8, 3u8, 237u8, 9u8, 40u8, 212u8, 15u8, 251u8, 196u8, 85u8, @@ -5690,16 +6391,17 @@ pub mod api { #[doc = " and slash value of the era."] pub fn validator_slash_in_era_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128, - )>, + ), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ValidatorSlashInEra", Vec::new(), @@ -5715,25 +6417,22 @@ pub mod api { pub fn nominator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - _1: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + _1: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "NominatorSlashInEra", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 249u8, 85u8, 170u8, 41u8, 179u8, 194u8, 180u8, 12u8, 53u8, 101u8, 80u8, @@ -5745,13 +6444,14 @@ pub mod api { #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "NominatorSlashInEra", Vec::new(), @@ -5765,21 +6465,21 @@ pub mod api { #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SlashingSpans, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SlashingSpans", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 106u8, 115u8, 118u8, 52u8, 89u8, 77u8, 246u8, 5u8, 255u8, 204u8, 44u8, @@ -5791,15 +6491,14 @@ pub mod api { #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SlashingSpans, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SlashingSpans", Vec::new(), @@ -5814,25 +6513,24 @@ pub mod api { #[doc = " as well as how much reward has been paid out."] pub fn span_slash( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - _1: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SpanSlash", - vec![::subxt::storage::address::StorageMapKey::new( - &(_0.borrow(), _1.borrow()), - ::subxt::storage::address::StorageHasher::Twox64Concat, - )], + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ 160u8, 63u8, 115u8, 190u8, 233u8, 148u8, 75u8, 3u8, 11u8, 59u8, 184u8, 220u8, 205u8, 64u8, 28u8, 190u8, 116u8, 210u8, 225u8, 230u8, 224u8, @@ -5845,17 +6543,14 @@ pub mod api { #[doc = " as well as how much reward has been paid out."] pub fn span_slash_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "SpanSlash", Vec::new(), @@ -5872,13 +6567,14 @@ pub mod api { #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "CurrentPlannedSession", vec![], @@ -5900,15 +6596,14 @@ pub mod api { #[doc = " the era ends."] pub fn offending_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "OffendingValidators", vec![], @@ -5924,15 +6619,14 @@ pub mod api { #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Percent, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Percent, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Staking", "ChillThreshold", vec![], @@ -5952,10 +6646,8 @@ pub mod api { #[doc = " Maximum number of nominations per nominator."] pub fn max_nominations( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "MaxNominations", [ @@ -5986,12 +6678,8 @@ pub mod api { #[doc = " the existing value can lead to inconsistencies in the"] #[doc = " `StakingLedger` and will need to be handled properly in a migration."] #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] - pub fn history_depth( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "HistoryDepth", [ @@ -6005,10 +6693,8 @@ pub mod api { #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "SessionsPerEra", [ @@ -6022,10 +6708,8 @@ pub mod api { #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "BondingDuration", [ @@ -6042,10 +6726,8 @@ pub mod api { #[doc = " should be applied immediately, without opportunity for intervention."] pub fn slash_defer_duration( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "SlashDeferDuration", [ @@ -6062,10 +6744,8 @@ pub mod api { #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] pub fn max_nominator_rewarded_per_validator( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "MaxNominatorRewardedPerValidator", [ @@ -6088,10 +6768,8 @@ pub mod api { #[doc = " this effect."] pub fn max_unlocking_chunks( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Staking", "MaxUnlockingChunks", [ @@ -6115,21 +6793,18 @@ pub mod api { pub fn historical_sessions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::H256, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "History", "HistoricalSessions", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 94u8, 72u8, 245u8, 151u8, 214u8, 10u8, 12u8, 113u8, 13u8, 141u8, 176u8, @@ -6141,16 +6816,14 @@ pub mod api { #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::H256, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "History", "HistoricalSessions", Vec::new(), @@ -6164,16 +6837,14 @@ pub mod api { #[doc = " The range of historical sessions we store. [first, last)"] pub fn stored_range( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "History", "StoredRange", vec![], @@ -6196,11 +6867,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKeys { pub keys: runtime_types::aleph_runtime::SessionKeys, pub proof: ::std::vec::Vec<::core::primitive::u8>, @@ -6208,11 +6883,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PurgeKeys; pub struct TransactionApi; impl TransactionApi { @@ -6229,8 +6908,8 @@ pub mod api { &self, keys: runtime_types::aleph_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Session", "set_keys", SetKeys { keys, proof }, @@ -6254,8 +6933,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] #[doc = " `T::Keys::key_ids()` which is fixed."] - pub fn purge_keys(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn purge_keys(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Session", "purge_keys", PurgeKeys {}, @@ -6276,11 +6955,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] pub struct NewSession { @@ -6298,15 +6981,16 @@ pub mod api { #[doc = " The current set of validators."] pub fn validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "Validators", vec![], @@ -6321,13 +7005,14 @@ pub mod api { #[doc = " Current index of the session."] pub fn current_index( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "CurrentIndex", vec![], @@ -6343,13 +7028,14 @@ pub mod api { #[doc = " has changed in the queued validator set."] pub fn queued_changed( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "QueuedChanged", vec![], @@ -6364,18 +7050,17 @@ pub mod api { #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, - runtime_types::aleph_runtime::SessionKeys, - )>, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + runtime_types::aleph_runtime::SessionKeys, + )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "QueuedKeys", vec![], @@ -6394,13 +7079,14 @@ pub mod api { #[doc = " a new set of identities."] pub fn disabled_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::std::vec::Vec<::core::primitive::u32>>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "DisabledValidators", vec![], @@ -6415,19 +7101,21 @@ pub mod api { #[doc = " The next session keys for a validator."] pub fn next_keys( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::aleph_runtime::SessionKeys, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "NextKeys", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 18u8, 209u8, 31u8, 20u8, 131u8, 9u8, 97u8, 157u8, 63u8, 9u8, 233u8, @@ -6439,13 +7127,14 @@ pub mod api { #[doc = " The next session keys for a validator."] pub fn next_keys_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::aleph_runtime::SessionKeys, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "NextKeys", Vec::new(), @@ -6461,19 +7150,20 @@ pub mod api { &self, _0: impl ::std::borrow::Borrow, _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "KeyOwner", - vec![::subxt::storage::address::StorageMapKey::new( - &(_0.borrow(), _1.borrow()), - ::subxt::storage::address::StorageHasher::Twox64Concat, - )], + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ 4u8, 91u8, 25u8, 84u8, 250u8, 201u8, 174u8, 129u8, 201u8, 58u8, 197u8, 199u8, 137u8, 240u8, 118u8, 33u8, 99u8, 2u8, 195u8, 57u8, 53u8, 172u8, @@ -6484,13 +7174,14 @@ pub mod api { #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Session", "KeyOwner", Vec::new(), @@ -6513,22 +7204,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetEmergencyFinalizer { pub emergency_finalizer: runtime_types::primitives::app::Public, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleFinalityVersionChange { pub version_incoming: ::core::primitive::u32, pub session: ::core::primitive::u32, @@ -6540,8 +7239,8 @@ pub mod api { pub fn set_emergency_finalizer( &self, emergency_finalizer: runtime_types::primitives::app::Public, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Aleph", "set_emergency_finalizer", SetEmergencyFinalizer { @@ -6564,8 +7263,8 @@ pub mod api { &self, version_incoming: ::core::primitive::u32, session: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Aleph", "schedule_finality_version_change", ScheduleFinalityVersionChange { @@ -6589,11 +7288,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChangeEmergencyFinalizer(pub runtime_types::primitives::app::Public); impl ::subxt::events::StaticEvent for ChangeEmergencyFinalizer { const PALLET: &'static str = "Aleph"; @@ -6602,11 +7305,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleFinalityVersionChange(pub runtime_types::primitives::VersionChange); impl ::subxt::events::StaticEvent for ScheduleFinalityVersionChange { const PALLET: &'static str = "Aleph"; @@ -6615,11 +7322,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FinalityVersionChange(pub runtime_types::primitives::VersionChange); impl ::subxt::events::StaticEvent for FinalityVersionChange { const PALLET: &'static str = "Aleph"; @@ -6632,15 +7343,14 @@ pub mod api { impl StorageApi { pub fn authorities( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "Authorities", vec![], @@ -6653,37 +7363,38 @@ pub mod api { } pub fn next_authorities( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "NextAuthorities", vec![], [ - 72u8, 166u8, 169u8, 99u8, 196u8, 159u8, 85u8, 238u8, 23u8, 75u8, 218u8, - 191u8, 97u8, 198u8, 191u8, 217u8, 134u8, 216u8, 81u8, 221u8, 76u8, - 137u8, 34u8, 51u8, 6u8, 212u8, 76u8, 100u8, 156u8, 175u8, 196u8, 218u8, + 163u8, 215u8, 20u8, 173u8, 9u8, 250u8, 28u8, 164u8, 208u8, 154u8, + 213u8, 242u8, 175u8, 159u8, 46u8, 10u8, 131u8, 62u8, 246u8, 12u8, + 223u8, 212u8, 37u8, 170u8, 170u8, 198u8, 86u8, 237u8, 62u8, 0u8, 191u8, + 42u8, ], ) } #[doc = " Set of account ids that will be used as authorities in the next session"] pub fn next_finality_committee( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "NextFinalityCommittee", vec![], @@ -6696,13 +7407,14 @@ pub mod api { } pub fn emergency_finalizer( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::app::Public, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "EmergencyFinalizer", vec![], @@ -6715,13 +7427,14 @@ pub mod api { } pub fn queued_emergency_finalizer( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::app::Public, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "QueuedEmergencyFinalizer", vec![], @@ -6734,13 +7447,14 @@ pub mod api { } pub fn next_emergency_finalizer( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::app::Public, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "NextEmergencyFinalizer", vec![], @@ -6754,13 +7468,14 @@ pub mod api { #[doc = " Current finality version."] pub fn finality_version( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "FinalityVersion", vec![], @@ -6775,13 +7490,14 @@ pub mod api { #[doc = " Scheduled finality version change."] pub fn finality_scheduled_version_change( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::VersionChange, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Aleph", "FinalityScheduledVersionChange", vec![], @@ -6805,17 +7521,25 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChangeValidators { pub reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, pub non_reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, pub committee_size: ::core::option::Option, @@ -6823,11 +7547,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetElectionsOpenness { pub openness: runtime_types::primitives::ElectionOpenness, } @@ -6836,16 +7564,20 @@ pub mod api { pub fn change_validators( &self, reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, non_reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, committee_size: ::core::option::Option< runtime_types::primitives::CommitteeSeats, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Elections", "change_validators", ChangeValidators { @@ -6864,8 +7596,8 @@ pub mod api { pub fn set_elections_openness( &self, openness: runtime_types::primitives::ElectionOpenness, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Elections", "set_elections_openness", SetElectionsOpenness { openness }, @@ -6886,15 +7618,23 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Committee for the next era has changed"] pub struct ChangeValidators( - pub ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - pub ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + pub ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub runtime_types::primitives::CommitteeSeats, ); impl ::subxt::events::StaticEvent for ChangeValidators { @@ -6909,13 +7649,14 @@ pub mod api { #[doc = " Desirable size of a committee, see [`CommitteeSeats`]."] pub fn committee_size( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::CommitteeSeats, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "CommitteeSize", vec![], @@ -6929,13 +7670,14 @@ pub mod api { #[doc = " Desired size of a committee in effect from a new era."] pub fn next_era_committee_size( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::CommitteeSeats, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "NextEraCommitteeSize", vec![], @@ -6950,15 +7692,16 @@ pub mod api { #[doc = " Next era's list of reserved validators."] pub fn next_era_reserved_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "NextEraReservedValidators", vec![], @@ -6972,17 +7715,16 @@ pub mod api { #[doc = " Current era's list of reserved validators."] pub fn current_era_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::primitives::EraValidators< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::EraValidators< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "CurrentEraValidators", vec![], @@ -6997,15 +7739,16 @@ pub mod api { #[doc = " Next era's list of non reserved validators."] pub fn next_era_non_reserved_validators( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "NextEraNonReservedValidators", vec![], @@ -7020,15 +7763,14 @@ pub mod api { #[doc = " the validators list is managed by sudo"] pub fn openness( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::primitives::ElectionOpenness, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::ElectionOpenness, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Elections", "Openness", vec![], @@ -7050,12 +7792,8 @@ pub mod api { #[doc = " implementation."] #[doc = ""] #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] - pub fn max_winners( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_winners(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Elections", "MaxWinners", [ @@ -7078,27 +7816,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeSpend { #[codec(compact)] pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RejectProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -7106,11 +7852,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -7118,27 +7868,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Spend { #[codec(compact)] pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveApproval { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -7154,12 +7912,12 @@ pub mod api { pub fn propose_spend( &self, value: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "propose_spend", ProposeSpend { value, beneficiary }, @@ -7179,8 +7937,8 @@ pub mod api { pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "reject_proposal", RejectProposal { proposal_id }, @@ -7202,8 +7960,8 @@ pub mod api { pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "approve_proposal", ApproveProposal { proposal_id }, @@ -7225,12 +7983,12 @@ pub mod api { pub fn spend( &self, amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "spend", Spend { @@ -7260,8 +8018,8 @@ pub mod api { pub fn remove_approval( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Treasury", "remove_approval", RemoveApproval { proposal_id }, @@ -7282,11 +8040,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New proposal."] pub struct Proposed { pub proposal_index: ::core::primitive::u32, @@ -7299,11 +8061,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { pub budget_remaining: ::core::primitive::u128, @@ -7315,16 +8081,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been allocated."] pub struct Awarded { pub proposal_index: ::core::primitive::u32, pub award: ::core::primitive::u128, - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Awarded { const PALLET: &'static str = "Treasury"; @@ -7333,11 +8103,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal was rejected; funds were slashed."] pub struct Rejected { pub proposal_index: ::core::primitive::u32, @@ -7351,11 +8125,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some of our funds have been burnt."] pub struct Burnt { pub burnt_funds: ::core::primitive::u128, @@ -7368,11 +8146,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { pub rollover_balance: ::core::primitive::u128, @@ -7385,11 +8167,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been deposited."] pub struct Deposit { pub value: ::core::primitive::u128, @@ -7401,16 +8187,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new spend proposal has been approved."] pub struct SpendApproved { pub proposal_index: ::core::primitive::u32, pub amount: ::core::primitive::u128, - pub beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + pub beneficiary: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for SpendApproved { const PALLET: &'static str = "Treasury"; @@ -7419,11 +8209,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The inactive funds of the pallet have been updated."] pub struct UpdatedInactive { pub reactivated: ::core::primitive::u128, @@ -7441,13 +8235,14 @@ pub mod api { #[doc = " Number of proposals that have been made."] pub fn proposal_count( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "ProposalCount", vec![], @@ -7463,23 +8258,21 @@ pub mod api { pub fn proposals( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_treasury::Proposal< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Proposals", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 62u8, 223u8, 55u8, 209u8, 151u8, 134u8, 122u8, 65u8, 207u8, 38u8, @@ -7491,18 +8284,17 @@ pub mod api { #[doc = " Proposals that have been made."] pub fn proposals_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_treasury::Proposal< - ::subxt::ext::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ::core::primitive::u128, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Proposals", Vec::new(), @@ -7516,13 +8308,14 @@ pub mod api { #[doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Deactivated", vec![], @@ -7536,17 +8329,16 @@ pub mod api { #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Treasury", "Approvals", vec![], @@ -7568,12 +8360,9 @@ pub mod api { #[doc = " An accepted proposal gets these back. A rejected proposal does not."] pub fn proposal_bond( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Treasury", "ProposalBond", [ @@ -7586,10 +8375,8 @@ pub mod api { #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Treasury", "ProposalBondMinimum", [ @@ -7602,12 +8389,9 @@ pub mod api { #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - ::core::option::Option<::core::primitive::u128>, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> + { + ::subxt::constants::Address::new_static( "Treasury", "ProposalBondMaximum", [ @@ -7619,12 +8403,8 @@ pub mod api { ) } #[doc = " Period between successive spends."] - pub fn spend_period( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Treasury", "SpendPeriod", [ @@ -7638,12 +8418,9 @@ pub mod api { #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Permill, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Treasury", "Burn", [ @@ -7656,10 +8433,9 @@ pub mod api { #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Treasury", "PalletId", [ @@ -7672,12 +8448,8 @@ pub mod api { #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] - pub fn max_approvals( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Treasury", "MaxApprovals", [ @@ -7700,37 +8472,49 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vest; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestOther { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestedTransfer { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -7741,18 +8525,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceVestedTransfer { - pub source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -7763,11 +8551,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MergeSchedules { pub schedule1_index: ::core::primitive::u32, pub schedule2_index: ::core::primitive::u32, @@ -7783,8 +8575,8 @@ pub mod api { #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] - pub fn vest(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn vest(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "vest", Vest {}, @@ -7808,12 +8600,12 @@ pub mod api { #[doc = "- `O(1)`."] pub fn vest_other( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "vest_other", VestOther { target }, @@ -7840,16 +8632,16 @@ pub mod api { #[doc = "- `O(1)`."] pub fn vested_transfer( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "vested_transfer", VestedTransfer { target, schedule }, @@ -7877,20 +8669,20 @@ pub mod api { #[doc = "- `O(1)`."] pub fn force_vested_transfer( &self, - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "force_vested_transfer", ForceVestedTransfer { @@ -7930,8 +8722,8 @@ pub mod api { &self, schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Vesting", "merge_schedules", MergeSchedules { @@ -7954,15 +8746,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub unvested: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for VestingUpdated { @@ -7972,14 +8768,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { - pub account: ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for VestingCompleted { const PALLET: &'static str = "Vesting"; @@ -7993,26 +8793,26 @@ pub mod api { #[doc = " Information regarding the vesting of a given account."] pub fn vesting( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, >, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 23u8, 209u8, 233u8, 126u8, 89u8, 156u8, 193u8, 204u8, 100u8, 90u8, @@ -8024,20 +8824,19 @@ pub mod api { #[doc = " Information regarding the vesting of a given account."] pub fn vesting_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u32, >, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", Vec::new(), @@ -8053,13 +8852,14 @@ pub mod api { #[doc = " New networks start with latest version, as determined by the genesis build."] pub fn storage_version( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_vesting::Releases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Vesting", "StorageVersion", vec![], @@ -8079,10 +8879,8 @@ pub mod api { #[doc = " The minimum amount transferred to call `vested_transfer`."] pub fn min_vested_transfer( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Vesting", "MinVestedTransfer", [ @@ -8094,10 +8892,8 @@ pub mod api { } pub fn max_vesting_schedules( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Vesting", "MaxVestingSchedules", [ @@ -8120,22 +8916,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Batch { pub calls: ::std::vec::Vec, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsDerivative { pub index: ::core::primitive::u16, pub call: ::std::boxed::Box, @@ -8143,22 +8947,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BatchAll { pub calls: ::std::vec::Vec, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchAs { pub as_origin: ::std::boxed::Box, pub call: ::std::boxed::Box, @@ -8166,22 +8978,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceBatch { pub calls: ::std::vec::Vec, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithWeight { pub call: ::std::boxed::Box, pub weight: runtime_types::sp_weights::weight_v2::Weight, @@ -8209,8 +9029,8 @@ pub mod api { pub fn batch( &self, calls: ::std::vec::Vec, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "batch", Batch { calls }, @@ -8238,8 +9058,8 @@ pub mod api { &self, index: ::core::primitive::u16, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "as_derivative", AsDerivative { @@ -8269,8 +9089,8 @@ pub mod api { pub fn batch_all( &self, calls: ::std::vec::Vec, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "batch_all", BatchAll { calls }, @@ -8292,8 +9112,8 @@ pub mod api { &self, as_origin: runtime_types::aleph_runtime::OriginCaller, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "dispatch_as", DispatchAs { @@ -8324,8 +9144,8 @@ pub mod api { pub fn force_batch( &self, calls: ::std::vec::Vec, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "force_batch", ForceBatch { calls }, @@ -8347,8 +9167,8 @@ pub mod api { &self, call: runtime_types::aleph_runtime::RuntimeCall, weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Utility", "with_weight", WithWeight { @@ -8371,11 +9191,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: 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 { @@ -8389,11 +9213,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; impl ::subxt::events::StaticEvent for BatchCompleted { @@ -8403,11 +9231,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors; impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { @@ -8417,11 +9249,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; impl ::subxt::events::StaticEvent for ItemCompleted { @@ -8431,11 +9267,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { pub error: runtime_types::sp_runtime::DispatchError, @@ -8447,11 +9287,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A call was dispatched."] pub struct DispatchedAs { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -8468,10 +9312,8 @@ pub mod api { #[doc = " The limit on the number of batched calls."] pub fn batched_calls_limit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Utility", "batched_calls_limit", [ @@ -8494,26 +9336,38 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMultiThreshold1 { - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub call: ::std::boxed::Box, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -8523,14 +9377,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveAsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -8540,14 +9400,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelAsMulti { pub threshold: ::core::primitive::u16, - pub other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, pub call_hash: [::core::primitive::u8; 32usize], } @@ -8567,10 +9433,12 @@ pub mod api { #[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: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "as_multi_threshold_1", AsMultiThreshold1 { @@ -8626,14 +9494,16 @@ pub mod api { pub fn as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, call: runtime_types::aleph_runtime::RuntimeCall, max_weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "as_multi", AsMulti { @@ -8684,14 +9554,16 @@ pub mod api { pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::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, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "approve_as_multi", ApproveAsMulti { @@ -8733,11 +9605,13 @@ pub mod api { pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Multisig", "cancel_as_multi", CancelAsMulti { @@ -8762,15 +9636,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new multisig operation has begun."] pub struct NewMultisig { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for NewMultisig { @@ -8780,16 +9658,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigApproval { @@ -8799,16 +9681,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { - pub approving: ::subxt::ext::sp_core::crypto::AccountId32, + pub approving: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } @@ -8819,16 +9705,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { - pub cancelling: ::subxt::ext::sp_core::crypto::AccountId32, + pub cancelling: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::ext::sp_core::crypto::AccountId32, + pub multisig: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigCancelled { @@ -8843,32 +9733,27 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Multisig", "Multisigs", vec![ - ::subxt::storage::address::StorageMapKey::new( - _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, - ), - ::subxt::storage::address::StorageMapKey::new( - _1.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, - ), + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 69u8, 153u8, 186u8, 204u8, 117u8, 95u8, 119u8, 182u8, 220u8, 87u8, 8u8, @@ -8880,19 +9765,18 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Multisig", "Multisigs", Vec::new(), @@ -8915,12 +9799,8 @@ pub mod api { #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] - pub fn deposit_base( - &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Multisig", "DepositBase", [ @@ -8935,10 +9815,8 @@ pub mod api { #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] pub fn deposit_factor( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Multisig", "DepositFactor", [ @@ -8951,10 +9829,8 @@ pub mod api { #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Multisig", "MaxSignatories", [ @@ -8977,22 +9853,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Sudo { pub call: ::std::boxed::Box, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoUncheckedWeight { pub call: ::std::boxed::Box, pub weight: runtime_types::sp_weights::weight_v2::Weight, @@ -9000,28 +9884,36 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKey { - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoAs { - pub who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub call: ::std::boxed::Box, @@ -9037,8 +9929,8 @@ pub mod api { pub fn sudo( &self, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo", Sudo { @@ -9063,8 +9955,8 @@ pub mod api { &self, call: runtime_types::aleph_runtime::RuntimeCall, weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo_unchecked_weight", SudoUncheckedWeight { @@ -9088,12 +9980,12 @@ pub mod api { #[doc = "- O(1)."] pub fn set_key( &self, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "set_key", SetKey { new }, @@ -9113,13 +10005,13 @@ pub mod api { #[doc = "- O(1)."] pub fn sudo_as( &self, - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, call: runtime_types::aleph_runtime::RuntimeCall, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Sudo", "sudo_as", SudoAs { @@ -9143,11 +10035,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sudo just took place. \\[result\\]"] pub struct Sudid { pub sudo_result: @@ -9160,14 +10056,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] pub struct KeyChanged { - pub old_sudoer: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub old_sudoer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } impl ::subxt::events::StaticEvent for KeyChanged { const PALLET: &'static str = "Sudo"; @@ -9176,11 +10078,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sudo just took place. \\[result\\]"] pub struct SudoAsDone { pub sudo_result: @@ -9198,13 +10104,14 @@ pub mod api { #[doc = " The `AccountId` of the sudo key."] pub fn key( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Sudo", "Key", vec![], @@ -9227,14 +10134,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CallOldWeight { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -9248,11 +10159,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstantiateWithCodeOldWeight { #[codec(compact)] pub value: ::core::primitive::u128, @@ -9267,11 +10182,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstantiateOldWeight { #[codec(compact)] pub value: ::core::primitive::u128, @@ -9279,18 +10198,22 @@ pub mod api { pub gas_limit: ::core::primitive::u64, pub storage_deposit_limit: ::core::option::Option<::subxt::ext::codec::Compact<::core::primitive::u128>>, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, pub data: ::std::vec::Vec<::core::primitive::u8>, pub salt: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UploadCode { pub code: ::std::vec::Vec<::core::primitive::u8>, pub storage_deposit_limit: @@ -9300,40 +10223,52 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveCode { - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCode { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Call { - pub dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -9346,11 +10281,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstantiateWithCode { #[codec(compact)] pub value: ::core::primitive::u128, @@ -9364,18 +10303,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Instantiate { #[codec(compact)] pub value: ::core::primitive::u128, pub gas_limit: runtime_types::sp_weights::weight_v2::Weight, pub storage_deposit_limit: ::core::option::Option<::subxt::ext::codec::Compact<::core::primitive::u128>>, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, pub data: ::std::vec::Vec<::core::primitive::u8>, pub salt: ::std::vec::Vec<::core::primitive::u8>, } @@ -9384,8 +10327,8 @@ pub mod api { #[doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] pub fn call_old_weight( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, @@ -9394,8 +10337,8 @@ pub mod api { ::subxt::ext::codec::Compact<::core::primitive::u128>, >, data: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "call_old_weight", CallOldWeight { @@ -9424,8 +10367,8 @@ pub mod api { code: ::std::vec::Vec<::core::primitive::u8>, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate_with_code_old_weight", InstantiateWithCodeOldWeight { @@ -9451,11 +10394,11 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate_old_weight", InstantiateOldWeight { @@ -9500,8 +10443,8 @@ pub mod api { ::subxt::ext::codec::Compact<::core::primitive::u128>, >, determinism: runtime_types::pallet_contracts::wasm::Determinism, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "upload_code", UploadCode { @@ -9522,9 +10465,9 @@ pub mod api { #[doc = "not used by any contract."] pub fn remove_code( &self, - code_hash: ::subxt::ext::sp_core::H256, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + code_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "remove_code", RemoveCode { code_hash }, @@ -9547,13 +10490,13 @@ pub mod api { #[doc = "this dispatchable."] pub fn set_code( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - code_hash: ::subxt::ext::sp_core::H256, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + code_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "set_code", SetCode { dest, code_hash }, @@ -9583,8 +10526,8 @@ pub mod api { #[doc = "a regular account will be created and any value will be transferred."] pub fn call( &self, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, value: ::core::primitive::u128, @@ -9593,8 +10536,8 @@ pub mod api { ::subxt::ext::codec::Compact<::core::primitive::u128>, >, data: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "call", Call { @@ -9648,8 +10591,8 @@ pub mod api { code: ::std::vec::Vec<::core::primitive::u8>, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate_with_code", InstantiateWithCode { @@ -9679,11 +10622,11 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Contracts", "instantiate", Instantiate { @@ -9710,15 +10653,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contract deployed by address at the specified address."] pub struct Instantiated { - pub deployer: ::subxt::ext::sp_core::crypto::AccountId32, - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, + pub deployer: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Instantiated { const PALLET: &'static str = "Contracts"; @@ -9727,11 +10674,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contract has been removed."] #[doc = ""] #[doc = "# Note"] @@ -9739,8 +10690,8 @@ pub mod api { #[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: ::subxt::ext::sp_core::crypto::AccountId32, - pub beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub beneficiary: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Terminated { const PALLET: &'static str = "Contracts"; @@ -9749,14 +10700,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Code with the specified hash has been stored."] pub struct CodeStored { - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for CodeStored { const PALLET: &'static str = "Contracts"; @@ -9765,14 +10720,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A custom event emitted by the contract."] pub struct ContractEmitted { - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub data: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for ContractEmitted { @@ -9782,14 +10741,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A code with the specified hash was removed."] pub struct CodeRemoved { - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for CodeRemoved { const PALLET: &'static str = "Contracts"; @@ -9798,16 +10761,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A contract's code was updated."] pub struct ContractCodeUpdated { - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, - pub new_code_hash: ::subxt::ext::sp_core::H256, - pub old_code_hash: ::subxt::ext::sp_core::H256, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub new_code_hash: ::subxt::utils::H256, + pub old_code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for ContractCodeUpdated { const PALLET: &'static str = "Contracts"; @@ -9816,11 +10783,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A contract was called either by a plain account or another contract."] #[doc = ""] #[doc = "# Note"] @@ -9829,8 +10800,8 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] pub struct Called { - pub caller: ::subxt::ext::sp_core::crypto::AccountId32, - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, + pub caller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for Called { const PALLET: &'static str = "Contracts"; @@ -9839,11 +10810,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A contract delegate called a code hash."] #[doc = ""] #[doc = "# Note"] @@ -9852,8 +10827,8 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] pub struct DelegateCalled { - pub contract: ::subxt::ext::sp_core::crypto::AccountId32, - pub code_hash: ::subxt::ext::sp_core::H256, + pub contract: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub code_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for DelegateCalled { const PALLET: &'static str = "Contracts"; @@ -9867,23 +10842,21 @@ pub mod api { #[doc = " A mapping from an original code hash to the original code, untouched by instrumentation."] pub fn pristine_code( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "PristineCode", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, )], [ 244u8, 169u8, 220u8, 235u8, 62u8, 153u8, 226u8, 187u8, 220u8, 141u8, @@ -9896,17 +10869,16 @@ pub mod api { #[doc = " A mapping from an original code hash to the original code, untouched by instrumentation."] pub fn pristine_code_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "PristineCode", Vec::new(), @@ -9921,21 +10893,19 @@ pub mod api { #[doc = " A mapping between an original code hash and instrumented wasm code, ready for execution."] pub fn code_storage( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::PrefabWasmModule, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::PrefabWasmModule, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "CodeStorage", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, )], [ 135u8, 67u8, 120u8, 68u8, 191u8, 176u8, 13u8, 35u8, 114u8, 76u8, 58u8, @@ -9948,15 +10918,14 @@ pub mod api { #[doc = " A mapping between an original code hash and instrumented wasm code, ready for execution."] pub fn code_storage_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::PrefabWasmModule, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::PrefabWasmModule, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "CodeStorage", Vec::new(), @@ -9971,21 +10940,19 @@ pub mod api { #[doc = " A mapping between an original code hash and its owner information."] pub fn owner_info_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::H256>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::OwnerInfo, - >, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::OwnerInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "OwnerInfoOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Identity, )], [ 147u8, 6u8, 225u8, 62u8, 211u8, 236u8, 61u8, 116u8, 152u8, 219u8, @@ -9998,15 +10965,14 @@ pub mod api { #[doc = " A mapping between an original code hash and its owner information."] pub fn owner_info_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::wasm::OwnerInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::wasm::OwnerInfo, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "OwnerInfoOf", Vec::new(), @@ -10042,13 +11008,14 @@ pub mod api { #[doc = " a contract is destroyed."] pub fn nonce( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "Nonce", vec![], @@ -10065,21 +11032,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::storage::ContractInfo, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::storage::ContractInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "ContractInfoOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 232u8, 91u8, 50u8, 59u8, 181u8, 61u8, 225u8, 209u8, 85u8, 192u8, 4u8, @@ -10093,15 +11060,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::storage::ContractInfo, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::storage::ContractInfo, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "ContractInfoOf", Vec::new(), @@ -10119,22 +11085,20 @@ pub mod api { pub fn deletion_queue( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "DeletionQueue", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 249u8, 233u8, 96u8, 16u8, 170u8, 151u8, 40u8, 157u8, 85u8, 237u8, @@ -10149,17 +11113,16 @@ pub mod api { #[doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] pub fn deletion_queue_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "DeletionQueue", Vec::new(), @@ -10174,15 +11137,14 @@ pub mod api { #[doc = " and the latest deleted contract in queue."] pub fn deletion_queue_counter( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::storage::DeletionQueueManager, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_contracts::storage::DeletionQueueManager, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Contracts", "DeletionQueueCounter", vec![], @@ -10202,12 +11164,9 @@ pub mod api { #[doc = " Cost schedule and limits."] pub fn schedule( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_contracts::schedule::Schedule, - >, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "Contracts", "Schedule", [ @@ -10224,10 +11183,8 @@ pub mod api { #[doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_byte( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Contracts", "DepositPerByte", [ @@ -10240,10 +11197,8 @@ pub mod api { #[doc = " Fallback value to limit the storage deposit if it's not being set by the caller."] pub fn default_deposit_limit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Contracts", "DefaultDepositLimit", [ @@ -10260,10 +11215,8 @@ pub mod api { #[doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_item( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Contracts", "DepositPerItem", [ @@ -10280,12 +11233,8 @@ pub mod api { #[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::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + pub fn max_code_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Contracts", "MaxCodeLen", [ @@ -10299,10 +11248,8 @@ pub mod api { #[doc = " The maximum allowable length in bytes for storage keys."] pub fn max_storage_key_len( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Contracts", "MaxStorageKeyLen", [ @@ -10324,10 +11271,8 @@ pub mod api { #[doc = " Do **not** set to `true` on productions chains."] pub fn unsafe_unstable_interface( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::bool>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::bool> { + ::subxt::constants::Address::new_static( "Contracts", "UnsafeUnstableInterface", [ @@ -10340,10 +11285,8 @@ pub mod api { #[doc = " The maximum length of the debug buffer in bytes."] pub fn max_debug_buffer_len( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Contracts", "MaxDebugBufferLen", [ @@ -10366,11 +11309,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Join { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -10379,11 +11326,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { pub extra: runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, @@ -10391,23 +11342,31 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayout; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { - pub member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -10416,11 +11375,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolWithdrawUnbonded { pub pool_id: ::core::primitive::u32, pub num_slashing_spans: ::core::primitive::u32, @@ -10428,14 +11391,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { - pub member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub num_slashing_spans: ::core::primitive::u32, @@ -10443,48 +11410,56 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { #[codec(compact)] pub amount: ::core::primitive::u128, - pub root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateWithPoolId { #[codec(compact)] pub amount: ::core::primitive::u128, - pub root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - pub bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub pool_id: ::core::primitive::u32, @@ -10492,23 +11467,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + pub validators: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetState { pub pool_id: ::core::primitive::u32, pub state: runtime_types::pallet_nomination_pools::PoolState, @@ -10516,11 +11501,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { pub pool_id: ::core::primitive::u32, pub metadata: ::std::vec::Vec<::core::primitive::u8>, @@ -10528,11 +11517,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetConfigs { pub min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, @@ -10551,46 +11544,58 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpdateRoles { pub pool_id: ::core::primitive::u32, pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill { pub pool_id: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtraOther { - pub member: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub extra: @@ -10599,48 +11604,64 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetClaimPermission { pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayoutOther { - pub other: ::subxt::ext::sp_core::crypto::AccountId32, + pub other: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommission { pub pool_id: ::core::primitive::u32, pub new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionMax { pub pool_id: ::core::primitive::u32, pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -10648,11 +11669,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionChangeRate { pub pool_id: ::core::primitive::u32, pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -10663,11 +11688,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimCommission { pub pool_id: ::core::primitive::u32, } @@ -10687,8 +11716,8 @@ pub mod api { &self, amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "join", Join { amount, pool_id }, @@ -10712,8 +11741,8 @@ pub mod api { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra", BondExtra { extra }, @@ -10733,8 +11762,8 @@ pub mod api { #[doc = "members in the pools stake. Rewards do not \"expire\"."] #[doc = ""] #[doc = "See `claim_payout_other` to caim rewards on bahalf of some `other` pool member."] - pub fn claim_payout(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn claim_payout(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout", ClaimPayout {}, @@ -10778,13 +11807,13 @@ pub mod api { #[doc = "staking system."] pub fn unbond( &self, - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, unbonding_points: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "unbond", Unbond { @@ -10808,8 +11837,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "pool_withdraw_unbonded", PoolWithdrawUnbonded { @@ -10845,13 +11874,13 @@ pub mod api { #[doc = "If the target is the depositor, the pool will be destroyed."] pub fn withdraw_unbonded( &self, - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "withdraw_unbonded", WithdrawUnbonded { @@ -10886,20 +11915,20 @@ pub mod api { pub fn create( &self, amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "create", Create { @@ -10925,21 +11954,21 @@ pub mod api { pub fn create_with_pool_id( &self, amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "create_with_pool_id", CreateWithPoolId { @@ -10966,9 +11995,11 @@ pub mod api { pub fn nominate( &self, pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + validators: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "nominate", Nominate { @@ -10996,8 +12027,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_state", SetState { pool_id, state }, @@ -11017,8 +12048,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_metadata", SetMetadata { pool_id, metadata }, @@ -11060,8 +12091,8 @@ pub mod api { global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_configs", SetConfigs { @@ -11091,16 +12122,16 @@ pub mod api { &self, pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "update_roles", UpdateRoles { @@ -11127,8 +12158,8 @@ pub mod api { pub fn chill( &self, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "chill", Chill { pool_id }, @@ -11150,15 +12181,15 @@ pub mod api { #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] pub fn bond_extra_other( &self, - member: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra_other", BondExtraOther { member, extra }, @@ -11184,8 +12215,8 @@ pub mod api { pub fn set_claim_permission( &self, permission: runtime_types::pallet_nomination_pools::ClaimPermission, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_claim_permission", SetClaimPermission { permission }, @@ -11202,9 +12233,9 @@ pub mod api { #[doc = "for this call to be successful."] pub fn claim_payout_other( &self, - other: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + other: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout_other", ClaimPayoutOther { other }, @@ -11225,10 +12256,10 @@ pub mod api { pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_commission", SetCommission { @@ -11251,8 +12282,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_max", SetCommissionMax { @@ -11276,8 +12307,8 @@ pub mod api { change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_change_rate", SetCommissionChangeRate { @@ -11300,8 +12331,8 @@ pub mod api { pub fn claim_commission( &self, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "NominationPools", "claim_commission", ClaimCommission { pool_id }, @@ -11322,14 +12353,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been created."] pub struct Created { - pub depositor: ::subxt::ext::sp_core::crypto::AccountId32, + pub depositor: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Created { @@ -11339,14 +12374,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has became bonded in a pool."] pub struct Bonded { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub bonded: ::core::primitive::u128, pub joined: ::core::primitive::bool, @@ -11358,14 +12397,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A payout has been made to a member."] pub struct PaidOut { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub payout: ::core::primitive::u128, } @@ -11376,11 +12419,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has unbonded from their pool."] #[doc = ""] #[doc = "- `balance` is the corresponding balance of the number of points that has been"] @@ -11393,7 +12440,7 @@ pub mod api { #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] pub struct Unbonded { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, @@ -11406,11 +12453,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has withdrawn from their pool."] #[doc = ""] #[doc = "The given number of `points` have been dissolved in return of `balance`."] @@ -11418,7 +12469,7 @@ pub mod api { #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] pub struct Withdrawn { - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, @@ -11431,11 +12482,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been destroyed."] pub struct Destroyed { pub pool_id: ::core::primitive::u32, @@ -11447,11 +12502,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The state of a pool has changed"] pub struct StateChanged { pub pool_id: ::core::primitive::u32, @@ -11464,17 +12523,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has been removed from a pool."] #[doc = ""] #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] pub struct MemberRemoved { pub pool_id: ::core::primitive::u32, - pub member: ::subxt::ext::sp_core::crypto::AccountId32, + pub member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "NominationPools"; @@ -11483,17 +12546,27 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] pub struct RolesUpdated { - pub root: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub bouncer: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - pub nominator: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + pub root: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + pub bouncer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + pub nominator: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, } impl ::subxt::events::StaticEvent for RolesUpdated { const PALLET: &'static str = "NominationPools"; @@ -11502,11 +12575,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] pub struct PoolSlashed { pub pool_id: ::core::primitive::u32, @@ -11519,11 +12596,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] pub struct UnbondingPoolSlashed { pub pool_id: ::core::primitive::u32, @@ -11537,17 +12618,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's commission setting has been changed."] pub struct PoolCommissionUpdated { pub pool_id: ::core::primitive::u32, pub current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, } impl ::subxt::events::StaticEvent for PoolCommissionUpdated { @@ -11557,11 +12642,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's maximum commission setting has been changed."] pub struct PoolMaxCommissionUpdated { pub pool_id: ::core::primitive::u32, @@ -11574,11 +12663,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's commission `change_rate` has been changed."] pub struct PoolCommissionChangeRateUpdated { pub pool_id: ::core::primitive::u32, @@ -11593,11 +12686,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Pool commission has been claimed."] pub struct PoolCommissionClaimed { pub pool_id: ::core::primitive::u32, @@ -11615,13 +12712,14 @@ pub mod api { #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MinJoinBond", vec![], @@ -11642,13 +12740,14 @@ pub mod api { #[doc = " while all other accounts leave."] pub fn min_create_bond( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MinCreateBond", vec![], @@ -11664,13 +12763,14 @@ pub mod api { #[doc = " pools can exist."] pub fn max_pools( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPools", vec![], @@ -11685,13 +12785,14 @@ pub mod api { #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembers", vec![], @@ -11706,13 +12807,14 @@ pub mod api { #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembersPerPool", vec![], @@ -11728,15 +12830,14 @@ pub mod api { #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] pub fn global_max_commission( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "GlobalMaxCommission", vec![], @@ -11753,21 +12854,21 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::PoolMember, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "PoolMembers", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 252u8, 236u8, 201u8, 127u8, 219u8, 1u8, 19u8, 144u8, 5u8, 108u8, 70u8, @@ -11782,15 +12883,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::PoolMember, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "PoolMembers", Vec::new(), @@ -11805,13 +12905,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForPoolMembers", vec![], @@ -11827,20 +12928,18 @@ pub mod api { pub fn bonded_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::BondedPoolInner, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "BondedPools", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 3u8, 183u8, 140u8, 154u8, 74u8, 225u8, 69u8, 243u8, 150u8, 132u8, @@ -11853,15 +12952,14 @@ pub mod api { #[doc = " Storage for bonded pools."] pub fn bonded_pools_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::BondedPoolInner, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "BondedPools", Vec::new(), @@ -11876,13 +12974,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForBondedPools", vec![], @@ -11899,20 +12998,18 @@ pub mod api { pub fn reward_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::RewardPool, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "RewardPools", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 235u8, 6u8, 2u8, 103u8, 137u8, 31u8, 109u8, 165u8, 129u8, 48u8, 154u8, @@ -11926,15 +13023,14 @@ pub mod api { #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::RewardPool, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "RewardPools", Vec::new(), @@ -11949,13 +13045,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForRewardPools", vec![], @@ -11972,20 +13069,18 @@ pub mod api { pub fn sub_pools_storage( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::SubPools, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "SubPoolsStorage", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 231u8, 13u8, 111u8, 248u8, 1u8, 208u8, 179u8, 134u8, 224u8, 196u8, @@ -11999,15 +13094,14 @@ pub mod api { #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::SubPools, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "SubPoolsStorage", Vec::new(), @@ -12022,13 +13116,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForSubPoolsStorage", vec![], @@ -12043,22 +13138,20 @@ pub mod api { pub fn metadata( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "Metadata", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 108u8, 250u8, 163u8, 54u8, 192u8, 143u8, 239u8, 62u8, 97u8, 163u8, @@ -12071,17 +13164,16 @@ pub mod api { #[doc = " Metadata for the pool."] pub fn metadata_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "Metadata", Vec::new(), @@ -12096,13 +13188,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForMetadata", vec![], @@ -12117,13 +13210,14 @@ pub mod api { #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "LastPoolId", vec![], @@ -12140,19 +13234,21 @@ pub mod api { #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ReversePoolIdLookup", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 178u8, 161u8, 51u8, 220u8, 128u8, 1u8, 135u8, 83u8, 236u8, 159u8, 36u8, @@ -12167,13 +13263,14 @@ pub mod api { #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ReversePoolIdLookup", Vec::new(), @@ -12187,13 +13284,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForReversePoolIdLookup", vec![], @@ -12208,21 +13306,21 @@ pub mod api { #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::ClaimPermission, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ClaimPermissions", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 23u8, 124u8, 83u8, 109u8, 174u8, 228u8, 170u8, 25u8, 124u8, 91u8, @@ -12235,15 +13333,14 @@ pub mod api { #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_nomination_pools::ClaimPermission, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "NominationPools", "ClaimPermissions", Vec::new(), @@ -12264,10 +13361,9 @@ pub mod api { #[doc = " The nomination pool's pallet id."] pub fn pallet_id( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( "NominationPools", "PalletId", [ @@ -12291,10 +13387,8 @@ pub mod api { #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] pub fn max_points_to_balance( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u8>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( "NominationPools", "MaxPointsToBalance", [ @@ -12317,59 +13411,79 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddRegistrar { - pub account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetIdentity { pub info: ::std::boxed::Box, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSubs { pub subs: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, )>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearIdentity; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -12380,22 +13494,30 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelRequest { pub reg_index: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFee { #[codec(compact)] pub index: ::core::primitive::u32, @@ -12405,27 +13527,35 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetAccountId { #[codec(compact)] pub index: ::core::primitive::u32, - pub new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFields { #[codec(compact)] pub index: ::core::primitive::u32, @@ -12436,47 +13566,59 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProvideJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub judgement: runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>, - pub identity: ::subxt::ext::sp_core::H256, + pub identity: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillIdentity { - pub target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddSub { - pub sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub data: runtime_types::pallet_identity::types::Data, @@ -12484,14 +13626,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RenameSub { - pub sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pub data: runtime_types::pallet_identity::types::Data, @@ -12499,25 +13645,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveSub { - pub sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QuitSub; pub struct TransactionApi; impl TransactionApi { @@ -12533,12 +13687,12 @@ pub mod api { #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] pub fn add_registrar( &self, - account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "add_registrar", AddRegistrar { account }, @@ -12568,8 +13722,8 @@ pub mod api { pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_identity", SetIdentity { @@ -12599,11 +13753,11 @@ pub mod api { pub fn set_subs( &self, subs: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, )>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_subs", SetSubs { subs }, @@ -12629,8 +13783,8 @@ pub mod api { #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - pub fn clear_identity(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn clear_identity(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "clear_identity", ClearIdentity {}, @@ -12666,8 +13820,8 @@ pub mod api { &self, reg_index: ::core::primitive::u32, max_fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "request_judgement", RequestJudgement { reg_index, max_fee }, @@ -12696,8 +13850,8 @@ pub mod api { pub fn cancel_request( &self, reg_index: ::core::primitive::u32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "cancel_request", CancelRequest { reg_index }, @@ -12723,8 +13877,8 @@ pub mod api { &self, index: ::core::primitive::u32, fee: ::core::primitive::u128, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_fee", SetFee { index, fee }, @@ -12749,12 +13903,12 @@ pub mod api { pub fn set_account_id( &self, index: ::core::primitive::u32, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_account_id", SetAccountId { index, new }, @@ -12782,8 +13936,8 @@ pub mod api { fields: runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "set_fields", SetFields { index, fields }, @@ -12814,16 +13968,16 @@ pub mod api { pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, - identity: ::subxt::ext::sp_core::H256, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + identity: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "provide_judgement", ProvideJudgement { @@ -12859,12 +14013,12 @@ pub mod api { #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn kill_identity( &self, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "kill_identity", KillIdentity { target }, @@ -12885,13 +14039,13 @@ pub mod api { #[doc = "sub identity of `sub`."] pub fn add_sub( &self, - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "add_sub", AddSub { sub, data }, @@ -12909,13 +14063,13 @@ pub mod api { #[doc = "sub identity of `sub`."] pub fn rename_sub( &self, - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "rename_sub", RenameSub { sub, data }, @@ -12936,12 +14090,12 @@ pub mod api { #[doc = "sub identity of `sub`."] pub fn remove_sub( &self, - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "remove_sub", RemoveSub { sub }, @@ -12963,8 +14117,8 @@ pub mod api { #[doc = ""] #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] #[doc = "controller of an account is maliciously registered as a sub-account."] - pub fn quit_sub(&self) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + pub fn quit_sub(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "Identity", "quit_sub", QuitSub {}, @@ -12984,14 +14138,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } impl ::subxt::events::StaticEvent for IdentitySet { const PALLET: &'static str = "Identity"; @@ -13000,14 +14158,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityCleared { @@ -13017,14 +14179,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityKilled { @@ -13034,14 +14200,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementRequested { @@ -13051,14 +14221,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { - pub who: ::subxt::ext::sp_core::crypto::AccountId32, + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementUnrequested { @@ -13068,14 +14242,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { - pub target: ::subxt::ext::sp_core::crypto::AccountId32, + pub target: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementGiven { @@ -13086,11 +14264,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A registrar was added."] pub struct RegistrarAdded { pub registrar_index: ::core::primitive::u32, @@ -13102,15 +14284,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { - pub sub: ::subxt::ext::sp_core::crypto::AccountId32, - pub main: ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityAdded { @@ -13120,15 +14306,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { - pub sub: ::subxt::ext::sp_core::crypto::AccountId32, - pub main: ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRemoved { @@ -13138,16 +14328,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { - pub sub: ::subxt::ext::sp_core::crypto::AccountId32, - pub main: ::subxt::ext::sp_core::crypto::AccountId32, + pub sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + pub main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRevoked { @@ -13164,23 +14358,21 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "IdentityOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 193u8, 195u8, 180u8, 188u8, 129u8, 250u8, 180u8, 219u8, 22u8, 95u8, @@ -13195,17 +14387,14 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "IdentityOf", Vec::new(), @@ -13221,22 +14410,24 @@ pub mod api { #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::crypto::AccountId32, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, - )>, + ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SuperOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Blake2_128Concat, )], [ 170u8, 249u8, 112u8, 249u8, 75u8, 176u8, 21u8, 29u8, 152u8, 149u8, @@ -13250,16 +14441,17 @@ pub mod api { #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( - ::subxt::ext::sp_core::crypto::AccountId32, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, - )>, + ), (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SuperOf", Vec::new(), @@ -13278,24 +14470,26 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( ::core::primitive::u128, runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - )>, + ), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 128u8, 15u8, 175u8, 155u8, 216u8, 225u8, 200u8, 169u8, 215u8, 206u8, @@ -13311,18 +14505,19 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<( + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( ::core::primitive::u128, runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, - )>, + ), (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", Vec::new(), @@ -13339,14 +14534,13 @@ pub mod api { #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::option::Option< - runtime_types::pallet_identity::types::RegistrarInfo< - ::core::primitive::u128, - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_identity::types::RegistrarInfo< + ::core::primitive::u128, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, >, >, @@ -13354,7 +14548,7 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "Identity", "Registrars", vec![], @@ -13374,10 +14568,8 @@ pub mod api { #[doc = " The amount held on deposit for a registered identity"] pub fn basic_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Identity", "BasicDeposit", [ @@ -13390,10 +14582,8 @@ pub mod api { #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Identity", "FieldDeposit", [ @@ -13408,10 +14598,8 @@ pub mod api { #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "Identity", "SubAccountDeposit", [ @@ -13424,10 +14612,8 @@ pub mod api { #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Identity", "MaxSubAccounts", [ @@ -13442,10 +14628,8 @@ pub mod api { #[doc = " required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Identity", "MaxAdditionalFields", [ @@ -13460,10 +14644,8 @@ pub mod api { #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "Identity", "MaxRegistrars", [ @@ -13486,11 +14668,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBanConfig { pub minimal_expected_performance: ::core::option::Option<::core::primitive::u8>, pub underperformed_session_count_threshold: @@ -13501,35 +14687,47 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BanFromCommittee { - pub banned: ::subxt::ext::sp_core::crypto::AccountId32, + pub banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub ban_reason: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelBan { - pub banned: ::subxt::ext::sp_core::crypto::AccountId32, + pub banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetLenientThreshold { pub threshold_percent: ::core::primitive::u8, } @@ -13544,8 +14742,8 @@ pub mod api { >, clean_session_counter_delay: ::core::option::Option<::core::primitive::u32>, ban_period: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "set_ban_config", SetBanConfig { @@ -13565,10 +14763,10 @@ pub mod api { #[doc = "Schedule a non-reserved node to be banned out from the committee at the end of the era"] pub fn ban_from_committee( &self, - banned: ::subxt::ext::sp_core::crypto::AccountId32, + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ban_reason: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "ban_from_committee", BanFromCommittee { banned, ban_reason }, @@ -13582,9 +14780,9 @@ pub mod api { #[doc = "Cancel the ban of the node"] pub fn cancel_ban( &self, - banned: ::subxt::ext::sp_core::crypto::AccountId32, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "cancel_ban", CancelBan { banned }, @@ -13600,8 +14798,8 @@ pub mod api { pub fn set_lenient_threshold( &self, threshold_percent: ::core::primitive::u8, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "CommitteeManagement", "set_lenient_threshold", SetLenientThreshold { threshold_percent }, @@ -13621,11 +14819,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Ban thresholds for the next era has changed"] pub struct SetBanConfig(pub runtime_types::primitives::BanConfig); impl ::subxt::events::StaticEvent for SetBanConfig { @@ -13635,15 +14837,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Validators have been banned from the committee"] pub struct BanValidators( pub ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::primitives::BanInfo, )>, ); @@ -13658,15 +14864,14 @@ pub mod api { impl StorageApi { pub fn lenient_threshold( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::sp_arithmetic::per_things::Perquintill, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perquintill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "LenientThreshold", vec![], @@ -13681,19 +14886,21 @@ pub mod api { #[doc = " A lookup how many blocks a validator produced."] pub fn session_validator_block_count( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "SessionValidatorBlockCount", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 186u8, 91u8, 185u8, 144u8, 216u8, 179u8, 157u8, 132u8, 17u8, 247u8, @@ -13706,13 +14913,14 @@ pub mod api { #[doc = " A lookup how many blocks a validator produced."] pub fn session_validator_block_count_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "SessionValidatorBlockCount", Vec::new(), @@ -13727,17 +14935,16 @@ pub mod api { #[doc = " Total possible reward per validator for the current era."] pub fn validator_era_total_reward( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_committee_management::ValidatorTotalRewards< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_committee_management::ValidatorTotalRewards< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, (), (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "ValidatorEraTotalReward", vec![], @@ -13751,13 +14958,14 @@ pub mod api { #[doc = " Current era config for ban functionality, see [`BanConfig`]"] pub fn ban_config( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::BanConfig, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "BanConfig", vec![], @@ -13771,19 +14979,21 @@ pub mod api { #[doc = " A lookup for a number of underperformance sessions for a given validator"] pub fn underperformed_validator_session_count( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "UnderperformedValidatorSessionCount", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 46u8, 74u8, 46u8, 159u8, 162u8, 118u8, 159u8, 155u8, 233u8, 63u8, @@ -13796,13 +15006,14 @@ pub mod api { #[doc = " A lookup for a number of underperformance sessions for a given validator"] pub fn underperformed_validator_session_count_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "UnderperformedValidatorSessionCount", Vec::new(), @@ -13817,19 +15028,21 @@ pub mod api { #[doc = " Validators to be removed from non reserved list in the next era"] pub fn banned( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::BanInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "Banned", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 202u8, 38u8, 165u8, 35u8, 95u8, 207u8, 116u8, 43u8, 148u8, 73u8, 193u8, @@ -13841,13 +15054,14 @@ pub mod api { #[doc = " Validators to be removed from non reserved list in the next era"] pub fn banned_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitives::BanInfo, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "Banned", Vec::new(), @@ -13861,17 +15075,16 @@ pub mod api { #[doc = " SessionValidators in the current session."] pub fn current_and_next_session_validators_storage( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::pallet_committee_management::CurrentAndNextSessionValidators< - ::subxt::ext::sp_core::crypto::AccountId32, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_committee_management::CurrentAndNextSessionValidators< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "CommitteeManagement", "CurrentAndNextSessionValidatorsStorage", vec![], @@ -13891,10 +15104,8 @@ pub mod api { #[doc = " Nr of blocks in the session."] pub fn session_period( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "CommitteeManagement", "SessionPeriod", [ @@ -13917,11 +15128,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StoreKey { pub identifier: [::core::primitive::u8; 8usize], pub key: ::std::vec::Vec<::core::primitive::u8>, @@ -13929,22 +15144,30 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DeleteKey { pub identifier: [::core::primitive::u8; 8usize], } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OverwriteKey { pub identifier: [::core::primitive::u8; 8usize], pub key: ::std::vec::Vec<::core::primitive::u8>, @@ -13952,11 +15175,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Verify { pub verification_key_identifier: [::core::primitive::u8; 8usize], pub proof: ::std::vec::Vec<::core::primitive::u8>, @@ -13976,8 +15203,8 @@ pub mod api { &self, identifier: [::core::primitive::u8; 8usize], key: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "BabyLiminal", "store_key", StoreKey { identifier, key }, @@ -13994,8 +15221,8 @@ pub mod api { pub fn delete_key( &self, identifier: [::core::primitive::u8; 8usize], - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "BabyLiminal", "delete_key", DeleteKey { identifier }, @@ -14016,8 +15243,8 @@ pub mod api { &self, identifier: [::core::primitive::u8; 8usize], key: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "BabyLiminal", "overwrite_key", OverwriteKey { identifier, key }, @@ -14045,8 +15272,8 @@ pub mod api { verification_key_identifier: [::core::primitive::u8; 8usize], proof: ::std::vec::Vec<::core::primitive::u8>, public_input: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::StaticTxPayload { - ::subxt::tx::StaticTxPayload::new( + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( "BabyLiminal", "verify", Verify { @@ -14071,16 +15298,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Verification key has been successfully stored."] #[doc = ""] #[doc = "\\[ account_id, identifier \\]"] pub struct VerificationKeyStored( - pub ::subxt::ext::sp_core::crypto::AccountId32, + pub ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub [::core::primitive::u8; 8usize], ); impl ::subxt::events::StaticEvent for VerificationKeyStored { @@ -14090,16 +15321,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Verification key has been successfully deleted."] #[doc = ""] #[doc = "\\[ identifier \\]"] pub struct VerificationKeyDeleted( - pub ::subxt::ext::sp_core::crypto::AccountId32, + pub ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pub [::core::primitive::u8; 8usize], ); impl ::subxt::events::StaticEvent for VerificationKeyDeleted { @@ -14109,11 +15344,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Verification key has been successfully overwritten."] #[doc = ""] #[doc = "\\[ identifier \\]"] @@ -14125,11 +15364,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Proof has been successfully verified."] #[doc = ""] #[doc = "\\[ identifier \\]"] @@ -14146,22 +15389,20 @@ pub mod api { pub fn verification_keys( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 8usize]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "BabyLiminal", "VerificationKeys", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 15u8, 146u8, 55u8, 166u8, 254u8, 231u8, 4u8, 43u8, 62u8, 48u8, 130u8, @@ -14172,17 +15413,16 @@ pub mod api { } pub fn verification_keys_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType< - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "BabyLiminal", "VerificationKeys", Vec::new(), @@ -14196,18 +15436,18 @@ pub mod api { pub fn verification_key_owners( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 8usize]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "BabyLiminal", "VerificationKeyOwners", - vec![::subxt::storage::address::StorageMapKey::new( + vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), - ::subxt::storage::address::StorageHasher::Twox64Concat, )], [ 214u8, 22u8, 180u8, 63u8, 1u8, 101u8, 210u8, 214u8, 75u8, 246u8, 219u8, @@ -14218,13 +15458,14 @@ pub mod api { } pub fn verification_key_owners_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "BabyLiminal", "VerificationKeyOwners", Vec::new(), @@ -14237,21 +15478,24 @@ pub mod api { } pub fn verification_key_deposits( &self, - _0: impl ::std::borrow::Borrow<::subxt::ext::sp_core::crypto::AccountId32>, + _0: impl ::std::borrow::Borrow< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 8usize]>, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "BabyLiminal", "VerificationKeyDeposits", - vec![::subxt::storage::address::StorageMapKey::new( - &(_0.borrow(), _1.borrow()), - ::subxt::storage::address::StorageHasher::Twox64Concat, - )], + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], [ 56u8, 215u8, 74u8, 120u8, 187u8, 219u8, 92u8, 199u8, 141u8, 88u8, 57u8, 211u8, 182u8, 197u8, 33u8, 185u8, 109u8, 113u8, 180u8, 99u8, 135u8, @@ -14261,13 +15505,14 @@ pub mod api { } pub fn verification_key_deposits_root( &self, - ) -> ::subxt::storage::address::StaticStorageAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::StaticStorageAddress::new( + ::subxt::storage::address::Address::new_static( "BabyLiminal", "VerificationKeyDeposits", Vec::new(), @@ -14290,10 +15535,8 @@ pub mod api { #[doc = " public input."] pub fn maximum_verification_key_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "BabyLiminal", "MaximumVerificationKeyLength", [ @@ -14307,10 +15550,8 @@ pub mod api { #[doc = " Limits how many bytes proof or public input can have."] pub fn maximum_data_length( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u32>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( "BabyLiminal", "MaximumDataLength", [ @@ -14326,10 +15567,8 @@ pub mod api { #[doc = " Will get locked and returned upon deleting the key by the owner"] pub fn verification_key_deposit_per_byte( &self, - ) -> ::subxt::constants::StaticConstantAddress< - ::subxt::metadata::DecodeStaticType<::core::primitive::u128>, - > { - ::subxt::constants::StaticConstantAddress::new( + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( "BabyLiminal", "VerificationKeyDepositPerByte", [ @@ -14349,16 +15588,20 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum OriginCaller { #[codec(index = 0)] system( runtime_types::frame_support::dispatch::RawOrigin< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, ), #[codec(index = 1)] @@ -14367,20 +15610,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Runtime; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeCall { #[codec(index = 0)] System(runtime_types::frame_system::pallet::Call), @@ -14422,11 +15673,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeEvent { #[codec(index = 0)] System(runtime_types::frame_system::pallet::Event), @@ -14468,11 +15723,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { pub aura: runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public, pub aleph: runtime_types::primitives::app::Public, @@ -14485,11 +15744,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); } pub mod bounded_vec { @@ -14497,11 +15760,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); } pub mod weak_bounded_vec { @@ -14509,11 +15776,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); } } @@ -14524,11 +15795,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchClass { #[codec(index = 0)] Normal, @@ -14540,11 +15815,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchInfo { pub weight: runtime_types::sp_weights::weight_v2::Weight, pub class: runtime_types::frame_support::dispatch::DispatchClass, @@ -14553,11 +15832,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Pays { #[codec(index = 0)] Yes, @@ -14567,11 +15850,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PerDispatchClass<_0> { pub normal: _0, pub operational: _0, @@ -14580,11 +15867,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RawOrigin<_0> { #[codec(index = 0)] Root, @@ -14601,15 +15892,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Bounded<_0> { #[codec(index = 0)] Legacy { - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, }, #[codec(index = 1)] Inline( @@ -14619,7 +15914,7 @@ pub mod api { ), #[codec(index = 2)] Lookup { - hash: ::subxt::ext::sp_core::H256, + hash: ::subxt::utils::H256, len: ::core::primitive::u32, }, __Ignore(::core::marker::PhantomData<_0>), @@ -14632,11 +15927,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BalanceStatus { #[codec(index = 0)] Free, @@ -14649,11 +15948,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PalletId(pub [::core::primitive::u8; 8usize]); } pub mod frame_system { @@ -14665,11 +15968,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckGenesis; } pub mod check_mortality { @@ -14677,11 +15984,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); } pub mod check_non_zero_sender { @@ -14689,11 +16000,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonZeroSender; } pub mod check_nonce { @@ -14701,11 +16016,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); } pub mod check_spec_version { @@ -14713,11 +16032,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckSpecVersion; } pub mod check_tx_version { @@ -14725,11 +16048,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckTxVersion; } pub mod check_weight { @@ -14737,11 +16064,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckWeight; } } @@ -14750,11 +16081,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockLength { pub max: runtime_types::frame_support::dispatch::PerDispatchClass< ::core::primitive::u32, @@ -14763,11 +16098,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockWeights { pub base_block: runtime_types::sp_weights::weight_v2::Weight, pub max_block: runtime_types::sp_weights::weight_v2::Weight, @@ -14778,11 +16117,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeightsPerClass { pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, pub max_extrinsic: @@ -14798,11 +16141,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -14863,11 +16210,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the System pallet"] pub enum Error { #[codec(index = 0)] @@ -14896,11 +16247,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Event for the System pallet."] pub enum Event { #[codec(index = 0)] @@ -14920,29 +16275,33 @@ pub mod api { #[codec(index = 3)] #[doc = "A new account was created."] NewAccount { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 4)] #[doc = "An account was reaped."] KilledAccount { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 5)] #[doc = "On on-chain remark happened."] Remarked { - sender: ::subxt::ext::sp_core::crypto::AccountId32, - hash: ::subxt::ext::sp_core::H256, + sender: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + hash: ::subxt::utils::H256, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountInfo<_0, _1> { pub nonce: _0, pub consumers: _0, @@ -14953,11 +16312,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EventRecord<_0, _1> { pub phase: runtime_types::frame_system::Phase, pub event: _0, @@ -14966,11 +16329,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { #[codec(compact)] pub spec_version: ::core::primitive::u32, @@ -14979,11 +16346,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase { #[codec(index = 0)] ApplyExtrinsic(::core::primitive::u32), @@ -15000,11 +16371,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -15028,11 +16403,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -15051,11 +16430,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -15111,11 +16494,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -15158,11 +16545,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -15170,7 +16561,7 @@ pub mod api { #[doc = ""] #[doc = "\\[ account_id, identifier \\]"] VerificationKeyStored( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, [::core::primitive::u8; 8usize], ), #[codec(index = 1)] @@ -15178,7 +16569,7 @@ pub mod api { #[doc = ""] #[doc = "\\[ identifier \\]"] VerificationKeyDeleted( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, [::core::primitive::u8; 8usize], ), #[codec(index = 2)] @@ -15201,11 +16592,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -15217,8 +16612,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] transfer_allow_death { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15232,8 +16627,8 @@ pub mod api { #[doc = ""] #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] set_balance_deprecated { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15245,12 +16640,12 @@ pub mod api { #[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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15264,8 +16659,8 @@ pub mod api { #[doc = ""] #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15288,8 +16683,8 @@ pub mod api { #[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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, keep_alive: ::core::primitive::bool, @@ -15299,8 +16694,8 @@ pub mod api { #[doc = ""] #[doc = "Can only be called by ROOT."] force_unreserve { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, amount: ::core::primitive::u128, @@ -15315,15 +16710,17 @@ pub mod api { #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] #[doc = "possibililty of churn)."] upgrade_accounts { - who: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + who: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 7)] #[doc = "Alias for `transfer_allow_death`, provided only for name-wise compatibility."] #[doc = ""] #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] transfer { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15334,8 +16731,8 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] force_set_balance { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15345,11 +16742,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -15386,57 +16787,61 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "An account was created with some free balance."] Endowed { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, free_balance: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] DustLost { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Transfer succeeded."] Transfer { - from: ::subxt::ext::sp_core::crypto::AccountId32, - to: ::subxt::ext::sp_core::crypto::AccountId32, + from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A balance was set by root."] BalanceSet { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, free: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some balance was reserved (moved from free to reserved)."] Reserved { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] ReserveRepatriated { - from: ::subxt::ext::sp_core::crypto::AccountId32, - to: ::subxt::ext::sp_core::crypto::AccountId32, + from: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + to: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, @@ -15444,49 +16849,49 @@ pub mod api { #[codec(index = 7)] #[doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 10)] #[doc = "Some amount was minted into an account."] Minted { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 11)] #[doc = "Some amount was burned from an account."] Burned { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 12)] #[doc = "Some amount was suspended from an account (it can be restored later)."] Suspended { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 13)] #[doc = "Some amount was restored into an account."] Restored { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 14)] #[doc = "An account was upgraded."] Upgraded { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 15)] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] @@ -15497,25 +16902,25 @@ pub mod api { #[codec(index = 17)] #[doc = "Some balance was locked."] Locked { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 18)] #[doc = "Some balance was unlocked."] Unlocked { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 19)] #[doc = "Some balance was frozen."] Frozen { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 20)] #[doc = "Some balance was thawed."] Thawed { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, } @@ -15525,11 +16930,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountData<_0> { pub free: _0, pub reserved: _0, @@ -15539,11 +16948,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BalanceLock<_0> { pub id: [::core::primitive::u8; 8usize], pub amount: _0, @@ -15553,20 +16966,28 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtraFlags(pub ::core::primitive::u128); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdAmount<_0, _1> { pub id: _0, pub amount: _1, @@ -15574,11 +16995,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Reasons { #[codec(index = 0)] Fee, @@ -15590,11 +17015,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReserveData<_0, _1> { pub id: _0, pub amount: _1, @@ -15608,11 +17037,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 1)] @@ -15627,13 +17060,13 @@ pub mod api { #[codec(index = 2)] #[doc = "Schedule a non-reserved node to be banned out from the committee at the end of the era"] ban_from_committee { - banned: ::subxt::ext::sp_core::crypto::AccountId32, + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, ban_reason: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] #[doc = "Cancel the ban of the node"] cancel_ban { - banned: ::subxt::ext::sp_core::crypto::AccountId32, + banned: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 4)] #[doc = "Set lenient threshold"] @@ -15644,11 +17077,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -15668,11 +17105,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -15682,7 +17123,7 @@ pub mod api { #[doc = "Validators have been banned from the committee"] BanValidators( ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::primitives::BanInfo, )>, ), @@ -15691,11 +17132,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentAndNextSessionValidators<_0> { pub next: runtime_types::primitives::SessionValidators<_0>, pub current: runtime_types::primitives::SessionValidators<_0>, @@ -15703,11 +17148,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorTotalRewards<_0>( pub ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, ); @@ -15719,18 +17168,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] 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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15766,7 +17219,7 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, }, @@ -15803,9 +17256,7 @@ pub mod api { #[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::sp_core::H256, - }, + remove_code { code_hash: ::subxt::utils::H256 }, #[codec(index = 5)] #[doc = "Privileged function that changes the code of an existing contract."] #[doc = ""] @@ -15818,11 +17269,11 @@ pub mod api { #[doc = "that the contract address is no longer derived from its code hash after calling"] #[doc = "this dispatchable."] set_code { - dest: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, }, #[codec(index = 6)] #[doc = "Makes a call to an account, optionally transferring some balance."] @@ -15842,8 +17293,8 @@ pub mod api { #[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::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -15905,7 +17356,7 @@ pub mod api { storage_deposit_limit: ::core::option::Option< ::subxt::ext::codec::Compact<::core::primitive::u128>, >, - code_hash: ::subxt::ext::sp_core::H256, + code_hash: ::subxt::utils::H256, data: ::std::vec::Vec<::core::primitive::u8>, salt: ::std::vec::Vec<::core::primitive::u8>, }, @@ -15913,11 +17364,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -16026,18 +17481,24 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Contract deployed by address at the specified address."] Instantiated { - deployer: ::subxt::ext::sp_core::crypto::AccountId32, - contract: ::subxt::ext::sp_core::crypto::AccountId32, + deployer: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 1)] #[doc = "Contract has been removed."] @@ -16047,31 +17508,31 @@ pub mod api { #[doc = "The only way for a contract to be removed and emitting this event is by calling"] #[doc = "`seal_terminate`."] Terminated { - contract: ::subxt::ext::sp_core::crypto::AccountId32, - beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + beneficiary: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 2)] #[doc = "Code with the specified hash has been stored."] - CodeStored { - code_hash: ::subxt::ext::sp_core::H256, - }, + CodeStored { code_hash: ::subxt::utils::H256 }, #[codec(index = 3)] #[doc = "A custom event emitted by the contract."] ContractEmitted { - contract: ::subxt::ext::sp_core::crypto::AccountId32, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, data: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] #[doc = "A code with the specified hash was removed."] - CodeRemoved { - code_hash: ::subxt::ext::sp_core::H256, - }, + CodeRemoved { code_hash: ::subxt::utils::H256 }, #[codec(index = 5)] #[doc = "A contract's code was updated."] ContractCodeUpdated { - contract: ::subxt::ext::sp_core::crypto::AccountId32, - new_code_hash: ::subxt::ext::sp_core::H256, - old_code_hash: ::subxt::ext::sp_core::H256, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + new_code_hash: ::subxt::utils::H256, + old_code_hash: ::subxt::utils::H256, }, #[codec(index = 6)] #[doc = "A contract was called either by a plain account or another contract."] @@ -16082,8 +17543,9 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] Called { - caller: ::subxt::ext::sp_core::crypto::AccountId32, - contract: ::subxt::ext::sp_core::crypto::AccountId32, + caller: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 7)] #[doc = "A contract delegate called a code hash."] @@ -16094,8 +17556,9 @@ pub mod api { #[doc = "calls. This is because on failure all storage changes including events are"] #[doc = "rolled back."] DelegateCalled { - contract: ::subxt::ext::sp_core::crypto::AccountId32, - code_hash: ::subxt::ext::sp_core::H256, + contract: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + code_hash: ::subxt::utils::H256, }, } } @@ -16104,11 +17567,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HostFnWeights { pub caller: runtime_types::sp_weights::weight_v2::Weight, pub is_contract: runtime_types::sp_weights::weight_v2::Weight, @@ -16176,11 +17643,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InstructionWeights { pub version: ::core::primitive::u32, pub fallback: ::core::primitive::u32, @@ -16239,11 +17710,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Limits { pub event_topics: ::core::primitive::u32, pub globals: ::core::primitive::u32, @@ -16259,11 +17734,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Schedule { pub limits: runtime_types::pallet_contracts::schedule::Limits, pub instruction_weights: @@ -16276,17 +17755,21 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ContractInfo { pub trie_id: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, pub deposit_account: runtime_types::pallet_contracts::storage::DepositAccount, - pub code_hash: ::subxt::ext::sp_core::H256, + pub code_hash: ::subxt::utils::H256, pub storage_bytes: ::core::primitive::u32, pub storage_items: ::core::primitive::u32, pub storage_byte_deposit: ::core::primitive::u128, @@ -16296,11 +17779,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DeletionQueueManager { pub insert_counter: ::core::primitive::u32, pub delete_counter: ::core::primitive::u32, @@ -16308,23 +17795,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct DepositAccount(pub ::subxt::ext::sp_core::crypto::AccountId32); + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DepositAccount( + pub ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ); } pub mod wasm { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Determinism { #[codec(index = 0)] Enforced, @@ -16334,13 +17831,17 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OwnerInfo { - pub owner: ::subxt::ext::sp_core::crypto::AccountId32, + pub owner: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, #[codec(compact)] pub deposit: ::core::primitive::u128, #[codec(compact)] @@ -16349,11 +17850,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PrefabWasmModule { #[codec(compact)] pub instruction_weights_version: ::core::primitive::u32, @@ -16375,20 +17880,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] change_validators { reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, non_reserved_validators: ::core::option::Option< - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, >, committee_size: ::core::option::Option, @@ -16402,11 +17915,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -16423,18 +17940,26 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Committee for the next era has changed"] ChangeValidators( - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, runtime_types::primitives::CommitteeSeats, ), } @@ -16447,11 +17972,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Identity pallet declaration."] pub enum Call { #[codec(index = 0)] @@ -16466,8 +17995,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] add_registrar { - account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16508,7 +18037,7 @@ pub mod api { #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] set_subs { subs: ::std::vec::Vec<( - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, runtime_types::pallet_identity::types::Data, )>, }, @@ -16606,8 +18135,8 @@ pub mod api { set_account_id { #[codec(compact)] index: ::core::primitive::u32, - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16651,14 +18180,14 @@ pub mod api { provide_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, - identity: ::subxt::ext::sp_core::H256, + identity: ::subxt::utils::H256, }, #[codec(index = 10)] #[doc = "Remove an account's identity and sub-account information and slash the deposits."] @@ -16680,8 +18209,8 @@ pub mod api { #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] kill_identity { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16694,8 +18223,8 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] add_sub { - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, @@ -16706,8 +18235,8 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] rename_sub { - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, data: runtime_types::pallet_identity::types::Data, @@ -16721,8 +18250,8 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] remove_sub { - sub: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -16742,11 +18271,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -16807,46 +18340,50 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A name was set or reset (which will remove all judgements)."] IdentitySet { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 1)] #[doc = "A name was cleared, and the given balance returned."] IdentityCleared { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A name was removed and the given balance slashed."] IdentityKilled { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A judgement was asked from a registrar."] JudgementRequested { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, registrar_index: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "A judgement request was retracted."] JudgementUnrequested { - who: ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, registrar_index: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "A judgement was given by a registrar."] JudgementGiven { - target: ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, registrar_index: ::core::primitive::u32, }, #[codec(index = 6)] @@ -16857,23 +18394,23 @@ pub mod api { #[codec(index = 7)] #[doc = "A sub-identity was added to an identity and the deposit paid."] SubIdentityAdded { - sub: ::subxt::ext::sp_core::crypto::AccountId32, - main: ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "A sub-identity was removed from an identity and the deposit freed."] SubIdentityRemoved { - sub: ::subxt::ext::sp_core::crypto::AccountId32, - main: ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] SubIdentityRevoked { - sub: ::subxt::ext::sp_core::crypto::AccountId32, - main: ::subxt::ext::sp_core::crypto::AccountId32, + sub: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + main: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, deposit: ::core::primitive::u128, }, } @@ -16884,11 +18421,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BitFlags<_0>( pub ::core::primitive::u64, #[codec(skip)] pub ::core::marker::PhantomData<_0>, @@ -16896,11 +18437,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Data { #[codec(index = 0)] None, @@ -16982,11 +18527,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum IdentityField { #[codec(index = 1)] Display, @@ -17008,11 +18557,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdentityInfo { pub additional: runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::pallet_identity::types::Data, @@ -17030,11 +18583,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Judgement<_0> { #[codec(index = 0)] Unknown, @@ -17054,11 +18611,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RegistrarInfo<_0, _1> { pub account: _1, pub fee: _0, @@ -17069,11 +18630,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registration<_0> { pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, @@ -17091,11 +18656,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -17112,8 +18681,9 @@ pub mod api { #[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: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, call: ::std::boxed::Box, }, #[codec(index = 1)] @@ -17158,8 +18728,9 @@ pub mod api { #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -17199,8 +18770,9 @@ pub mod api { #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] approve_as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, @@ -17231,8 +18803,9 @@ pub mod api { #[doc = "- Storage: removes one item."] cancel_as_multi { threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + other_signatories: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], @@ -17241,11 +18814,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -17294,36 +18871,46 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] NewMultisig { - approving: ::subxt::ext::sp_core::crypto::AccountId32, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + approving: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 1)] #[doc = "A multisig operation has been approved by someone."] MultisigApproval { - approving: ::subxt::ext::sp_core::crypto::AccountId32, + approving: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] #[doc = "A multisig operation has been executed."] MultisigExecuted { - approving: ::subxt::ext::sp_core::crypto::AccountId32, + approving: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -17331,10 +18918,12 @@ pub mod api { #[codec(index = 3)] #[doc = "A multisig operation has been cancelled."] MultisigCancelled { - cancelling: ::subxt::ext::sp_core::crypto::AccountId32, + cancelling: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - multisig: ::subxt::ext::sp_core::crypto::AccountId32, + multisig: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, call_hash: [::core::primitive::u8; 32usize], }, } @@ -17342,11 +18931,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Multisig<_0, _1, _2> { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, @@ -17356,11 +18949,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Timepoint<_0> { pub height: _0, pub index: _0, @@ -17373,11 +18970,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -17452,8 +19053,8 @@ pub mod api { #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] #[doc = "staking system."] unbond { - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] @@ -17491,8 +19092,8 @@ pub mod api { #[doc = ""] #[doc = "If the target is the depositor, the pool will be destroyed."] withdraw_unbonded { - member_account: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, num_slashing_spans: ::core::primitive::u32, @@ -17518,16 +19119,16 @@ pub mod api { create { #[codec(compact)] amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -17541,16 +19142,16 @@ pub mod api { create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, - root: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - nominator: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - bouncer: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, pool_id: ::core::primitive::u32, @@ -17565,7 +19166,9 @@ pub mod api { #[doc = "account."] nominate { pool_id: ::core::primitive::u32, - validators: ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + validators: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 9)] #[doc = "Set a new state for the pool."] @@ -17634,13 +19237,13 @@ pub mod api { update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, }, #[codec(index = 13)] @@ -17663,8 +19266,8 @@ pub mod api { #[doc = "`other` members assuming set_claim_permission for the given member is"] #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] bond_extra_other { - member: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, extra: runtime_types::pallet_nomination_pools::BondExtra< @@ -17693,7 +19296,7 @@ pub mod api { #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] #[doc = "for this call to be successful."] claim_payout_other { - other: ::subxt::ext::sp_core::crypto::AccountId32, + other: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 17)] #[doc = "Set the commission of a pool."] @@ -17705,7 +19308,7 @@ pub mod api { pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, }, #[codec(index = 18)] @@ -17740,11 +19343,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DefensiveError { #[codec(index = 0)] NotEnoughSpaceInUnbondPool, @@ -17760,11 +19367,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -17869,23 +19480,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Events of this pallet."] pub enum Event { #[codec(index = 0)] #[doc = "A pool has been created."] Created { - depositor: ::subxt::ext::sp_core::crypto::AccountId32, + depositor: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A member has became bonded in a pool."] Bonded { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, bonded: ::core::primitive::u128, joined: ::core::primitive::bool, @@ -17893,7 +19509,7 @@ pub mod api { #[codec(index = 2)] #[doc = "A payout has been made to a member."] PaidOut { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, payout: ::core::primitive::u128, }, @@ -17910,7 +19526,7 @@ pub mod api { #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] Unbonded { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -17924,7 +19540,7 @@ pub mod api { #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] Withdrawn { - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -17944,16 +19560,21 @@ pub mod api { #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id: ::core::primitive::u32, - member: ::subxt::ext::sp_core::crypto::AccountId32, + member: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 8)] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] RolesUpdated { - root: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - bouncer: ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, - nominator: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + root: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + bouncer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, + nominator: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 9)] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] @@ -17974,7 +19595,7 @@ pub mod api { pool_id: ::core::primitive::u32, current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, }, #[codec(index = 12)] @@ -18002,11 +19623,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BondExtra<_0> { #[codec(index = 0)] FreeBalance(_0), @@ -18016,28 +19641,36 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondedPoolInner { pub commission: runtime_types::pallet_nomination_pools::Commission, pub member_counter: ::core::primitive::u32, pub points: ::core::primitive::u128, pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub state: runtime_types::pallet_nomination_pools::PoolState, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ClaimPermission { #[codec(index = 0)] Permissioned, @@ -18051,15 +19684,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Commission { pub current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, )>, pub max: ::core::option::Option, pub change_rate: ::core::option::Option< @@ -18072,11 +19709,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommissionChangeRate<_0> { pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, pub min_delay: _0, @@ -18084,11 +19725,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -18100,11 +19745,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolMember { pub pool_id: ::core::primitive::u32, pub points: ::core::primitive::u128, @@ -18119,11 +19768,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolRoles<_0> { pub depositor: _0, pub root: ::core::option::Option<_0>, @@ -18133,11 +19786,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PoolState { #[codec(index = 0)] Open, @@ -18149,11 +19806,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RewardPool { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, @@ -18165,11 +19826,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, pub with_era: @@ -18181,11 +19846,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnbondPool { pub points: ::core::primitive::u128, pub balance: ::core::primitive::u128, @@ -18198,11 +19867,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -18266,11 +19939,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -18292,11 +19969,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Events type."] pub enum Event { #[codec(index = 0)] @@ -18342,11 +20023,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Scheduled<_0, _1, _2, _3, _4> { pub maybe_id: ::core::option::Option<_0>, pub priority: ::core::primitive::u8, @@ -18364,11 +20049,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -18403,11 +20092,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the session pallet."] pub enum Error { #[codec(index = 0)] @@ -18429,11 +20122,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -18454,11 +20151,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -18478,14 +20179,14 @@ pub mod api { #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] bond { - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, }, #[codec(index = 1)] @@ -18571,8 +20272,10 @@ pub mod api { #[doc = "- Both the reads and writes follow a similar pattern."] nominate { targets: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, (), >, >, @@ -18604,7 +20307,7 @@ pub mod api { #[doc = "---------"] set_payee { payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, }, #[codec(index = 8)] @@ -18620,8 +20323,8 @@ pub mod api { #[doc = "- Contains a limited number of reads."] #[doc = "- Writes are limited to the `origin` account key."] set_controller { - controller: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -18695,15 +20398,17 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin must be Root."] set_invulnerables { - invulnerables: - ::std::vec::Vec<::subxt::ext::sp_core::crypto::AccountId32>, + invulnerables: ::std::vec::Vec< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 15)] #[doc = "Force a current staker to become completely unstaked, immediately."] #[doc = ""] #[doc = "The dispatch origin must be Root."] force_unstake { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] @@ -18740,7 +20445,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] payout_stakers { - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, era: ::core::primitive::u32, }, #[codec(index = 19)] @@ -18769,7 +20475,8 @@ pub mod api { #[doc = ""] #[doc = "Refunds the transaction fees upon successful execution."] reap_stash { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] @@ -18786,8 +20493,10 @@ pub mod api { #[doc = "block any further nominations."] kick { who: ::std::vec::Vec< - ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::MultiAddress< + ::subxt::utils::Static< + ::subxt::ext::sp_core::crypto::AccountId32, + >, (), >, >, @@ -18863,14 +20572,16 @@ pub mod api { #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] #[doc = "who do not satisfy these requirements."] chill_other { - controller: ::subxt::ext::sp_core::crypto::AccountId32, + controller: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 24)] #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] #[doc = "can call this."] force_apply_min_commission { - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 25)] #[doc = "Sets the minimum amount of commission that each validators must maintain."] @@ -18884,11 +20595,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -18900,11 +20615,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -18990,11 +20709,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -19008,20 +20731,23 @@ pub mod api { #[codec(index = 1)] #[doc = "The nominator has been rewarded by this amount."] Rewarded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { - staker: ::subxt::ext::sp_core::crypto::AccountId32, + staker: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] SlashReported { - validator: ::subxt::ext::sp_core::crypto::AccountId32, + validator: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, fraction: runtime_types::sp_arithmetic::per_things::Perbill, slash_era: ::core::primitive::u32, }, @@ -19040,27 +20766,32 @@ pub mod api { #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 7)] #[doc = "An account has unbonded this amount."] Unbonded { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] Withdrawn { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A nominator has been kicked from a validator."] Kicked { - nominator: ::subxt::ext::sp_core::crypto::AccountId32, - stash: ::subxt::ext::sp_core::crypto::AccountId32, + nominator: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 10)] #[doc = "The election failed. No new era is planned."] @@ -19068,18 +20799,21 @@ pub mod api { #[codec(index = 11)] #[doc = "An account has stopped participating as either a validator or nominator."] Chilled { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 12)] #[doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index: ::core::primitive::u32, - validator_stash: ::subxt::ext::sp_core::crypto::AccountId32, + validator_stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 13)] #[doc = "A validator has set their preferences."] ValidatorPrefsSet { - stash: ::subxt::ext::sp_core::crypto::AccountId32, + stash: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 14)] @@ -19095,11 +20829,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SlashingSpans { pub span_index: ::core::primitive::u32, pub last_start: ::core::primitive::u32, @@ -19109,11 +20847,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SpanRecord<_0> { pub slashed: _0, pub paid_out: _0, @@ -19122,11 +20864,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ActiveEraInfo { pub index: ::core::primitive::u32, pub start: ::core::option::Option<::core::primitive::u64>, @@ -19134,11 +20880,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraRewardPoints<_0> { pub total: ::core::primitive::u32, pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, @@ -19146,11 +20896,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Exposure<_0, _1> { #[codec(compact)] pub total: _1, @@ -19162,11 +20916,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Forcing { #[codec(index = 0)] NotForcing, @@ -19180,11 +20938,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IndividualExposure<_0, _1> { pub who: _0, #[codec(compact)] @@ -19193,14 +20955,18 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::ext::sp_core::crypto::AccountId32, + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, >, pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, @@ -19208,11 +20974,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RewardDestination<_0> { #[codec(index = 0)] Staked, @@ -19228,13 +20998,17 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StakingLedger { - pub stash: ::subxt::ext::sp_core::crypto::AccountId32, + pub stash: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, #[codec(compact)] pub total: ::core::primitive::u128, #[codec(compact)] @@ -19249,11 +21023,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnappliedSlash<_0, _1> { pub validator: _0, pub own: _1, @@ -19264,11 +21042,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnlockChunk<_0> { #[codec(compact)] pub value: _0, @@ -19278,11 +21060,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorPrefs { #[codec(compact)] pub commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -19296,11 +21082,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -19335,8 +21125,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- O(1)."] set_key { - new: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -19349,8 +21139,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- O(1)."] sudo_as { - who: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, call: ::std::boxed::Box, @@ -19359,11 +21149,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the Sudo pallet"] pub enum Error { #[codec(index = 0)] @@ -19373,11 +21167,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -19389,8 +21187,9 @@ pub mod api { #[codec(index = 1)] #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] KeyChanged { - old_sudoer: - ::core::option::Option<::subxt::ext::sp_core::crypto::AccountId32>, + old_sudoer: ::core::option::Option< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + >, }, #[codec(index = 2)] #[doc = "A sudo just took place. \\[result\\]"] @@ -19408,11 +21207,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -19445,18 +21248,22 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] 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::sp_core::crypto::AccountId32, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, actual_fee: ::core::primitive::u128, tip: ::core::primitive::u128, }, @@ -19465,20 +21272,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V1Ancient, @@ -19493,11 +21308,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -19510,8 +21329,8 @@ pub mod api { propose_spend { #[codec(compact)] value: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -19550,8 +21369,8 @@ pub mod api { spend { #[codec(compact)] amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -19577,11 +21396,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the treasury pallet."] pub enum Error { #[codec(index = 0)] @@ -19604,11 +21427,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -19626,7 +21453,7 @@ pub mod api { Awarded { proposal_index: ::core::primitive::u32, award: ::core::primitive::u128, - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 3)] #[doc = "A proposal was rejected; funds were slashed."] @@ -19652,7 +21479,8 @@ pub mod api { SpendApproved { proposal_index: ::core::primitive::u32, amount: ::core::primitive::u128, - beneficiary: ::subxt::ext::sp_core::crypto::AccountId32, + beneficiary: + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, #[codec(index = 8)] #[doc = "The inactive funds of the pallet have been updated."] @@ -19665,11 +21493,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proposal<_0, _1> { pub proposer: _0, pub value: _1, @@ -19684,11 +21516,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -19791,11 +21627,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] @@ -19805,11 +21645,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] @@ -19849,11 +21693,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] @@ -19880,8 +21728,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)`."] vest_other { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, }, @@ -19900,8 +21748,8 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)`."] vested_transfer { - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -19925,12 +21773,12 @@ pub mod api { #[doc = "## Complexity"] #[doc = "- `O(1)`."] force_vested_transfer { - source: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, - target: ::subxt::ext::sp_runtime::MultiAddress< - ::subxt::ext::sp_core::crypto::AccountId32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, (), >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -19968,11 +21816,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the vesting pallet."] pub enum Error { #[codec(index = 0)] @@ -19995,24 +21847,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] VestingUpdated { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, unvested: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An \\[account\\] has become fully vested."] VestingCompleted { - account: ::subxt::ext::sp_core::crypto::AccountId32, + account: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, }, } } @@ -20021,11 +21877,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestingInfo<_0, _1> { pub locked: _0, pub per_block: _0, @@ -20035,11 +21895,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V0, @@ -20047,18 +21911,6 @@ pub mod api { V1, } } - pub mod primitive_types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub struct H256(pub [::core::primitive::u8; 32usize]); - } pub mod primitives { use super::runtime_types; pub mod app { @@ -20066,21 +21918,29 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::ed25519::Public); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BanConfig { pub minimal_expected_performance: runtime_types::sp_arithmetic::per_things::Perbill, pub underperformed_session_count_threshold: ::core::primitive::u32, @@ -20090,11 +21950,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BanInfo { pub reason: runtime_types::primitives::BanReason, pub start: ::core::primitive::u32, @@ -20102,11 +21966,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BanReason { #[codec(index = 0)] InsufficientUptime(::core::primitive::u32), @@ -20120,11 +21988,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommitteeSeats { pub reserved_seats: ::core::primitive::u32, pub non_reserved_seats: ::core::primitive::u32, @@ -20133,11 +22005,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ElectionOpenness { #[codec(index = 0)] Permissioned, @@ -20147,11 +22023,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraValidators<_0> { pub reserved: ::std::vec::Vec<_0>, pub non_reserved: ::std::vec::Vec<_0>, @@ -20159,11 +22039,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionValidators<_0> { pub committee: ::std::vec::Vec<_0>, pub non_committee: ::std::vec::Vec<_0>, @@ -20171,11 +22055,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VersionChange { pub version_incoming: ::core::primitive::u32, pub session: ::core::primitive::u32, @@ -20189,11 +22077,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { @@ -20202,51 +22094,71 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perbill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Percent(pub ::core::primitive::u8); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Permill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perquintill(pub ::core::primitive::u64); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ArithmeticError { #[codec(index = 0)] Underflow, @@ -20265,11 +22177,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } } @@ -20280,11 +22196,15 @@ pub mod api { :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Slot(pub ::core::primitive::u64); } pub mod sp_core { @@ -20294,20 +22214,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - pub struct AccountId32(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod ecdsa { @@ -20315,11 +22230,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 65usize]); } pub mod ed25519 { @@ -20327,20 +22246,28 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } pub mod sr25519 { @@ -20348,30 +22275,42 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } pub mod sp_runtime { @@ -20383,11 +22322,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Digest { pub logs: ::std::vec::Vec, @@ -20395,11 +22338,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DigestItem { #[codec(index = 6)] PreRuntime( @@ -20427,11 +22374,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Era { #[codec(index = 0)] Immortal, @@ -20952,48 +22903,33 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub ::std::vec::Vec<::core::primitive::u8>, #[codec(skip)] pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, ); } } - pub mod multiaddress { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - Clone, - Debug, - Eq, - PartialEq, - )] - pub enum MultiAddress<_0, _1> { - #[codec(index = 0)] - Id(_0), - #[codec(index = 1)] - Index(#[codec(compact)] _1), - #[codec(index = 2)] - Raw(::std::vec::Vec<::core::primitive::u8>), - #[codec(index = 3)] - Address32([::core::primitive::u8; 32usize]), - #[codec(index = 4)] - Address20([::core::primitive::u8; 20usize]), - } - } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchError { #[codec(index = 0)] Other, @@ -21025,11 +22961,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ModuleError { pub index: ::core::primitive::u8, pub error: [::core::primitive::u8; 4usize], @@ -21037,11 +22977,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiSignature { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Signature), @@ -21053,11 +22997,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] FundsUnavailable, @@ -21081,11 +23029,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionalError { #[codec(index = 0)] LimitReached, @@ -21098,11 +23050,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeVersion { pub spec_name: ::std::string::String, pub impl_name: ::std::string::String, @@ -21122,11 +23078,15 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Weight { #[codec(compact)] pub ref_time: ::core::primitive::u64, @@ -21137,223 +23097,19 @@ pub mod api { #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeDbWeight { pub read: ::core::primitive::u64, pub write: ::core::primitive::u64, } } } - #[doc = r" The default error type returned when there is a runtime issue,"] - #[doc = r" exposed here for ease of use."] - pub type DispatchError = runtime_types::sp_runtime::DispatchError; - pub fn constants() -> ConstantsApi { - ConstantsApi - } - pub fn storage() -> StorageApi { - StorageApi - } - pub fn tx() -> TransactionApi { - TransactionApi - } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi - } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi - } - pub fn balances(&self) -> balances::constants::ConstantsApi { - balances::constants::ConstantsApi - } - pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { - transaction_payment::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn elections(&self) -> elections::constants::ConstantsApi { - elections::constants::ConstantsApi - } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::constants::ConstantsApi - } - pub fn vesting(&self) -> vesting::constants::ConstantsApi { - vesting::constants::ConstantsApi - } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi - } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { - multisig::constants::ConstantsApi - } - pub fn contracts(&self) -> contracts::constants::ConstantsApi { - contracts::constants::ConstantsApi - } - pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { - nomination_pools::constants::ConstantsApi - } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi - } - pub fn committee_management(&self) -> committee_management::constants::ConstantsApi { - committee_management::constants::ConstantsApi - } - pub fn baby_liminal(&self) -> baby_liminal::constants::ConstantsApi { - baby_liminal::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 scheduler(&self) -> scheduler::storage::StorageApi { - scheduler::storage::StorageApi - } - pub fn aura(&self) -> aura::storage::StorageApi { - aura::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } - pub fn balances(&self) -> balances::storage::StorageApi { - balances::storage::StorageApi - } - pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { - transaction_payment::storage::StorageApi - } - pub fn authorship(&self) -> authorship::storage::StorageApi { - authorship::storage::StorageApi - } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn history(&self) -> history::storage::StorageApi { - history::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn aleph(&self) -> aleph::storage::StorageApi { - aleph::storage::StorageApi - } - pub fn elections(&self) -> elections::storage::StorageApi { - elections::storage::StorageApi - } - pub fn treasury(&self) -> treasury::storage::StorageApi { - treasury::storage::StorageApi - } - pub fn vesting(&self) -> vesting::storage::StorageApi { - vesting::storage::StorageApi - } - pub fn multisig(&self) -> multisig::storage::StorageApi { - multisig::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn contracts(&self) -> contracts::storage::StorageApi { - contracts::storage::StorageApi - } - pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { - nomination_pools::storage::StorageApi - } - pub fn identity(&self) -> identity::storage::StorageApi { - identity::storage::StorageApi - } - pub fn committee_management(&self) -> committee_management::storage::StorageApi { - committee_management::storage::StorageApi - } - pub fn baby_liminal(&self) -> baby_liminal::storage::StorageApi { - baby_liminal::storage::StorageApi - } - } - pub struct TransactionApi; - impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi - } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi { - scheduler::calls::TransactionApi - } - pub fn timestamp(&self) -> timestamp::calls::TransactionApi { - timestamp::calls::TransactionApi - } - pub fn balances(&self) -> balances::calls::TransactionApi { - balances::calls::TransactionApi - } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi - } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi - } - pub fn aleph(&self) -> aleph::calls::TransactionApi { - aleph::calls::TransactionApi - } - pub fn elections(&self) -> elections::calls::TransactionApi { - elections::calls::TransactionApi - } - pub fn treasury(&self) -> treasury::calls::TransactionApi { - treasury::calls::TransactionApi - } - pub fn vesting(&self) -> vesting::calls::TransactionApi { - vesting::calls::TransactionApi - } - pub fn utility(&self) -> utility::calls::TransactionApi { - utility::calls::TransactionApi - } - pub fn multisig(&self) -> multisig::calls::TransactionApi { - multisig::calls::TransactionApi - } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi - } - pub fn contracts(&self) -> contracts::calls::TransactionApi { - contracts::calls::TransactionApi - } - pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { - nomination_pools::calls::TransactionApi - } - pub fn identity(&self) -> identity::calls::TransactionApi { - identity::calls::TransactionApi - } - pub fn committee_management(&self) -> committee_management::calls::TransactionApi { - committee_management::calls::TransactionApi - } - pub fn baby_liminal(&self) -> baby_liminal::calls::TransactionApi { - baby_liminal::calls::TransactionApi - } - } - #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] - pub fn validate_codegen>( - client: &C, - ) -> Result<(), ::subxt::error::MetadataError> { - let runtime_metadata_hash = client.metadata().metadata_hash(&PALLETS); - if runtime_metadata_hash - != [ - 70u8, 106u8, 44u8, 27u8, 186u8, 210u8, 163u8, 177u8, 76u8, 82u8, 89u8, 251u8, - 119u8, 83u8, 63u8, 92u8, 229u8, 90u8, 59u8, 76u8, 93u8, 86u8, 239u8, 11u8, 80u8, - 248u8, 166u8, 12u8, 93u8, 37u8, 117u8, 181u8, - ] - { - Err(::subxt::error::MetadataError::IncompatibleMetadata) - } else { - Ok(()) - } - } } diff --git a/aleph-client/src/connections.rs b/aleph-client/src/connections.rs index dc7fdb0b3e..4253aed607 100644 --- a/aleph-client/src/connections.rs +++ b/aleph-client/src/connections.rs @@ -9,13 +9,16 @@ use subxt::{ ext::sp_core::Bytes, metadata::DecodeWithMetadata, rpc::RpcParams, - storage::{address::Yes, StaticStorageAddress, StorageAddress}, + storage::{ + address::{Address, StaticStorageMapKey, Yes}, + StorageAddress, + }, tx::TxPayload, }; use crate::{ - api, sp_weights::weight_v2::Weight, AccountId, AlephConfig, BlockHash, Call, KeyPair, - ParamsBuilder, SubxtClient, TxHash, TxStatus, + api, runtime_types::sp_weights::weight_v2::Weight, AccountId, AlephConfig, BlockHash, Call, + KeyPair, ParamsBuilder, SubxtClient, TxHash, TxStatus, }; /// Capable of communicating with a live Aleph chain. @@ -61,9 +64,9 @@ pub trait ConnectionApi: Sync { /// * `at` - optional block hash to query state from async fn get_storage_entry( &self, - addrs: &StaticStorageAddress, + addrs: &Address, at: Option, - ) -> T::Target; + ) -> T; /// Retrieves a decoded storage value stored under given key. /// @@ -84,9 +87,9 @@ pub trait ConnectionApi: Sync { Iterable: Sync, >( &self, - addrs: &StaticStorageAddress, + addrs: &Address, at: Option, - ) -> Option; + ) -> Option; /// Submit a RPC call. /// @@ -235,9 +238,9 @@ impl AsSigned for RootConnection { impl ConnectionApi for C { async fn get_storage_entry( &self, - addrs: &StaticStorageAddress, + addrs: &Address, at: Option, - ) -> T::Target { + ) -> T { self.get_storage_entry_maybe(addrs, at) .await .expect("There should be a value") @@ -249,16 +252,18 @@ impl ConnectionApi for C { Iterable: Sync, >( &self, - addrs: &StaticStorageAddress, + addrs: &Address, at: Option, - ) -> Option { + ) -> Option { info!(target: "aleph-client", "accessing storage at {}::{} at block {:?}", addrs.pallet_name(), addrs.entry_name(), at); - self.as_connection() - .as_client() - .storage() - .fetch(addrs, at) - .await - .expect("Should access storage") + + let storage = self.as_connection().as_client().storage(); + let block = match at { + Some(block_hash) => storage.at(block_hash), + None => storage.at_latest().await.expect("Should access storage"), + }; + + block.fetch(addrs).await.expect("Should access storage") } async fn rpc_call(&self, func_name: String, params: RpcParams) -> anyhow::Result { @@ -422,12 +427,15 @@ impl RootConnection { let root = match connection .as_client() .storage() - .fetch(&root_address, None) + .at_latest() + .await? + .fetch(&root_address) .await { Ok(Some(account)) => account, _ => return Err(anyhow!("Could not read sudo key from chain")), - }; + } + .0; if root != *signer.account_id() { return Err(anyhow!( diff --git a/aleph-client/src/contract/event.rs b/aleph-client/src/contract/event.rs index 7772adf3a0..bd15d0c9e9 100644 --- a/aleph-client/src/contract/event.rs +++ b/aleph-client/src/contract/event.rs @@ -181,7 +181,7 @@ fn translate_event( ) -> Result { let matching_contract = contracts .iter() - .find(|contract| contract.address() == &event.contract) + .find(|contract| contract.address() == &event.contract.0) .ok_or_else(|| anyhow!("The event wasn't emitted by any of the provided contracts"))?; let data = zero_prefixed(&event.data); diff --git a/aleph-client/src/lib.rs b/aleph-client/src/lib.rs index 379f51ceac..005db50e7e 100644 --- a/aleph-client/src/lib.rs +++ b/aleph-client/src/lib.rs @@ -13,15 +13,25 @@ use std::str::FromStr; use anyhow::anyhow; pub use contract_transcode; -pub use subxt::ext::{codec, sp_core, sp_core::Pair, sp_runtime}; +pub use subxt::ext::{ + codec, sp_core, + sp_core::{ + crypto::{PublicError, Ss58Codec}, + Pair, + }, + sp_runtime, +}; use subxt::{ - ext::sp_core::{ed25519, sr25519, H256}, - OnlineClient, PolkadotConfig, SubstrateConfig, + config::polkadot::PolkadotExtrinsicParams, + ext::{ + sp_core::{ed25519, sr25519, H256}, + sp_runtime::{MultiAddress, MultiSignature}, + }, + Config, OnlineClient, PolkadotConfig, }; use crate::api::runtime_types::aleph_runtime::RuntimeCall as Call; -// generated by running `subxt codegen --derive Clone Debug Eq PartialEq | rustfmt --edition=2021 > src/aleph_zero.rs` #[cfg(not(feature = "liminal"))] #[allow(clippy::all)] #[doc(hidden)] @@ -68,8 +78,19 @@ pub use connections::{ }; /// An alias for a configuration of live chain, e.g. block index type, hash type. -type AlephConfig = PolkadotConfig; -type ParamsBuilder = subxt::tx::PolkadotExtrinsicParamsBuilder; +pub enum AlephConfig {} + +impl Config for AlephConfig { + type Index = ::Index; + type Hash = ::Hash; + type AccountId = AccountId; + type Address = MultiAddress; + type Signature = MultiSignature; + type Hasher = ::Hasher; + type Header = ::Header; + type ExtrinsicParams = PolkadotExtrinsicParams; +} +type ParamsBuilder = subxt::config::polkadot::PolkadotExtrinsicParamsBuilder; type PairSigner = subxt::tx::PairSigner; /// Used for signing extrinsic payload diff --git a/aleph-client/src/pallets/balances.rs b/aleph-client/src/pallets/balances.rs index f302a4190b..4696aa03d0 100644 --- a/aleph-client/src/pallets/balances.rs +++ b/aleph-client/src/pallets/balances.rs @@ -1,4 +1,4 @@ -use subxt::ext::sp_runtime::MultiAddress; +use subxt::utils::{MultiAddress, Static}; use crate::{ aleph_zero::{self, api}, @@ -92,7 +92,7 @@ impl BalanceApi for C { account: AccountId, at: Option, ) -> Vec> { - let address = aleph_zero::api::storage().balances().locks(&account); + let address = aleph_zero::api::storage().balances().locks(Static(account)); self.get_storage_entry(&address, at).await.0 } @@ -137,7 +137,7 @@ impl BalanceUserApi for S { ) -> anyhow::Result { let tx = api::tx() .balances() - .transfer(MultiAddress::Id(dest), amount); + .transfer(MultiAddress::Id(dest.into()), amount); self.send_tx(tx, status).await } @@ -150,7 +150,7 @@ impl BalanceUserApi for S { ) -> anyhow::Result { let tx = api::tx() .balances() - .transfer(MultiAddress::Id(dest), amount); + .transfer(MultiAddress::Id(dest.into()), amount); self.send_tx_with_params(tx, ParamsBuilder::new().tip(tip), status) .await @@ -169,7 +169,7 @@ impl BalanceUserBatchExtApi for S { .iter() .map(|dest| { Balances(transfer { - dest: MultiAddress::Id(dest.clone()), + dest: MultiAddress::Id(dest.clone().into()), value: amount, }) }) diff --git a/aleph-client/src/pallets/committee_management.rs b/aleph-client/src/pallets/committee_management.rs index 6fa1cdff6c..ff0701ea1c 100644 --- a/aleph-client/src/pallets/committee_management.rs +++ b/aleph-client/src/pallets/committee_management.rs @@ -3,6 +3,7 @@ use primitives::{SessionCommittee, SessionValidatorError}; use subxt::{ ext::{sp_core::Bytes, sp_runtime::Perquintill}, rpc_params, + utils::Static, }; use crate::{ @@ -127,7 +128,7 @@ impl CommitteeManagementApi for C { ) -> Option { let addrs = api::storage() .committee_management() - .session_validator_block_count(&validator); + .session_validator_block_count(Static::from(validator)); self.get_storage_entry_maybe(&addrs, at).await } @@ -139,7 +140,7 @@ impl CommitteeManagementApi for C { ) -> Option { let addrs = api::storage() .committee_management() - .underperformed_validator_session_count(&validator); + .underperformed_validator_session_count(Static::from(validator)); self.get_storage_entry_maybe(&addrs, at).await } @@ -149,7 +150,9 @@ impl CommitteeManagementApi for C { validator: AccountId, at: Option, ) -> Option { - let addrs = api::storage().committee_management().banned(validator); + let addrs = api::storage() + .committee_management() + .banned(Static::from(validator)); self.get_storage_entry_maybe(&addrs, at) .await @@ -161,7 +164,9 @@ impl CommitteeManagementApi for C { validator: AccountId, at: Option, ) -> Option { - let addrs = api::storage().committee_management().banned(validator); + let addrs = api::storage() + .committee_management() + .banned(Static::from(validator)); self.get_storage_entry_maybe(&addrs, at).await } @@ -223,7 +228,7 @@ impl CommitteeManagementSudoApi for RootConnection { status: TxStatus, ) -> anyhow::Result { let call = CommitteeManagement(ban_from_committee { - banned: account, + banned: account.into(), ban_reason, }); self.sudo_unchecked(call, status).await diff --git a/aleph-client/src/pallets/contract.rs b/aleph-client/src/pallets/contract.rs index 0e92fe05a0..15a9510144 100644 --- a/aleph-client/src/pallets/contract.rs +++ b/aleph-client/src/pallets/contract.rs @@ -1,6 +1,6 @@ use codec::{Compact, Encode}; use pallet_contracts_primitives::ContractExecResult; -use subxt::{ext::sp_core::Bytes, rpc_params}; +use subxt::{ext::sp_core::Bytes, rpc_params, utils::Static}; use crate::{ api, @@ -181,10 +181,13 @@ impl ContractsUserApi for S { data: Vec, status: TxStatus, ) -> anyhow::Result { - let tx = - api::tx() - .contracts() - .call(destination.into(), balance, gas_limit, storage_limit, data); + let tx = api::tx().contracts().call( + Static::from(destination).into(), + balance, + gas_limit, + storage_limit, + data, + ); self.send_tx(tx, status).await } diff --git a/aleph-client/src/pallets/elections.rs b/aleph-client/src/pallets/elections.rs index 1980654789..c932a63e2c 100644 --- a/aleph-client/src/pallets/elections.rs +++ b/aleph-client/src/pallets/elections.rs @@ -1,3 +1,5 @@ +use subxt::utils::Static; + use crate::{ api, api::runtime_types::primitives::{CommitteeSeats, EraValidators}, @@ -76,14 +78,29 @@ impl ElectionsApi for C { async fn get_current_era_validators(&self, at: Option) -> EraValidators { let addrs = api::storage().elections().current_era_validators(); - - self.get_storage_entry(&addrs, at).await + let era_validators_with_static_account_ids = self.get_storage_entry(&addrs, at).await; + return EraValidators { + reserved: era_validators_with_static_account_ids + .reserved + .into_iter() + .map(|x| x.0) + .collect(), + non_reserved: era_validators_with_static_account_ids + .non_reserved + .into_iter() + .map(|x| x.0) + .collect(), + }; } async fn get_next_era_reserved_validators(&self, at: Option) -> Vec { let addrs = api::storage().elections().next_era_reserved_validators(); - self.get_storage_entry(&addrs, at).await + self.get_storage_entry(&addrs, at) + .await + .into_iter() + .map(|x| x.0) + .collect() } async fn get_next_era_non_reserved_validators(&self, at: Option) -> Vec { @@ -91,7 +108,11 @@ impl ElectionsApi for C { .elections() .next_era_non_reserved_validators(); - self.get_storage_entry(&addrs, at).await + self.get_storage_entry(&addrs, at) + .await + .into_iter() + .map(|x| x.0) + .collect() } } @@ -105,8 +126,10 @@ impl ElectionsSudoApi for RootConnection { status: TxStatus, ) -> anyhow::Result { let call = Elections(change_validators { - reserved_validators: new_reserved_validators, - non_reserved_validators: new_non_reserved_validators, + reserved_validators: new_reserved_validators + .map(|inner| inner.into_iter().map(Static).collect()), + non_reserved_validators: new_non_reserved_validators + .map(|inner| inner.into_iter().map(Static).collect()), committee_size, }); diff --git a/aleph-client/src/pallets/multisig.rs b/aleph-client/src/pallets/multisig.rs index e3c538f5ad..2983ed4628 100644 --- a/aleph-client/src/pallets/multisig.rs +++ b/aleph-client/src/pallets/multisig.rs @@ -2,6 +2,7 @@ use std::{collections::HashSet, marker::PhantomData}; use anyhow::{anyhow, ensure}; use codec::{Decode, Encode}; +use subxt::utils::Static; use crate::{ account_from_keypair, aleph_runtime::RuntimeCall, api, api::runtime_types, connections::TxInfo, @@ -81,7 +82,7 @@ impl MultisigUserApi for S { ) -> anyhow::Result { let tx = api::tx() .multisig() - .as_multi_threshold_1(other_signatories, call); + .as_multi_threshold_1(wrap_vec_elements_with_static(other_signatories), call); self.send_tx(tx, status).await } @@ -97,7 +98,7 @@ impl MultisigUserApi for S { ) -> anyhow::Result { let tx = api::tx().multisig().as_multi( threshold, - other_signatories, + wrap_vec_elements_with_static(other_signatories), timepoint, call, max_weight, @@ -117,7 +118,7 @@ impl MultisigUserApi for S { ) -> anyhow::Result { let tx = api::tx().multisig().approve_as_multi( threshold, - other_signatories, + wrap_vec_elements_with_static(other_signatories), timepoint, call_hash, max_weight, @@ -136,7 +137,7 @@ impl MultisigUserApi for S { ) -> anyhow::Result { let tx = api::tx().multisig().cancel_as_multi( threshold, - other_signatories, + wrap_vec_elements_with_static(other_signatories), timepoint, call_hash, ); @@ -223,9 +224,8 @@ impl MultisigApiExt for C { ) -> Timepoint { let multisigs = api::storage() .multisig() - .multisigs(party_account, call_hash); - let Multisig { when, .. } = self.get_storage_entry(&multisigs, block_hash).await; - when + .multisigs(&Static(party_account.clone()), call_hash); + self.get_storage_entry(&multisigs, block_hash).await.when } } @@ -615,3 +615,7 @@ fn ensure_signer_in_party( Err(anyhow!("Connection should be signed by a party member")) } } + +fn wrap_vec_elements_with_static(vec: Vec) -> Vec> { + vec.into_iter().map(Static).collect() +} diff --git a/aleph-client/src/pallets/session.rs b/aleph-client/src/pallets/session.rs index 1349066cb7..cd30881131 100644 --- a/aleph-client/src/pallets/session.rs +++ b/aleph-client/src/pallets/session.rs @@ -1,3 +1,5 @@ +use subxt::utils::Static; + use crate::{ api, api::runtime_types::aleph_runtime::SessionKeys, connections::TxInfo, AccountId, BlockHash, ConnectionApi, SessionIndex, SignedConnectionApi, TxStatus, @@ -34,7 +36,7 @@ impl SessionApi for C { account: AccountId, at: Option, ) -> Option { - let addrs = api::storage().session().next_keys(account); + let addrs = api::storage().session().next_keys(Static::from(account)); self.get_storage_entry_maybe(&addrs, at).await } @@ -50,7 +52,11 @@ impl SessionApi for C { async fn get_validators(&self, at: Option) -> Vec { let addrs = api::storage().session().validators(); - self.get_storage_entry(&addrs, at).await + self.get_storage_entry(&addrs, at) + .await + .into_iter() + .map(|x| x.0) + .collect() } } diff --git a/aleph-client/src/pallets/staking.rs b/aleph-client/src/pallets/staking.rs index fee58e530d..930923ef43 100644 --- a/aleph-client/src/pallets/staking.rs +++ b/aleph-client/src/pallets/staking.rs @@ -1,9 +1,8 @@ +use codec::Encode; use subxt::{ - ext::{ - sp_core::storage::StorageKey, - sp_runtime::{MultiAddress, Perbill as SPerbill}, - }, - storage::address::{StorageHasher, StorageMapKey}, + ext::sp_runtime::Perbill as SPerbill, + storage::StorageKey, + utils::{KeyedVec, MultiAddress, Static}, }; use crate::{ @@ -15,7 +14,8 @@ use crate::{ ConfigOp, ConfigOp::{Noop, Set}, }, - EraRewardPoints, Exposure, RewardDestination, StakingLedger, ValidatorPrefs, + EraRewardPoints, Exposure, IndividualExposure, RewardDestination, StakingLedger, + ValidatorPrefs, }, pallet_sudo::pallet::Call::sudo_as, pallets::utility::UtilityApi, @@ -255,13 +255,13 @@ impl StakingApi for C { } async fn get_bonded(&self, stash: AccountId, at: Option) -> Option { - let addrs = api::storage().staking().bonded(stash); + let addrs = api::storage().staking().bonded(Static(stash)); - self.get_storage_entry_maybe(&addrs, at).await + self.get_storage_entry_maybe(&addrs, at).await.map(|x| x.0) } async fn get_ledger(&self, controller: AccountId, at: Option) -> StakingLedger { - let addrs = api::storage().staking().ledger(controller); + let addrs = api::storage().staking().ledger(Static(controller)); self.get_storage_entry(&addrs, at).await } @@ -278,9 +278,23 @@ impl StakingApi for C { account_id: &AccountId, at: Option, ) -> Exposure { - let addrs = api::storage().staking().eras_stakers(era, account_id); - - self.get_storage_entry(&addrs, at).await + let addrs = api::storage() + .staking() + .eras_stakers(era, &Static(account_id.clone())); + + let exposure = self.get_storage_entry(&addrs, at).await; + Exposure { + total: exposure.total, + own: exposure.own, + others: exposure + .others + .into_iter() + .map(|x| IndividualExposure { + who: x.who.0, + value: x.value, + }) + .collect(), + } } async fn get_era_reward_points( @@ -290,7 +304,16 @@ impl StakingApi for C { ) -> Option> { let addrs = api::storage().staking().eras_reward_points(era); - self.get_storage_entry_maybe(&addrs, at).await + self.get_storage_entry_maybe(&addrs, at) + .await + .map(|x| EraRewardPoints { + total: x.total, + individual: x + .individual + .into_iter() + .map(|(k, v)| (k.0, v)) + .collect::>(), + }) } async fn get_minimum_validator_count(&self, at: Option) -> u32 { @@ -318,7 +341,7 @@ impl StakingUserApi for S { status: TxStatus, ) -> anyhow::Result { let tx = api::tx().staking().bond( - MultiAddress::::Id(controller_id), + MultiAddress::, ()>::Id(Static(controller_id)), initial_stake, RewardDestination::Staked, ); @@ -347,7 +370,9 @@ impl StakingUserApi for S { era: EraIndex, status: TxStatus, ) -> anyhow::Result { - let tx = api::tx().staking().payout_stakers(stash_account, era); + let tx = api::tx() + .staking() + .payout_stakers(Static(stash_account), era); self.send_tx(tx, status).await } @@ -359,7 +384,7 @@ impl StakingUserApi for S { ) -> anyhow::Result { let tx = api::tx() .staking() - .nominate(vec![MultiAddress::Id(nominee_account_id)]); + .nominate(vec![MultiAddress::Id(Static(nominee_account_id))]); self.send_tx(tx, status).await } @@ -415,6 +440,11 @@ impl StakingSudoApi for RootConnection { } } +fn extend_with_twox64_concat_hash(key: &mut Vec, value_to_hash: T) { + key.extend(subxt::ext::sp_core::twox_64(&value_to_hash.encode())); + key.extend(&value_to_hash.encode()); +} + #[async_trait::async_trait] impl StakingRawApi for C { async fn get_stakers_storage_keys( @@ -424,13 +454,14 @@ impl StakingRawApi for C { ) -> anyhow::Result> { let key_addrs = api::storage().staking().eras_stakers_root(); let mut key = key_addrs.to_root_bytes(); - StorageMapKey::new(era, StorageHasher::Twox64Concat).to_bytes(&mut key); - self.as_connection() - .as_client() - .storage() - .fetch_keys(&key, 10, None, at) - .await - .map_err(|e| e.into()) + extend_with_twox64_concat_hash(&mut key, era); + + let storage = self.as_connection().as_client().storage(); + let block = match at { + Some(block_hash) => storage.at(block_hash), + None => storage.at_latest().await?, + }; + block.fetch_keys(&key, 10, None).await.map_err(|e| e.into()) } async fn get_stakers_storage_keys_from_accounts( @@ -441,12 +472,12 @@ impl StakingRawApi for C { ) -> Vec { let key_addrs = api::storage().staking().eras_stakers_root(); let mut key = key_addrs.to_root_bytes(); - StorageMapKey::new(era, StorageHasher::Twox64Concat).to_bytes(&mut key); + extend_with_twox64_concat_hash(&mut key, era); accounts .iter() .map(|account| { let mut key = key.clone(); - StorageMapKey::new(account, StorageHasher::Twox64Concat).to_bytes(&mut key); + extend_with_twox64_concat_hash(&mut key, account); StorageKey(key) }) @@ -466,13 +497,13 @@ impl StakingApiExt for RootConnection { .iter() .map(|(s, c)| { let b = Staking(bond { - controller: MultiAddress::Id(c.clone()), + controller: MultiAddress::Id(Static(c.clone())), value: stake, payee: RewardDestination::Staked, }); Sudo(sudo_as { - who: MultiAddress::Id(s.clone()), + who: MultiAddress::Id(Static(s.clone())), call: Box::new(b), }) }) @@ -490,10 +521,10 @@ impl StakingApiExt for RootConnection { .iter() .map(|(nominator, nominee)| { let call = Staking(nominate { - targets: vec![MultiAddress::Id(nominee.clone())], + targets: vec![MultiAddress::Id(Static(nominee.clone()))], }); Sudo(sudo_as { - who: MultiAddress::Id(nominator.clone()), + who: MultiAddress::Id(Static(nominator.clone())), call: Box::new(call), }) }) diff --git a/aleph-client/src/pallets/system.rs b/aleph-client/src/pallets/system.rs index 6d61c39fc2..59c9ed1038 100644 --- a/aleph-client/src/pallets/system.rs +++ b/aleph-client/src/pallets/system.rs @@ -1,3 +1,5 @@ +use subxt::utils::Static; + use crate::{ api, connections::TxInfo, frame_system::pallet::Call::set_code, AccountId, Balance, BlockHash, Call::System, ConnectionApi, RootConnection, SudoCall, TxStatus, @@ -33,7 +35,7 @@ impl SystemSudoApi for RootConnection { #[async_trait::async_trait] impl SystemApi for C { async fn get_free_balance(&self, account: AccountId, at: Option) -> Balance { - let addrs = api::storage().system().account(&account); + let addrs = api::storage().system().account(Static(account)); match self.get_storage_entry_maybe(&addrs, at).await { None => 0, diff --git a/aleph-client/src/pallets/treasury.rs b/aleph-client/src/pallets/treasury.rs index cb718c7008..950d0dae24 100644 --- a/aleph-client/src/pallets/treasury.rs +++ b/aleph-client/src/pallets/treasury.rs @@ -1,5 +1,5 @@ use primitives::{staking::era_payout, MILLISECS_PER_BLOCK}; -use subxt::ext::sp_runtime::MultiAddress; +use subxt::utils::{MultiAddress, Static}; use crate::{ api, @@ -101,7 +101,7 @@ impl TreasuryUserApi for S { ) -> anyhow::Result { let tx = api::tx() .treasury() - .propose_spend(amount, MultiAddress::Id(beneficiary)); + .propose_spend(amount, MultiAddress::Id(Static::from(beneficiary))); self.send_tx(tx, status).await } diff --git a/aleph-client/src/pallets/vesting.rs b/aleph-client/src/pallets/vesting.rs index 7e59cfa8b9..607cf3d412 100644 --- a/aleph-client/src/pallets/vesting.rs +++ b/aleph-client/src/pallets/vesting.rs @@ -1,4 +1,4 @@ -use subxt::ext::sp_runtime::MultiAddress; +use subxt::utils::{MultiAddress, Static}; use crate::{ api, connections::TxInfo, pallet_vesting::vesting_info::VestingInfo, AccountId, Balance, @@ -51,7 +51,7 @@ impl VestingApi for C { who: AccountId, at: Option, ) -> Vec> { - let addrs = api::storage().vesting().vesting(who); + let addrs = api::storage().vesting().vesting(Static(who)); self.get_storage_entry(&addrs, at).await.0 } @@ -66,7 +66,9 @@ impl VestingUserApi for S { } async fn vest_other(&self, status: TxStatus, other: AccountId) -> anyhow::Result { - let tx = api::tx().vesting().vest_other(MultiAddress::Id(other)); + let tx = api::tx() + .vesting() + .vest_other(MultiAddress::Id(other.into())); self.send_tx(tx, status).await } @@ -79,7 +81,7 @@ impl VestingUserApi for S { ) -> anyhow::Result { let tx = api::tx() .vesting() - .vested_transfer(MultiAddress::Id(receiver), schedule); + .vested_transfer(MultiAddress::Id(receiver.into()), schedule); self.send_tx(tx, status).await } diff --git a/aleph-client/src/utility.rs b/aleph-client/src/utility.rs index 8fa6136f1c..14ae68bf08 100644 --- a/aleph-client/src/utility.rs +++ b/aleph-client/src/utility.rs @@ -1,7 +1,7 @@ use anyhow::anyhow; use log::info; use primitives::Balance; -use subxt::{blocks::ExtrinsicEvents, ext::sp_runtime::traits::Hash, Config}; +use subxt::{blocks::ExtrinsicEvents, config::Hasher, Config}; use crate::{ api::transaction_payment::events::TransactionFeePaid, @@ -114,14 +114,14 @@ impl BlocksApi for C { .as_connection() .as_client() .blocks() - .at(Some(tx_info.block_hash)) + .at(tx_info.block_hash) .await? .body() .await?; let extrinsic_events = block_body .extrinsics() - .find(|tx| tx_info.tx_hash == ::Hashing::hash_of(&tx.bytes())) + .find(|tx| tx_info.tx_hash == ::Hasher::hash_of(&tx.bytes())) .ok_or_else(|| anyhow!("Couldn't find the transaction in the block."))? .events() .await diff --git a/benches/payout-stakers/Cargo.lock b/benches/payout-stakers/Cargo.lock index 93c97d14eb..e53b84d802 100644 --- a/benches/payout-stakers/Cargo.lock +++ b/benches/payout-stakers/Cargo.lock @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.4.2" +version = "3.5.0" dependencies = [ "anyhow", "async-trait", @@ -153,13 +153,13 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.71" +version = "0.1.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a564d521dd56509c4c47480d00b80ee55f7e385ae48db5744c67ad50c92d2ebf" +checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -366,9 +366,12 @@ checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" [[package]] name = "cc" -version = "1.0.79" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01" +dependencies = [ + "libc", +] [[package]] name = "cfg-if" @@ -744,9 +747,9 @@ dependencies = [ [[package]] name = "either" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "env_logger" @@ -775,9 +778,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" +checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f" dependencies = [ "errno-dragonfly", "libc", @@ -942,7 +945,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -1007,10 +1010,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -1061,12 +1062,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - [[package]] name = "hash-db" version = "0.16.0" @@ -1431,7 +1426,7 @@ dependencies = [ "derive_more", "ink_prelude", "parity-scale-codec", - "scale-decode 0.5.0", + "scale-decode", "scale-encode", "scale-info", "xxhash-rust", @@ -1693,15 +1688,6 @@ version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" -[[package]] -name = "lru" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" -dependencies = [ - "hashbrown 0.12.3", -] - [[package]] name = "mach" version = "0.3.2" @@ -1744,24 +1730,13 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memory-db" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "parity-util-mem", -] - [[package]] name = "memory-db" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -1882,9 +1857,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", ] @@ -1958,9 +1933,9 @@ dependencies = [ "bitflags", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] @@ -1990,32 +1965,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parity-util-mem" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" -dependencies = [ - "cfg-if", - "hashbrown 0.12.3", - "impl-trait-for-tuples", - "parity-util-mem-derive", - "parking_lot", - "primitive-types", - "winapi", -] - -[[package]] -name = "parity-util-mem-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" -dependencies = [ - "proc-macro2", - "syn 1.0.109", - "synstructure", -] - [[package]] name = "parity-wasm" version = "0.45.0" @@ -2065,21 +2014,12 @@ dependencies = [ "parity-scale-codec", "primitives", "rand 0.8.5", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "sp-keyring", "subxt", "tokio", ] -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - [[package]] name = "pbkdf2" version = "0.8.0" @@ -2106,29 +2046,29 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pin-project" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "030ad2bc4db10a8944cb0d837f158bdfec4d4a4873ab701a95046770d11f8842" +checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec2e072ecce94ec471b13398d5402c188e76ac03cf74dd1a975161b23a3f6d9c" +checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "pin-project-lite" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c40d25201921e5ff0c862a505c6557ea88568a4e3ace775ab55e93f2f4f9d57" +checksum = "2c516611246607d0c04186886dbb3a754368ef82c79e9827a802c6d836dd111c" [[package]] name = "pin-utils" @@ -2163,11 +2103,11 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2224,9 +2164,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.31" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fe8a65d69dd0808184ebb5f836ab526bb259db23c657efa38711b1072ee47f0" +checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" dependencies = [ "proc-macro2", ] @@ -2248,7 +2188,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc", - "rand_pcg", ] [[package]] @@ -2309,15 +2248,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "redox_syscall" version = "0.3.5" @@ -2329,33 +2259,33 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1641819477c319ef452a075ac34a4be92eb9ba09f6841f62d594d50fdcf0bf6b" +checksum = "61ef7e18e8841942ddb1cf845054f8008410030a3997875d9e49b7a363063df1" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68bf53dad9b6086826722cdc99140793afd9f62faa14a1ad07eb4f955e7a7216" +checksum = "2dfaf0c85b766276c797f3791f5bc6d5bd116b41d53049af2789666b0c0bc9fa" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "regex" -version = "1.9.1" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2eae68fc220f7cf2532e4494aded17545fce192d59cd996e0fe7887f4ceb575" +checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.3.3", + "regex-automata 0.3.6", "regex-syntax 0.7.4", ] @@ -2370,9 +2300,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.3.3" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39354c10dd07468c2e73926b23bb9c2caca74c5501e38a35da70406f1d923310" +checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69" dependencies = [ "aho-corasick", "memchr", @@ -2514,18 +2444,6 @@ dependencies = [ "serde", ] -[[package]] -name = "scale-decode" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d823d4be477fc33321f93d08fb6c2698273d044f01362dc27573a750deb7c233" -dependencies = [ - "parity-scale-codec", - "scale-bits", - "scale-info", - "thiserror", -] - [[package]] name = "scale-decode" version = "0.5.0" @@ -2533,6 +2451,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e5527e4b3bf079d4c0b2f253418598c380722ba37ef20fac9088081407f2b6" dependencies = [ "parity-scale-codec", + "primitive-types", "scale-bits", "scale-decode-derive", "scale-info", @@ -2559,6 +2478,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15546e5efbb45f0fc2291f7e202dee8623274c5d8bbfdf9c6886cc8b44a7ced3" dependencies = [ "parity-scale-codec", + "primitive-types", + "scale-bits", "scale-encode-derive", "scale-info", "thiserror", @@ -2605,15 +2526,16 @@ dependencies = [ [[package]] name = "scale-value" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a5e7810815bd295da73e4216d1dfbced3c7c7c7054d70fa5f6e4c58123fff4" +checksum = "11f549769261561e6764218f847e500588f9a79a289de49ce92f9e26642a3574" dependencies = [ "either", "frame-metadata", "parity-scale-codec", "scale-bits", - "scale-decode 0.4.0", + "scale-decode", + "scale-encode", "scale-info", "serde", "thiserror", @@ -2730,9 +2652,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.1" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ "bitflags", "core-foundation", @@ -2743,9 +2665,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f51d0c0d83bec45f16480d0ce0058397a69e48fcdc52d1dc8855fb68acbd31a7" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", @@ -2762,29 +2684,29 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.171" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30e27d1e4fd7659406c492fd6cfaf2066ba8773de45ca75e855590f856dc34a9" +checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.171" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "389894603bd18c46fa56231694f8d827779c0951a667087194cf9de94ed24682" +checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "serde_json" -version = "1.0.103" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d03b412469450d4404fe8499a268edd7f8b79fecb074b0d812ad64ca21f4031b" +checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c" dependencies = [ "itoa", "ryu", @@ -2919,17 +2841,17 @@ name = "sp-api" version = "4.0.0-dev" source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "scale-info", "sp-api-proc-macro", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "sp-metadata-ir", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "sp-version", "thiserror", ] @@ -2945,116 +2867,114 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a70f8245ad75c773c43e46d16e81adb62290d37cd07efcde6cef06d93235e5" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf23435a4bbd6eeec2bbbc346719ba4f3200e0ddb5f9e9f06c1724db03a8410" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3856b3e912f0a7a1332f1642b5fd3c2e76476e894c656538d32c004698690157" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "static_assertions", ] [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3d3507a803e8bc332fa290ed3015a7b51d4436ce2b836744642fc412040456" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "static_assertions", ] [[package]] name = "sp-core" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88c78530907dbf7949af928d0ce88b485067389201b6d9b468074b1924f209f0" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "array-bytes", - "base58", "bitflags", "blake2", - "byteorder", + "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.15.2", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", "libsecp256k1", "log", "merlin", - "num-traits", "parity-scale-codec", "parking_lot", + "paste", "primitive-types", - "rand 0.7.3", + "rand 0.8.5", "regex", "scale-info", "schnorrkel", "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 5.0.0", + "sp-debug-derive 5.0.0", + "sp-externalities 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 0.8.2", - "wasmi", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7789372146f8ad40d0b40fad0596cb1db5771187a258eabe19b06f00767fcbd6" dependencies = [ "array-bytes", "bitflags", @@ -3064,7 +2984,7 @@ dependencies = [ "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.16.0", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", @@ -3073,7 +2993,6 @@ dependencies = [ "merlin", "parity-scale-codec", "parking_lot", - "paste", "primitive-types", "rand 0.8.5", "regex", @@ -3082,45 +3001,45 @@ dependencies = [ "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 8.0.0", + "sp-debug-derive 7.0.0", + "sp-externalities 0.18.0", + "sp-runtime-interface 16.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 1.0.0", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b9d1daa6aebfc144729b630885e91df92ff00560490ec065a56cb538e8895a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "blake2", + "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27449abdfbe41b473e625bce8113745e81d65777dd1d5a8462cf24137930dad8" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "twox-hash", ] @@ -3131,85 +3050,85 @@ source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=alep dependencies = [ "proc-macro2", "quote", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "syn 2.0.26", + "sp-core-hashing 5.0.0", + "syn 2.0.28", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9ba7352773b96a4aa57e903447f841c6bc26e8c798377db6e7eb332346454" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62211eed9ef9dac4b9d837c56ccc9f8ee4fc49d9d9b7e6b9daf098fe173389ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef739442230f49d88ece41259e5d886d6b8bc0f4197ef7f1585c39c762ce7ef2" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", + "sp-storage 7.0.0", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae0f275760689aaefe967943331d458cd99f5169d18364365d4cb584b246d1c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", + "sp-storage 12.0.0", ] [[package]] name = "sp-io" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6280bd3643354f7ff0b2abd36c687745455779231a7a86d90945608f0d4924c4" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", + "ed25519", + "ed25519-dalek", "futures", - "hash-db 0.15.2", "libsecp256k1", "log", "parity-scale-codec", - "parking_lot", + "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-keystore 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-state-machine 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-keystore 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-trie 7.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd3431c245992fe51b8256c838fc2e981f8d3b0afc1d1377ca7dbe0a3287a764" dependencies = [ "bytes", "ed25519", @@ -3220,14 +3139,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-keystore 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-keystore 0.26.0", + "sp-runtime-interface 16.0.0", + "sp-state-machine 0.27.0", + "sp-std 7.0.0", + "sp-tracing 9.0.0", + "sp-trie 21.0.0", "tracing", "tracing-core", ] @@ -3238,38 +3157,37 @@ version = "7.0.0" source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "lazy_static", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "strum", ] [[package]] name = "sp-keystore" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44bec4f0d036b6993c14bbee4216781f21275e5c201e43e45fed4a434bf0e5a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "async-trait", "futures", - "merlin", "parity-scale-codec", "parking_lot", - "schnorrkel", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", "thiserror", ] [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "452d079f592c97369c9ca8a5083b25f146751c6b5af10cbcacc2b24dc53fd72a" dependencies = [ "futures", + "merlin", "parity-scale-codec", "parking_lot", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "schnorrkel", + "sp-core 20.0.0", + "sp-externalities 0.18.0", "thiserror", ] @@ -3281,14 +3199,13 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97549ec99cb289db2a9f5c656b6880f7c90097135e1ca6c6ae4fe5694232e526" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "backtrace", "lazy_static", @@ -3297,8 +3214,9 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75986cc917d897e0f6d0c848088064df4c74ccbb8f1c1848700b725f5ca7fe04" dependencies = [ "backtrace", "lazy_static", @@ -3308,31 +3226,30 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0edfc5c54c2b31d2f0cf904d472a0bff7125c0c2a2e2330507842e56f9a27444" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", "parity-scale-codec", - "parity-util-mem", "paste", - "rand 0.7.3", + "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-weights 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-application-crypto 7.0.0", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6220216caa67e3d931c693b06a3590dfcaa255f19bb3c3e3150f1672b8bc53f6" dependencies = [ "either", "hash256-std-hasher", @@ -3343,74 +3260,74 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 22.0.0", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", + "sp-weights 19.0.0", ] [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b886a5d34400b0e0c12d389e3bb48b7a93d651cddf7e248124b81fe64c339251" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface-proc-macro 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.13.0", + "sp-runtime-interface-proc-macro 6.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", + "sp-tracing 6.0.0", + "sp-wasm-interface 7.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5d0cd80200bf85b8b064238b2508b69b6146b13adf36066ec5d924825af737" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface-proc-macro 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-wasm-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-externalities 0.18.0", + "sp-runtime-interface-proc-macro 10.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", + "sp-tracing 9.0.0", + "sp-wasm-interface 13.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a157f1ce0108b9b87f87e826726049d9b6253318b74410c814be7fc2af416b51" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ae5b00aef477127ddb6177b3464ad1e2bdcc12ee913fc5dfc9d065c6cea89b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] @@ -3421,50 +3338,48 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-state-machine" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5c2d97ad69011d34ca257f0383532b80096d53f889f5894ae2b24a211bec66f" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.15.2", + "hash-db", "log", - "num-traits", "parity-scale-codec", "parking_lot", - "rand 0.7.3", + "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-panic-handler 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-panic-handler 5.0.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "thiserror", "tracing", - "trie-root 0.17.0", ] [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e49c3bfcc8c832c34552cd8194180cc60508c6d3d9b0b9615d6b7c3e275019" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "parking_lot", "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-panic-handler 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-panic-handler 7.0.0", + "sp-std 7.0.0", + "sp-trie 21.0.0", "thiserror", "tracing", ] @@ -3472,49 +3387,48 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3fd4c1d304be101e6ebbafd3d4be9a37b320c970ef4e8df188b16873981c93" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de8eef39962b5b97478719c493bed2926cf70cb621005bbf68ebe58252ff986" [[package]] name = "sp-storage" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb987ed2e4d7d870170a225083ea962f2a359d75cdf76935d5ed8d91bee912d9" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ad1f8c52d4700ac7bc42b3375679a6c6fc1fe876f4b40c6efdf36f933ef0291" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-tracing" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e761df87dc940d87720939de8f976d1fc0657e523886ae0d7bf3f7e2e2f0abb6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3522,11 +3436,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00fab60bf3d42255ce3f678903d3a2564662371c75623de4a1ffc7cac46143df" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3535,48 +3450,48 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4f48c887e90050537e399d2d8b6ee82787ebec0fe46e4880b42cab0c2d5ba6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "ahash 0.7.6", - "hash-db 0.15.2", - "hashbrown 0.12.3", + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", "lazy_static", - "lru", - "memory-db 0.30.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "schnellru", + "sp-core 7.0.0", + "sp-std 5.0.0", "thiserror", "tracing", - "trie-db 0.24.0", - "trie-root 0.17.0", + "trie-db", + "trie-root", ] [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58401c53c08b6ecad83acd7e14534c8bbcb3fa73e81e26685e0ac70e51b00c56" dependencies = [ "ahash 0.8.3", - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "lazy_static", - "memory-db 0.32.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", "schnellru", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-std 7.0.0", "thiserror", "tracing", - "trie-db 0.27.1", - "trie-root 0.18.0", + "trie-db", + "trie-root", ] [[package]] @@ -3590,8 +3505,8 @@ dependencies = [ "scale-info", "serde", "sp-core-hashing-proc-macro", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version-proc-macro", "thiserror", ] @@ -3604,32 +3519,34 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f43c40afab6ecac20505907631c929957ed636b7af8795984649bbaa6ff38c3" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ + "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "wasmi", + "wasmtime", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "153b7374179439e2aa783c66ed439bd86920c67bbc95d34c76390561972bc02f" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "wasmi", "wasmtime", ] @@ -3637,33 +3554,32 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c671673133b30e6ab6d88139b06adcdaec5aa06548abe0e155a0c830b592793b" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123c661915e1bf328e21f8ecbe4e5247feba86f9149b782ea4348004547ce8ef" dependencies = [ "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -3748,26 +3664,33 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "subxt" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3cbc78fd36035a24883eada29e0205b9b1416172530a7d00a60c07d0337db0c" +checksum = "53b9c4ddefcb2d87eb18a6336f65635c29208f766d0deefaa2a1a19f7426a993" dependencies = [ - "bitvec", + "base58", + "blake2", "derivative", + "either", "frame-metadata", "futures", "getrandom 0.2.10", "hex", + "impl-serde", "jsonrpsee", "parity-scale-codec", "parking_lot", - "scale-decode 0.4.0", + "primitive-types", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "scale-value", "serde", "serde_json", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 20.0.0", + "sp-core-hashing 8.0.0", + "sp-runtime 23.0.0", "subxt-macro", "subxt-metadata", "thiserror", @@ -3776,9 +3699,9 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7722c31febf55eb300c73d977da5d65cfd6fb443419b1185b9abcdd9925fd7be" +checksum = "e924f41069e9273236398ff89662d6d336468a5d94faac812129d44547db0e7f" dependencies = [ "darling", "frame-metadata", @@ -3786,20 +3709,20 @@ dependencies = [ "hex", "jsonrpsee", "parity-scale-codec", - "proc-macro-error", "proc-macro2", "quote", "scale-info", "subxt-metadata", "syn 1.0.109", + "thiserror", "tokio", ] [[package]] name = "subxt-macro" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f64826f2c4ba20e3b2a86ec81a6ae8655ca6b6a4c2a6ccc888b6615efc2df14" +checksum = "ced0b043a069ee039f8700d3dfda01be156e4229c82277c305bc8e79a7dd855d" dependencies = [ "darling", "proc-macro-error", @@ -3809,14 +3732,14 @@ dependencies = [ [[package]] name = "subxt-metadata" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869af75e23513538ad0af046af4a97b8d684e8d202e35ff4127ee061c1110813" +checksum = "18be3b8f4308fe7369ee1df66ae59c2eca79de20eab57b0f41c75736e843300f" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 8.0.0", ] [[package]] @@ -3832,27 +3755,15 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.26" +version = "2.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45c3457aacde3c65315de5031ec191ce46604304d2446e803d71ade03308d970" +checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "tap" version = "1.0.1" @@ -3861,9 +3772,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.9" +version = "0.12.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df8e77cb757a61f51b947ec4a7e3646efd825b73561db1c232a8ccb639e611a0" +checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a" [[package]] name = "termcolor" @@ -3882,22 +3793,22 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.43" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a35fc5b8971143ca348fa6df4f024d4d55264f3468c71ad1c2f365b0a4d58c42" +checksum = "611040a08a0439f8248d1990b111c95baa9c704c805fa1f62104b39655fd7f90" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.43" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "463fe12d7993d3b327787537ce8dd4dfa058de32fc2b195ef3cde03dc4771e8f" +checksum = "090198534930841fab3a5d1bb637cde49e339654e606195f8d9c76eeb081dc96" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -3910,25 +3821,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-bip39" version = "1.0.0" @@ -3991,7 +3883,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -4063,7 +3955,7 @@ checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] [[package]] @@ -4119,48 +4011,26 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "trie-db" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "log", - "rustc-hex", - "smallvec", -] - [[package]] name = "trie-db" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", ] -[[package]] -name = "trie-root" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" -dependencies = [ - "hash-db 0.15.2", -] - [[package]] name = "trie-root" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -4298,7 +4168,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", "wasm-bindgen-shared", ] @@ -4320,7 +4190,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -4724,9 +4594,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.5.0" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fac9742fd1ad1bd9643b991319f72dd031016d44b77039a26977eb667141e7" +checksum = "acaaa1190073b2b101e15083c38ee8ec891b5e05cbee516521e94ec008f61e64" dependencies = [ "memchr", ] @@ -4748,9 +4618,9 @@ checksum = "735a71d46c4d68d71d4b24d03fdc2b98e38cea81730595801db779c04fe80d70" [[package]] name = "yap" -version = "0.7.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc77f52dc9e9b10d55d3f4462c3b7fc393c4f17975d641542833ab2d3bc26ef" +checksum = "e2a7eb6d82a11e4d0b8e6bda8347169aff4ccd8235d039bba7c47482d977dcf7" [[package]] name = "zeroize" @@ -4769,5 +4639,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 2.0.28", ] diff --git a/benches/payout-stakers/Cargo.toml b/benches/payout-stakers/Cargo.toml index 528d3905d8..f200b52fcf 100644 --- a/benches/payout-stakers/Cargo.toml +++ b/benches/payout-stakers/Cargo.toml @@ -17,7 +17,7 @@ rand = "0.8.5" sp-core = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.42", features = ["full_crypto"] } sp-keyring = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.42" } -subxt = "0.25.0" +subxt = "0.28.0" tokio = { version = "1.21.2", features = ["full"] } aleph_client = { path = "../../aleph-client" } diff --git a/bin/cliain/Cargo.lock b/bin/cliain/Cargo.lock index 65068ff4f8..b6a3d6eabc 100644 --- a/bin/cliain/Cargo.lock +++ b/bin/cliain/Cargo.lock @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.4.2" +version = "3.5.0" dependencies = [ "anyhow", "async-trait", @@ -741,7 +741,7 @@ dependencies = [ [[package]] name = "cliain" -version = "0.12.0" +version = "0.12.1" dependencies = [ "aleph_client", "anyhow", @@ -759,7 +759,7 @@ dependencies = [ "primitives", "serde", "serde_json", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "subxt", "tokio", ] @@ -1336,13 +1336,13 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "static_assertions", ] @@ -1367,11 +1367,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", "sp-npos-elections", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] @@ -1405,17 +1405,17 @@ dependencies = [ "serde", "smallvec", "sp-api", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", "sp-core-hashing-proc-macro", "sp-inherents", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-io 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-weights 4.0.0", "tt-call", ] @@ -1467,12 +1467,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-weights 4.0.0", ] [[package]] @@ -1610,10 +1610,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -1675,12 +1673,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - [[package]] name = "hash-db" version = "0.16.0" @@ -2054,7 +2046,7 @@ dependencies = [ "derive_more", "ink_prelude", "parity-scale-codec", - "scale-decode 0.5.0", + "scale-decode", "scale-encode", "scale-info", "xxhash-rust", @@ -2443,15 +2435,6 @@ version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" -[[package]] -name = "lru" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" -dependencies = [ - "hashbrown 0.12.3", -] - [[package]] name = "mach" version = "0.3.2" @@ -2504,24 +2487,13 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memory-db" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "parity-util-mem", -] - [[package]] name = "memory-db" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -2756,8 +2728,8 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] @@ -2768,9 +2740,9 @@ dependencies = [ "bitflags", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] @@ -2785,13 +2757,13 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", "sp-session", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", + "sp-trie 7.0.0", ] [[package]] @@ -2809,11 +2781,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2828,9 +2800,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-inherents", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-io 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-timestamp", ] @@ -2861,32 +2833,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parity-util-mem" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" -dependencies = [ - "cfg-if", - "hashbrown 0.12.3", - "impl-trait-for-tuples", - "parity-util-mem-derive", - "parking_lot", - "primitive-types", - "winapi", -] - -[[package]] -name = "parity-util-mem-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" -dependencies = [ - "proc-macro2", - "syn 1.0.109", - "synstructure", -] - [[package]] name = "parity-wasm" version = "0.45.0" @@ -2922,15 +2868,6 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - [[package]] name = "pbkdf2" version = "0.8.0" @@ -3034,11 +2971,11 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -3130,7 +3067,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc", - "rand_pcg", ] [[package]] @@ -3191,15 +3127,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "rawpointer" version = "0.2.1" @@ -3430,18 +3357,6 @@ dependencies = [ "serde", ] -[[package]] -name = "scale-decode" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d823d4be477fc33321f93d08fb6c2698273d044f01362dc27573a750deb7c233" -dependencies = [ - "parity-scale-codec", - "scale-bits", - "scale-info", - "thiserror", -] - [[package]] name = "scale-decode" version = "0.5.0" @@ -3449,6 +3364,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e5527e4b3bf079d4c0b2f253418598c380722ba37ef20fac9088081407f2b6" dependencies = [ "parity-scale-codec", + "primitive-types", "scale-bits", "scale-decode-derive", "scale-info", @@ -3475,6 +3391,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15546e5efbb45f0fc2291f7e202dee8623274c5d8bbfdf9c6886cc8b44a7ced3" dependencies = [ "parity-scale-codec", + "primitive-types", + "scale-bits", "scale-encode-derive", "scale-info", "thiserror", @@ -3521,15 +3439,16 @@ dependencies = [ [[package]] name = "scale-value" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a5e7810815bd295da73e4216d1dfbced3c7c7c7054d70fa5f6e4c58123fff4" +checksum = "11f549769261561e6764218f847e500588f9a79a289de49ce92f9e26642a3574" dependencies = [ "either", "frame-metadata", "parity-scale-codec", "scale-bits", - "scale-decode 0.4.0", + "scale-decode", + "scale-encode", "scale-info", "serde", "thiserror", @@ -3896,17 +3815,17 @@ name = "sp-api" version = "4.0.0-dev" source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "scale-info", "sp-api-proc-macro", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "sp-metadata-ir", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "sp-version", "thiserror", ] @@ -3928,110 +3847,108 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a70f8245ad75c773c43e46d16e81adb62290d37cd07efcde6cef06d93235e5" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf23435a4bbd6eeec2bbbc346719ba4f3200e0ddb5f9e9f06c1724db03a8410" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3856b3e912f0a7a1332f1642b5fd3c2e76476e894c656538d32c004698690157" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "static_assertions", ] [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3d3507a803e8bc332fa290ed3015a7b51d4436ce2b836744642fc412040456" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "static_assertions", ] [[package]] name = "sp-core" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88c78530907dbf7949af928d0ce88b485067389201b6d9b468074b1924f209f0" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "array-bytes", - "base58", "bitflags", "blake2 0.10.6", - "byteorder", + "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.15.2", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", "libsecp256k1", "log", "merlin", - "num-traits", "parity-scale-codec", "parking_lot", + "paste", "primitive-types", - "rand 0.7.3", + "rand 0.8.5", "regex", "scale-info", "schnorrkel", "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 5.0.0", + "sp-debug-derive 5.0.0", + "sp-externalities 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 0.8.2", - "wasmi", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7789372146f8ad40d0b40fad0596cb1db5771187a258eabe19b06f00767fcbd6" dependencies = [ "array-bytes", "bitflags", @@ -4041,7 +3958,7 @@ dependencies = [ "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.16.0", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", @@ -4050,7 +3967,6 @@ dependencies = [ "merlin", "parity-scale-codec", "parking_lot", - "paste", "primitive-types", "rand 0.8.5", "regex", @@ -4059,45 +3975,45 @@ dependencies = [ "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 8.0.0", + "sp-debug-derive 7.0.0", + "sp-externalities 0.18.0", + "sp-runtime-interface 16.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 1.0.0", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b9d1daa6aebfc144729b630885e91df92ff00560490ec065a56cb538e8895a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "blake2 0.10.6", + "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27449abdfbe41b473e625bce8113745e81d65777dd1d5a8462cf24137930dad8" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "twox-hash", ] @@ -4108,52 +4024,52 @@ source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=alep dependencies = [ "proc-macro2", "quote", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 5.0.0", "syn 2.0.26", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9ba7352773b96a4aa57e903447f841c6bc26e8c798377db6e7eb332346454" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62211eed9ef9dac4b9d837c56ccc9f8ee4fc49d9d9b7e6b9daf098fe173389ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef739442230f49d88ece41259e5d886d6b8bc0f4197ef7f1585c39c762ce7ef2" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", + "sp-storage 7.0.0", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae0f275760689aaefe967943331d458cd99f5169d18364365d4cb584b246d1c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", + "sp-storage 12.0.0", ] [[package]] @@ -4165,43 +4081,43 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "thiserror", ] [[package]] name = "sp-io" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6280bd3643354f7ff0b2abd36c687745455779231a7a86d90945608f0d4924c4" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", + "ed25519", + "ed25519-dalek", "futures", - "hash-db 0.15.2", "libsecp256k1", "log", "parity-scale-codec", - "parking_lot", + "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-keystore 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-state-machine 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-keystore 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-trie 7.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd3431c245992fe51b8256c838fc2e981f8d3b0afc1d1377ca7dbe0a3287a764" dependencies = [ "bytes", "ed25519", @@ -4212,14 +4128,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-keystore 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-keystore 0.26.0", + "sp-runtime-interface 16.0.0", + "sp-state-machine 0.27.0", + "sp-std 7.0.0", + "sp-tracing 9.0.0", + "sp-trie 21.0.0", "tracing", "tracing-core", ] @@ -4227,30 +4143,29 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44bec4f0d036b6993c14bbee4216781f21275e5c201e43e45fed4a434bf0e5a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "async-trait", "futures", - "merlin", "parity-scale-codec", "parking_lot", - "schnorrkel", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", "thiserror", ] [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "452d079f592c97369c9ca8a5083b25f146751c6b5af10cbcacc2b24dc53fd72a" dependencies = [ "futures", + "merlin", "parity-scale-codec", "parking_lot", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "schnorrkel", + "sp-core 20.0.0", + "sp-externalities 0.18.0", "thiserror", ] @@ -4262,7 +4177,7 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -4273,17 +4188,16 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97549ec99cb289db2a9f5c656b6880f7c90097135e1ca6c6ae4fe5694232e526" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "backtrace", "lazy_static", @@ -4292,8 +4206,9 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75986cc917d897e0f6d0c848088064df4c74ccbb8f1c1848700b725f5ca7fe04" dependencies = [ "backtrace", "lazy_static", @@ -4303,31 +4218,30 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0edfc5c54c2b31d2f0cf904d472a0bff7125c0c2a2e2330507842e56f9a27444" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", "parity-scale-codec", - "parity-util-mem", "paste", - "rand 0.7.3", + "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-weights 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-application-crypto 7.0.0", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6220216caa67e3d931c693b06a3590dfcaa255f19bb3c3e3150f1672b8bc53f6" dependencies = [ "either", "hash256-std-hasher", @@ -4338,74 +4252,74 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 22.0.0", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", + "sp-weights 19.0.0", ] [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b886a5d34400b0e0c12d389e3bb48b7a93d651cddf7e248124b81fe64c339251" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface-proc-macro 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.13.0", + "sp-runtime-interface-proc-macro 6.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", + "sp-tracing 6.0.0", + "sp-wasm-interface 7.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5d0cd80200bf85b8b064238b2508b69b6146b13adf36066ec5d924825af737" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface-proc-macro 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-wasm-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-externalities 0.18.0", + "sp-runtime-interface-proc-macro 10.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", + "sp-tracing 9.0.0", + "sp-wasm-interface 13.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a157f1ce0108b9b87f87e826726049d9b6253318b74410c814be7fc2af416b51" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ae5b00aef477127ddb6177b3464ad1e2bdcc12ee913fc5dfc9d065c6cea89b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] @@ -4416,10 +4330,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-api", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -4430,50 +4344,48 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-state-machine" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5c2d97ad69011d34ca257f0383532b80096d53f889f5894ae2b24a211bec66f" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.15.2", + "hash-db", "log", - "num-traits", "parity-scale-codec", "parking_lot", - "rand 0.7.3", + "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-panic-handler 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-panic-handler 5.0.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "thiserror", "tracing", - "trie-root 0.17.0", ] [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e49c3bfcc8c832c34552cd8194180cc60508c6d3d9b0b9615d6b7c3e275019" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "parking_lot", "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-panic-handler 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-panic-handler 7.0.0", + "sp-std 7.0.0", + "sp-trie 21.0.0", "thiserror", "tracing", ] @@ -4481,39 +4393,39 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3fd4c1d304be101e6ebbafd3d4be9a37b320c970ef4e8df188b16873981c93" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de8eef39962b5b97478719c493bed2926cf70cb621005bbf68ebe58252ff986" [[package]] name = "sp-storage" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb987ed2e4d7d870170a225083ea962f2a359d75cdf76935d5ed8d91bee912d9" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ad1f8c52d4700ac7bc42b3375679a6c6fc1fe876f4b40c6efdf36f933ef0291" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -4526,19 +4438,18 @@ dependencies = [ "log", "parity-scale-codec", "sp-inherents", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "thiserror", ] [[package]] name = "sp-tracing" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e761df87dc940d87720939de8f976d1fc0657e523886ae0d7bf3f7e2e2f0abb6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -4546,11 +4457,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00fab60bf3d42255ce3f678903d3a2564662371c75623de4a1ffc7cac46143df" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -4559,48 +4471,48 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4f48c887e90050537e399d2d8b6ee82787ebec0fe46e4880b42cab0c2d5ba6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "ahash 0.7.6", - "hash-db 0.15.2", - "hashbrown 0.12.3", + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", "lazy_static", - "lru", - "memory-db 0.30.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "schnellru", + "sp-core 7.0.0", + "sp-std 5.0.0", "thiserror", "tracing", - "trie-db 0.24.0", - "trie-root 0.17.0", + "trie-db", + "trie-root", ] [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58401c53c08b6ecad83acd7e14534c8bbcb3fa73e81e26685e0ac70e51b00c56" dependencies = [ "ahash 0.8.3", - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "lazy_static", - "memory-db 0.32.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", "schnellru", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-std 7.0.0", "thiserror", "tracing", - "trie-db 0.27.1", - "trie-root 0.18.0", + "trie-db", + "trie-root", ] [[package]] @@ -4614,8 +4526,8 @@ dependencies = [ "scale-info", "serde", "sp-core-hashing-proc-macro", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version-proc-macro", "thiserror", ] @@ -4634,26 +4546,28 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f43c40afab6ecac20505907631c929957ed636b7af8795984649bbaa6ff38c3" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ + "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "wasmi", + "wasmtime", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "153b7374179439e2aa783c66ed439bd86920c67bbc95d34c76390561972bc02f" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "wasmi", "wasmtime", ] @@ -4661,33 +4575,32 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c671673133b30e6ab6d88139b06adcdaec5aa06548abe0e155a0c830b592793b" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123c661915e1bf328e21f8ecbe4e5247feba86f9149b782ea4348004547ce8ef" dependencies = [ "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -4760,26 +4673,33 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "subxt" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3cbc78fd36035a24883eada29e0205b9b1416172530a7d00a60c07d0337db0c" +checksum = "53b9c4ddefcb2d87eb18a6336f65635c29208f766d0deefaa2a1a19f7426a993" dependencies = [ - "bitvec", + "base58", + "blake2 0.10.6", "derivative", + "either", "frame-metadata", "futures", "getrandom 0.2.10", "hex", + "impl-serde", "jsonrpsee", "parity-scale-codec", "parking_lot", - "scale-decode 0.4.0", + "primitive-types", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "scale-value", "serde", "serde_json", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 20.0.0", + "sp-core-hashing 8.0.0", + "sp-runtime 23.0.0", "subxt-macro", "subxt-metadata", "thiserror", @@ -4788,9 +4708,9 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7722c31febf55eb300c73d977da5d65cfd6fb443419b1185b9abcdd9925fd7be" +checksum = "e924f41069e9273236398ff89662d6d336468a5d94faac812129d44547db0e7f" dependencies = [ "darling", "frame-metadata", @@ -4798,20 +4718,20 @@ dependencies = [ "hex", "jsonrpsee", "parity-scale-codec", - "proc-macro-error", "proc-macro2", "quote", "scale-info", "subxt-metadata", "syn 1.0.109", + "thiserror", "tokio", ] [[package]] name = "subxt-macro" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f64826f2c4ba20e3b2a86ec81a6ae8655ca6b6a4c2a6ccc888b6615efc2df14" +checksum = "ced0b043a069ee039f8700d3dfda01be156e4229c82277c305bc8e79a7dd855d" dependencies = [ "darling", "proc-macro-error", @@ -4821,14 +4741,14 @@ dependencies = [ [[package]] name = "subxt-metadata" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869af75e23513538ad0af046af4a97b8d684e8d202e35ff4127ee061c1110813" +checksum = "18be3b8f4308fe7369ee1df66ae59c2eca79de20eab57b0f41c75736e843300f" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 8.0.0", ] [[package]] @@ -4853,18 +4773,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "tap" version = "1.0.1" @@ -4936,25 +4844,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-bip39" version = "1.0.0" @@ -5145,48 +5034,26 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "trie-db" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "log", - "rustc-hex", - "smallvec", -] - [[package]] name = "trie-db" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", ] -[[package]] -name = "trie-root" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" -dependencies = [ - "hash-db 0.15.2", -] - [[package]] name = "trie-root" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -5802,9 +5669,9 @@ checksum = "735a71d46c4d68d71d4b24d03fdc2b98e38cea81730595801db779c04fe80d70" [[package]] name = "yap" -version = "0.7.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc77f52dc9e9b10d55d3f4462c3b7fc393c4f17975d641542833ab2d3bc26ef" +checksum = "e2a7eb6d82a11e4d0b8e6bda8347169aff4ccd8235d039bba7c47482d977dcf7" [[package]] name = "zeroize" diff --git a/bin/cliain/Cargo.toml b/bin/cliain/Cargo.toml index 33b07daf35..c2cad88dc4 100644 --- a/bin/cliain/Cargo.toml +++ b/bin/cliain/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cliain" -version = "0.12.0" +version = "0.12.1" edition = "2021" license = "GPL-3.0-or-later" @@ -18,7 +18,7 @@ liminal-ark-relations = { version = "0.4.0", optional = true } log = "0.4" serde = { version = "1.0.137", features = ["derive"] } serde_json = "1.0.81" -subxt = "0.25.0" +subxt = "0.28.0" tokio = { version = "1.21.2", features = ["full"] } pallet-staking = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.42" } diff --git a/bin/cliain/src/contracts.rs b/bin/cliain/src/contracts.rs index 6d2d0d189f..3e4917b35c 100644 --- a/bin/cliain/src/contracts.rs +++ b/bin/cliain/src/contracts.rs @@ -201,7 +201,7 @@ pub async fn instantiate_with_code( let contract_instantiated_event = event_handler_1.await?; Ok(InstantiateWithCodeReturnValue { - contract: contract_instantiated_event.contract, + contract: contract_instantiated_event.contract.0, code_hash: code_stored_event.code_hash, }) } diff --git a/bin/finalizer/Cargo.lock b/bin/finalizer/Cargo.lock index 2821dbe43c..2ddaf8076f 100644 --- a/bin/finalizer/Cargo.lock +++ b/bin/finalizer/Cargo.lock @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.4.2" +version = "3.5.0" dependencies = [ "anyhow", "async-trait", @@ -863,7 +863,7 @@ dependencies = [ [[package]] name = "finalizer" -version = "0.0.1" +version = "0.0.2" dependencies = [ "aleph_client", "anyhow", @@ -1048,10 +1048,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -1102,12 +1100,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - [[package]] name = "hash-db" version = "0.16.0" @@ -1466,7 +1458,7 @@ dependencies = [ "derive_more", "ink_prelude", "parity-scale-codec", - "scale-decode 0.5.0", + "scale-decode", "scale-encode", "scale-info", "xxhash-rust", @@ -1737,15 +1729,6 @@ version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" -[[package]] -name = "lru" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" -dependencies = [ - "hashbrown 0.12.3", -] - [[package]] name = "mach" version = "0.3.2" @@ -1788,24 +1771,13 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memory-db" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "parity-util-mem", -] - [[package]] name = "memory-db" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -2002,9 +1974,9 @@ dependencies = [ "bitflags", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] @@ -2034,32 +2006,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parity-util-mem" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" -dependencies = [ - "cfg-if", - "hashbrown 0.12.3", - "impl-trait-for-tuples", - "parity-util-mem-derive", - "parking_lot", - "primitive-types", - "winapi", -] - -[[package]] -name = "parity-util-mem-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" -dependencies = [ - "proc-macro2", - "syn 1.0.109", - "synstructure", -] - [[package]] name = "parity-wasm" version = "0.45.0" @@ -2095,15 +2041,6 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - [[package]] name = "pbkdf2" version = "0.8.0" @@ -2187,11 +2124,11 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2272,7 +2209,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc", - "rand_pcg", ] [[package]] @@ -2333,15 +2269,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "redox_syscall" version = "0.3.5" @@ -2538,18 +2465,6 @@ dependencies = [ "serde", ] -[[package]] -name = "scale-decode" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d823d4be477fc33321f93d08fb6c2698273d044f01362dc27573a750deb7c233" -dependencies = [ - "parity-scale-codec", - "scale-bits", - "scale-info", - "thiserror", -] - [[package]] name = "scale-decode" version = "0.5.0" @@ -2557,6 +2472,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e5527e4b3bf079d4c0b2f253418598c380722ba37ef20fac9088081407f2b6" dependencies = [ "parity-scale-codec", + "primitive-types", "scale-bits", "scale-decode-derive", "scale-info", @@ -2583,6 +2499,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15546e5efbb45f0fc2291f7e202dee8623274c5d8bbfdf9c6886cc8b44a7ced3" dependencies = [ "parity-scale-codec", + "primitive-types", + "scale-bits", "scale-encode-derive", "scale-info", "thiserror", @@ -2629,15 +2547,16 @@ dependencies = [ [[package]] name = "scale-value" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a5e7810815bd295da73e4216d1dfbced3c7c7c7054d70fa5f6e4c58123fff4" +checksum = "11f549769261561e6764218f847e500588f9a79a289de49ce92f9e26642a3574" dependencies = [ "either", "frame-metadata", "parity-scale-codec", "scale-bits", - "scale-decode 0.4.0", + "scale-decode", + "scale-encode", "scale-info", "serde", "thiserror", @@ -2949,17 +2868,17 @@ name = "sp-api" version = "4.0.0-dev" source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "scale-info", "sp-api-proc-macro", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "sp-metadata-ir", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "sp-version", "thiserror", ] @@ -2981,110 +2900,108 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a70f8245ad75c773c43e46d16e81adb62290d37cd07efcde6cef06d93235e5" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf23435a4bbd6eeec2bbbc346719ba4f3200e0ddb5f9e9f06c1724db03a8410" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3856b3e912f0a7a1332f1642b5fd3c2e76476e894c656538d32c004698690157" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "static_assertions", ] [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3d3507a803e8bc332fa290ed3015a7b51d4436ce2b836744642fc412040456" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "static_assertions", ] [[package]] name = "sp-core" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88c78530907dbf7949af928d0ce88b485067389201b6d9b468074b1924f209f0" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "array-bytes", - "base58", "bitflags", "blake2", - "byteorder", + "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.15.2", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", "libsecp256k1", "log", "merlin", - "num-traits", "parity-scale-codec", "parking_lot", + "paste", "primitive-types", - "rand 0.7.3", + "rand 0.8.5", "regex", "scale-info", "schnorrkel", "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 5.0.0", + "sp-debug-derive 5.0.0", + "sp-externalities 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 0.8.2", - "wasmi", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7789372146f8ad40d0b40fad0596cb1db5771187a258eabe19b06f00767fcbd6" dependencies = [ "array-bytes", "bitflags", @@ -3094,7 +3011,7 @@ dependencies = [ "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.16.0", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", @@ -3103,7 +3020,6 @@ dependencies = [ "merlin", "parity-scale-codec", "parking_lot", - "paste", "primitive-types", "rand 0.8.5", "regex", @@ -3112,45 +3028,45 @@ dependencies = [ "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 8.0.0", + "sp-debug-derive 7.0.0", + "sp-externalities 0.18.0", + "sp-runtime-interface 16.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 1.0.0", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b9d1daa6aebfc144729b630885e91df92ff00560490ec065a56cb538e8895a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "blake2", + "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27449abdfbe41b473e625bce8113745e81d65777dd1d5a8462cf24137930dad8" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "twox-hash", ] @@ -3161,85 +3077,85 @@ source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=alep dependencies = [ "proc-macro2", "quote", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 5.0.0", "syn 2.0.26", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9ba7352773b96a4aa57e903447f841c6bc26e8c798377db6e7eb332346454" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62211eed9ef9dac4b9d837c56ccc9f8ee4fc49d9d9b7e6b9daf098fe173389ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef739442230f49d88ece41259e5d886d6b8bc0f4197ef7f1585c39c762ce7ef2" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", + "sp-storage 7.0.0", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae0f275760689aaefe967943331d458cd99f5169d18364365d4cb584b246d1c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", + "sp-storage 12.0.0", ] [[package]] name = "sp-io" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6280bd3643354f7ff0b2abd36c687745455779231a7a86d90945608f0d4924c4" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", + "ed25519", + "ed25519-dalek", "futures", - "hash-db 0.15.2", "libsecp256k1", "log", "parity-scale-codec", - "parking_lot", + "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-keystore 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-state-machine 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-keystore 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-trie 7.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd3431c245992fe51b8256c838fc2e981f8d3b0afc1d1377ca7dbe0a3287a764" dependencies = [ "bytes", "ed25519", @@ -3250,14 +3166,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-keystore 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-keystore 0.26.0", + "sp-runtime-interface 16.0.0", + "sp-state-machine 0.27.0", + "sp-std 7.0.0", + "sp-tracing 9.0.0", + "sp-trie 21.0.0", "tracing", "tracing-core", ] @@ -3265,30 +3181,29 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44bec4f0d036b6993c14bbee4216781f21275e5c201e43e45fed4a434bf0e5a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "async-trait", "futures", - "merlin", "parity-scale-codec", "parking_lot", - "schnorrkel", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", "thiserror", ] [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "452d079f592c97369c9ca8a5083b25f146751c6b5af10cbcacc2b24dc53fd72a" dependencies = [ "futures", + "merlin", "parity-scale-codec", "parking_lot", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "schnorrkel", + "sp-core 20.0.0", + "sp-externalities 0.18.0", "thiserror", ] @@ -3300,14 +3215,13 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97549ec99cb289db2a9f5c656b6880f7c90097135e1ca6c6ae4fe5694232e526" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "backtrace", "lazy_static", @@ -3316,8 +3230,9 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75986cc917d897e0f6d0c848088064df4c74ccbb8f1c1848700b725f5ca7fe04" dependencies = [ "backtrace", "lazy_static", @@ -3327,31 +3242,30 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0edfc5c54c2b31d2f0cf904d472a0bff7125c0c2a2e2330507842e56f9a27444" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", "parity-scale-codec", - "parity-util-mem", "paste", - "rand 0.7.3", + "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-weights 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-application-crypto 7.0.0", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6220216caa67e3d931c693b06a3590dfcaa255f19bb3c3e3150f1672b8bc53f6" dependencies = [ "either", "hash256-std-hasher", @@ -3362,74 +3276,74 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 22.0.0", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", + "sp-weights 19.0.0", ] [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b886a5d34400b0e0c12d389e3bb48b7a93d651cddf7e248124b81fe64c339251" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface-proc-macro 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.13.0", + "sp-runtime-interface-proc-macro 6.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", + "sp-tracing 6.0.0", + "sp-wasm-interface 7.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5d0cd80200bf85b8b064238b2508b69b6146b13adf36066ec5d924825af737" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface-proc-macro 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-wasm-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-externalities 0.18.0", + "sp-runtime-interface-proc-macro 10.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", + "sp-tracing 9.0.0", + "sp-wasm-interface 13.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a157f1ce0108b9b87f87e826726049d9b6253318b74410c814be7fc2af416b51" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ae5b00aef477127ddb6177b3464ad1e2bdcc12ee913fc5dfc9d065c6cea89b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] @@ -3440,50 +3354,48 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-state-machine" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5c2d97ad69011d34ca257f0383532b80096d53f889f5894ae2b24a211bec66f" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.15.2", + "hash-db", "log", - "num-traits", "parity-scale-codec", "parking_lot", - "rand 0.7.3", + "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-panic-handler 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-panic-handler 5.0.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "thiserror", "tracing", - "trie-root 0.17.0", ] [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e49c3bfcc8c832c34552cd8194180cc60508c6d3d9b0b9615d6b7c3e275019" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "parking_lot", "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-panic-handler 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-panic-handler 7.0.0", + "sp-std 7.0.0", + "sp-trie 21.0.0", "thiserror", "tracing", ] @@ -3491,49 +3403,48 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3fd4c1d304be101e6ebbafd3d4be9a37b320c970ef4e8df188b16873981c93" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de8eef39962b5b97478719c493bed2926cf70cb621005bbf68ebe58252ff986" [[package]] name = "sp-storage" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb987ed2e4d7d870170a225083ea962f2a359d75cdf76935d5ed8d91bee912d9" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ad1f8c52d4700ac7bc42b3375679a6c6fc1fe876f4b40c6efdf36f933ef0291" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-tracing" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e761df87dc940d87720939de8f976d1fc0657e523886ae0d7bf3f7e2e2f0abb6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3541,11 +3452,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00fab60bf3d42255ce3f678903d3a2564662371c75623de4a1ffc7cac46143df" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3554,48 +3466,48 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4f48c887e90050537e399d2d8b6ee82787ebec0fe46e4880b42cab0c2d5ba6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "ahash 0.7.6", - "hash-db 0.15.2", - "hashbrown 0.12.3", + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", "lazy_static", - "lru", - "memory-db 0.30.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "schnellru", + "sp-core 7.0.0", + "sp-std 5.0.0", "thiserror", "tracing", - "trie-db 0.24.0", - "trie-root 0.17.0", + "trie-db", + "trie-root", ] [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58401c53c08b6ecad83acd7e14534c8bbcb3fa73e81e26685e0ac70e51b00c56" dependencies = [ "ahash 0.8.3", - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "lazy_static", - "memory-db 0.32.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", "schnellru", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-std 7.0.0", "thiserror", "tracing", - "trie-db 0.27.1", - "trie-root 0.18.0", + "trie-db", + "trie-root", ] [[package]] @@ -3609,8 +3521,8 @@ dependencies = [ "scale-info", "serde", "sp-core-hashing-proc-macro", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version-proc-macro", "thiserror", ] @@ -3629,26 +3541,28 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f43c40afab6ecac20505907631c929957ed636b7af8795984649bbaa6ff38c3" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ + "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "wasmi", + "wasmtime", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "153b7374179439e2aa783c66ed439bd86920c67bbc95d34c76390561972bc02f" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "wasmi", "wasmtime", ] @@ -3656,33 +3570,32 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c671673133b30e6ab6d88139b06adcdaec5aa06548abe0e155a0c830b592793b" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123c661915e1bf328e21f8ecbe4e5247feba86f9149b782ea4348004547ce8ef" dependencies = [ "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -3745,26 +3658,33 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "subxt" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3cbc78fd36035a24883eada29e0205b9b1416172530a7d00a60c07d0337db0c" +checksum = "53b9c4ddefcb2d87eb18a6336f65635c29208f766d0deefaa2a1a19f7426a993" dependencies = [ - "bitvec", + "base58", + "blake2", "derivative", + "either", "frame-metadata", "futures", "getrandom 0.2.10", "hex", + "impl-serde", "jsonrpsee", "parity-scale-codec", "parking_lot", - "scale-decode 0.4.0", + "primitive-types", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "scale-value", "serde", "serde_json", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 20.0.0", + "sp-core-hashing 8.0.0", + "sp-runtime 23.0.0", "subxt-macro", "subxt-metadata", "thiserror", @@ -3773,9 +3693,9 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7722c31febf55eb300c73d977da5d65cfd6fb443419b1185b9abcdd9925fd7be" +checksum = "e924f41069e9273236398ff89662d6d336468a5d94faac812129d44547db0e7f" dependencies = [ "darling", "frame-metadata", @@ -3783,20 +3703,20 @@ dependencies = [ "hex", "jsonrpsee", "parity-scale-codec", - "proc-macro-error", "proc-macro2", "quote", "scale-info", "subxt-metadata", "syn 1.0.109", + "thiserror", "tokio", ] [[package]] name = "subxt-macro" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f64826f2c4ba20e3b2a86ec81a6ae8655ca6b6a4c2a6ccc888b6615efc2df14" +checksum = "ced0b043a069ee039f8700d3dfda01be156e4229c82277c305bc8e79a7dd855d" dependencies = [ "darling", "proc-macro-error", @@ -3806,14 +3726,14 @@ dependencies = [ [[package]] name = "subxt-metadata" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869af75e23513538ad0af046af4a97b8d684e8d202e35ff4127ee061c1110813" +checksum = "18be3b8f4308fe7369ee1df66ae59c2eca79de20eab57b0f41c75736e843300f" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 8.0.0", ] [[package]] @@ -3838,18 +3758,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "tap" version = "1.0.1" @@ -3921,25 +3829,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-bip39" version = "1.0.0" @@ -4130,48 +4019,26 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "trie-db" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "log", - "rustc-hex", - "smallvec", -] - [[package]] name = "trie-db" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", ] -[[package]] -name = "trie-root" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" -dependencies = [ - "hash-db 0.15.2", -] - [[package]] name = "trie-root" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -4765,9 +4632,9 @@ checksum = "735a71d46c4d68d71d4b24d03fdc2b98e38cea81730595801db779c04fe80d70" [[package]] name = "yap" -version = "0.7.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc77f52dc9e9b10d55d3f4462c3b7fc393c4f17975d641542833ab2d3bc26ef" +checksum = "e2a7eb6d82a11e4d0b8e6bda8347169aff4ccd8235d039bba7c47482d977dcf7" [[package]] name = "zeroize" diff --git a/bin/finalizer/Cargo.toml b/bin/finalizer/Cargo.toml index 6789370397..b47bc905aa 100644 --- a/bin/finalizer/Cargo.toml +++ b/bin/finalizer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "finalizer" -version = "0.0.1" +version = "0.0.2" edition = "2021" license = "GPL-3.0-or-later" @@ -9,7 +9,7 @@ anyhow = "1.0" clap = { version = "3.0", features = ["derive"] } dialoguer = "0.10.0" hex = "0.4.3" -subxt = "0.25.0" +subxt = "0.28.0" tokio = { version = "1.21.2", features = ["full"] } aleph_client = { path = "../../aleph-client" } futures = "0.3.28" diff --git a/bin/finalizer/src/commands.rs b/bin/finalizer/src/commands.rs index 74a143b363..8307d8f35f 100644 --- a/bin/finalizer/src/commands.rs +++ b/bin/finalizer/src/commands.rs @@ -12,6 +12,7 @@ use aleph_client::{ use anyhow::Result; use dialoguer::Confirm; use futures::{stream::FuturesUnordered, StreamExt}; +use subxt::config::Header; fn pretty_print_h256(h: &H256) -> String { let prefix = diff --git a/e2e-tests/Cargo.lock b/e2e-tests/Cargo.lock index 2378e2b7d0..a7485f03d5 100644 --- a/e2e-tests/Cargo.lock +++ b/e2e-tests/Cargo.lock @@ -92,15 +92,16 @@ dependencies = [ "rayon", "serde_json", "serial_test", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "subxt", "synthetic-link", "tokio", ] [[package]] name = "aleph_client" -version = "3.4.2" +version = "3.5.0" dependencies = [ "anyhow", "async-trait", @@ -1213,13 +1214,13 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "static_assertions", ] @@ -1244,11 +1245,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", "sp-npos-elections", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] @@ -1282,17 +1283,17 @@ dependencies = [ "serde", "smallvec", "sp-api", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", "sp-core-hashing-proc-macro", "sp-inherents", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-io 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-weights 4.0.0", "tt-call", ] @@ -1344,12 +1345,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-weights 4.0.0", ] [[package]] @@ -1487,10 +1488,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -1552,12 +1551,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - [[package]] name = "hash-db" version = "0.16.0" @@ -1935,7 +1928,7 @@ dependencies = [ "derive_more", "ink_prelude", "parity-scale-codec", - "scale-decode 0.5.0", + "scale-decode", "scale-encode", "scale-info", "xxhash-rust", @@ -2251,15 +2244,6 @@ version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" -[[package]] -name = "lru" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" -dependencies = [ - "hashbrown 0.12.3", -] - [[package]] name = "mach" version = "0.3.2" @@ -2321,24 +2305,13 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memory-db" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "parity-util-mem", -] - [[package]] name = "memory-db" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -2629,8 +2602,8 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] @@ -2644,8 +2617,8 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] @@ -2656,9 +2629,9 @@ dependencies = [ "bitflags 1.3.2", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] @@ -2675,13 +2648,13 @@ dependencies = [ "parity-scale-codec", "primitives", "rand 0.8.5", - "rand_pcg 0.3.1", + "rand_pcg", "scale-info", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2696,13 +2669,13 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", "sp-session", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", + "sp-trie 7.0.0", ] [[package]] @@ -2720,11 +2693,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-io 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2739,9 +2712,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-inherents", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-io 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-timestamp", ] @@ -2750,7 +2723,7 @@ name = "pallets-support" version = "0.1.4" dependencies = [ "frame-support", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2780,32 +2753,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parity-util-mem" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" -dependencies = [ - "cfg-if", - "hashbrown 0.12.3", - "impl-trait-for-tuples", - "parity-util-mem-derive", - "parking_lot", - "primitive-types", - "winapi", -] - -[[package]] -name = "parity-util-mem-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" -dependencies = [ - "proc-macro2", - "syn 1.0.109", - "synstructure", -] - [[package]] name = "parity-wasm" version = "0.45.0" @@ -2841,15 +2788,6 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - [[package]] name = "pbkdf2" version = "0.8.0" @@ -2949,11 +2887,11 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -3045,7 +2983,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc", - "rand_pcg 0.2.1", ] [[package]] @@ -3106,15 +3043,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "rand_pcg" version = "0.3.1" @@ -3426,18 +3354,6 @@ dependencies = [ "serde", ] -[[package]] -name = "scale-decode" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d823d4be477fc33321f93d08fb6c2698273d044f01362dc27573a750deb7c233" -dependencies = [ - "parity-scale-codec", - "scale-bits", - "scale-info", - "thiserror", -] - [[package]] name = "scale-decode" version = "0.5.0" @@ -3445,6 +3361,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e5527e4b3bf079d4c0b2f253418598c380722ba37ef20fac9088081407f2b6" dependencies = [ "parity-scale-codec", + "primitive-types", "scale-bits", "scale-decode-derive", "scale-info", @@ -3471,6 +3388,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15546e5efbb45f0fc2291f7e202dee8623274c5d8bbfdf9c6886cc8b44a7ced3" dependencies = [ "parity-scale-codec", + "primitive-types", + "scale-bits", "scale-encode-derive", "scale-info", "thiserror", @@ -3517,15 +3436,16 @@ dependencies = [ [[package]] name = "scale-value" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a5e7810815bd295da73e4216d1dfbced3c7c7c7054d70fa5f6e4c58123fff4" +checksum = "11f549769261561e6764218f847e500588f9a79a289de49ce92f9e26642a3574" dependencies = [ "either", "frame-metadata", "parity-scale-codec", "scale-bits", - "scale-decode 0.4.0", + "scale-decode", + "scale-encode", "scale-info", "serde", "thiserror", @@ -3916,17 +3836,17 @@ name = "sp-api" version = "4.0.0-dev" source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "scale-info", "sp-api-proc-macro", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "sp-metadata-ir", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "sp-version", "thiserror", ] @@ -3948,110 +3868,108 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a70f8245ad75c773c43e46d16e81adb62290d37cd07efcde6cef06d93235e5" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf23435a4bbd6eeec2bbbc346719ba4f3200e0ddb5f9e9f06c1724db03a8410" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3856b3e912f0a7a1332f1642b5fd3c2e76476e894c656538d32c004698690157" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "static_assertions", ] [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3d3507a803e8bc332fa290ed3015a7b51d4436ce2b836744642fc412040456" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "static_assertions", ] [[package]] name = "sp-core" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88c78530907dbf7949af928d0ce88b485067389201b6d9b468074b1924f209f0" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "array-bytes", - "base58", "bitflags 1.3.2", "blake2", - "byteorder", + "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.15.2", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", "libsecp256k1", "log", "merlin", - "num-traits", "parity-scale-codec", "parking_lot", + "paste", "primitive-types", - "rand 0.7.3", + "rand 0.8.5", "regex", "scale-info", "schnorrkel", "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 5.0.0", + "sp-debug-derive 5.0.0", + "sp-externalities 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 0.8.2", - "wasmi", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7789372146f8ad40d0b40fad0596cb1db5771187a258eabe19b06f00767fcbd6" dependencies = [ "array-bytes", "bitflags 1.3.2", @@ -4061,7 +3979,7 @@ dependencies = [ "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.16.0", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", @@ -4070,7 +3988,6 @@ dependencies = [ "merlin", "parity-scale-codec", "parking_lot", - "paste", "primitive-types", "rand 0.8.5", "regex", @@ -4079,45 +3996,45 @@ dependencies = [ "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 8.0.0", + "sp-debug-derive 7.0.0", + "sp-externalities 0.18.0", + "sp-runtime-interface 16.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 1.0.0", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b9d1daa6aebfc144729b630885e91df92ff00560490ec065a56cb538e8895a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "blake2", + "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27449abdfbe41b473e625bce8113745e81d65777dd1d5a8462cf24137930dad8" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "twox-hash", ] @@ -4128,52 +4045,52 @@ source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=alep dependencies = [ "proc-macro2", "quote", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 5.0.0", "syn 2.0.26", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9ba7352773b96a4aa57e903447f841c6bc26e8c798377db6e7eb332346454" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62211eed9ef9dac4b9d837c56ccc9f8ee4fc49d9d9b7e6b9daf098fe173389ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef739442230f49d88ece41259e5d886d6b8bc0f4197ef7f1585c39c762ce7ef2" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", + "sp-storage 7.0.0", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae0f275760689aaefe967943331d458cd99f5169d18364365d4cb584b246d1c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", + "sp-storage 12.0.0", ] [[package]] @@ -4185,43 +4102,43 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "thiserror", ] [[package]] name = "sp-io" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6280bd3643354f7ff0b2abd36c687745455779231a7a86d90945608f0d4924c4" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", + "ed25519", + "ed25519-dalek", "futures", - "hash-db 0.15.2", "libsecp256k1", "log", "parity-scale-codec", - "parking_lot", + "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-keystore 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-state-machine 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-keystore 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-trie 7.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd3431c245992fe51b8256c838fc2e981f8d3b0afc1d1377ca7dbe0a3287a764" dependencies = [ "bytes", "ed25519", @@ -4232,14 +4149,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-keystore 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-keystore 0.26.0", + "sp-runtime-interface 16.0.0", + "sp-state-machine 0.27.0", + "sp-std 7.0.0", + "sp-tracing 9.0.0", + "sp-trie 21.0.0", "tracing", "tracing-core", ] @@ -4247,30 +4164,29 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44bec4f0d036b6993c14bbee4216781f21275e5c201e43e45fed4a434bf0e5a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "async-trait", "futures", - "merlin", "parity-scale-codec", "parking_lot", - "schnorrkel", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", "thiserror", ] [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "452d079f592c97369c9ca8a5083b25f146751c6b5af10cbcacc2b24dc53fd72a" dependencies = [ "futures", + "merlin", "parity-scale-codec", "parking_lot", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "schnorrkel", + "sp-core 20.0.0", + "sp-externalities 0.18.0", "thiserror", ] @@ -4282,7 +4198,7 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -4293,17 +4209,16 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97549ec99cb289db2a9f5c656b6880f7c90097135e1ca6c6ae4fe5694232e526" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "backtrace", "lazy_static", @@ -4312,8 +4227,9 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75986cc917d897e0f6d0c848088064df4c74ccbb8f1c1848700b725f5ca7fe04" dependencies = [ "backtrace", "lazy_static", @@ -4323,31 +4239,30 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0edfc5c54c2b31d2f0cf904d472a0bff7125c0c2a2e2330507842e56f9a27444" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", "parity-scale-codec", - "parity-util-mem", "paste", - "rand 0.7.3", + "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-weights 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-application-crypto 7.0.0", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6220216caa67e3d931c693b06a3590dfcaa255f19bb3c3e3150f1672b8bc53f6" dependencies = [ "either", "hash256-std-hasher", @@ -4358,74 +4273,74 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 22.0.0", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", + "sp-weights 19.0.0", ] [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b886a5d34400b0e0c12d389e3bb48b7a93d651cddf7e248124b81fe64c339251" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface-proc-macro 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.13.0", + "sp-runtime-interface-proc-macro 6.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", + "sp-tracing 6.0.0", + "sp-wasm-interface 7.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5d0cd80200bf85b8b064238b2508b69b6146b13adf36066ec5d924825af737" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface-proc-macro 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-wasm-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-externalities 0.18.0", + "sp-runtime-interface-proc-macro 10.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", + "sp-tracing 9.0.0", + "sp-wasm-interface 13.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a157f1ce0108b9b87f87e826726049d9b6253318b74410c814be7fc2af416b51" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ae5b00aef477127ddb6177b3464ad1e2bdcc12ee913fc5dfc9d065c6cea89b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] @@ -4436,10 +4351,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-api", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -4450,50 +4365,48 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-state-machine" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5c2d97ad69011d34ca257f0383532b80096d53f889f5894ae2b24a211bec66f" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.15.2", + "hash-db", "log", - "num-traits", "parity-scale-codec", "parking_lot", - "rand 0.7.3", + "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-panic-handler 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-panic-handler 5.0.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "thiserror", "tracing", - "trie-root 0.17.0", ] [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e49c3bfcc8c832c34552cd8194180cc60508c6d3d9b0b9615d6b7c3e275019" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "parking_lot", "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-panic-handler 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-panic-handler 7.0.0", + "sp-std 7.0.0", + "sp-trie 21.0.0", "thiserror", "tracing", ] @@ -4501,39 +4414,39 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3fd4c1d304be101e6ebbafd3d4be9a37b320c970ef4e8df188b16873981c93" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de8eef39962b5b97478719c493bed2926cf70cb621005bbf68ebe58252ff986" [[package]] name = "sp-storage" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb987ed2e4d7d870170a225083ea962f2a359d75cdf76935d5ed8d91bee912d9" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ad1f8c52d4700ac7bc42b3375679a6c6fc1fe876f4b40c6efdf36f933ef0291" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -4546,19 +4459,18 @@ dependencies = [ "log", "parity-scale-codec", "sp-inherents", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "thiserror", ] [[package]] name = "sp-tracing" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e761df87dc940d87720939de8f976d1fc0657e523886ae0d7bf3f7e2e2f0abb6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -4566,11 +4478,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00fab60bf3d42255ce3f678903d3a2564662371c75623de4a1ffc7cac46143df" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -4579,48 +4492,48 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4f48c887e90050537e399d2d8b6ee82787ebec0fe46e4880b42cab0c2d5ba6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "ahash 0.7.6", - "hash-db 0.15.2", - "hashbrown 0.12.3", + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", "lazy_static", - "lru", - "memory-db 0.30.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "schnellru", + "sp-core 7.0.0", + "sp-std 5.0.0", "thiserror", "tracing", - "trie-db 0.24.0", - "trie-root 0.17.0", + "trie-db", + "trie-root", ] [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58401c53c08b6ecad83acd7e14534c8bbcb3fa73e81e26685e0ac70e51b00c56" dependencies = [ "ahash 0.8.3", - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "lazy_static", - "memory-db 0.32.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", "schnellru", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-std 7.0.0", "thiserror", "tracing", - "trie-db 0.27.1", - "trie-root 0.18.0", + "trie-db", + "trie-root", ] [[package]] @@ -4634,8 +4547,8 @@ dependencies = [ "scale-info", "serde", "sp-core-hashing-proc-macro", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version-proc-macro", "thiserror", ] @@ -4654,26 +4567,28 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f43c40afab6ecac20505907631c929957ed636b7af8795984649bbaa6ff38c3" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ + "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "wasmi", + "wasmtime", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "153b7374179439e2aa783c66ed439bd86920c67bbc95d34c76390561972bc02f" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "wasmi", "wasmtime", ] @@ -4681,33 +4596,32 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c671673133b30e6ab6d88139b06adcdaec5aa06548abe0e155a0c830b592793b" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123c661915e1bf328e21f8ecbe4e5247feba86f9149b782ea4348004547ce8ef" dependencies = [ "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -4780,26 +4694,33 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "subxt" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3cbc78fd36035a24883eada29e0205b9b1416172530a7d00a60c07d0337db0c" +checksum = "53b9c4ddefcb2d87eb18a6336f65635c29208f766d0deefaa2a1a19f7426a993" dependencies = [ - "bitvec", + "base58", + "blake2", "derivative", + "either", "frame-metadata", "futures", "getrandom 0.2.10", "hex", + "impl-serde", "jsonrpsee", "parity-scale-codec", "parking_lot", - "scale-decode 0.4.0", + "primitive-types", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "scale-value", "serde", "serde_json", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 20.0.0", + "sp-core-hashing 8.0.0", + "sp-runtime 23.0.0", "subxt-macro", "subxt-metadata", "thiserror", @@ -4808,9 +4729,9 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7722c31febf55eb300c73d977da5d65cfd6fb443419b1185b9abcdd9925fd7be" +checksum = "e924f41069e9273236398ff89662d6d336468a5d94faac812129d44547db0e7f" dependencies = [ "darling", "frame-metadata", @@ -4818,20 +4739,20 @@ dependencies = [ "hex", "jsonrpsee", "parity-scale-codec", - "proc-macro-error", "proc-macro2", "quote", "scale-info", "subxt-metadata", "syn 1.0.109", + "thiserror", "tokio", ] [[package]] name = "subxt-macro" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f64826f2c4ba20e3b2a86ec81a6ae8655ca6b6a4c2a6ccc888b6615efc2df14" +checksum = "ced0b043a069ee039f8700d3dfda01be156e4229c82277c305bc8e79a7dd855d" dependencies = [ "darling", "proc-macro-error", @@ -4841,14 +4762,14 @@ dependencies = [ [[package]] name = "subxt-metadata" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869af75e23513538ad0af046af4a97b8d684e8d202e35ff4127ee061c1110813" +checksum = "18be3b8f4308fe7369ee1df66ae59c2eca79de20eab57b0f41c75736e843300f" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 8.0.0", ] [[package]] @@ -4873,18 +4794,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "synthetic-link" version = "0.1.0" @@ -4965,25 +4874,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-bip39" version = "1.0.0" @@ -5184,48 +5074,26 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "trie-db" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "log", - "rustc-hex", - "smallvec", -] - [[package]] name = "trie-db" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", ] -[[package]] -name = "trie-root" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" -dependencies = [ - "hash-db 0.15.2", -] - [[package]] name = "trie-root" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -5868,9 +5736,9 @@ checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" [[package]] name = "yap" -version = "0.7.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc77f52dc9e9b10d55d3f4462c3b7fc393c4f17975d641542833ab2d3bc26ef" +checksum = "e2a7eb6d82a11e4d0b8e6bda8347169aff4ccd8235d039bba7c47482d977dcf7" [[package]] name = "zeroize" diff --git a/e2e-tests/Cargo.toml b/e2e-tests/Cargo.toml index ba058655aa..e5aff03f4d 100644 --- a/e2e-tests/Cargo.toml +++ b/e2e-tests/Cargo.toml @@ -19,6 +19,7 @@ rayon = "1.5" serde_json = "1.0" serial_test = "1.0.0" tokio = { version = "1.21.2", features = ["full"] } +subxt = "0.28.0" sp-core = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.42", default-features = false, features = ["full_crypto"] } sp-runtime = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.42", default-features = false } diff --git a/e2e-tests/src/test/staking.rs b/e2e-tests/src/test/staking.rs index 6b7943d777..dfd22e5378 100644 --- a/e2e-tests/src/test/staking.rs +++ b/e2e-tests/src/test/staking.rs @@ -19,6 +19,7 @@ use primitives::{ staking::{MIN_NOMINATOR_BOND, MIN_VALIDATOR_BOND}, Balance, BlockNumber, TOKEN, }; +use subxt::utils::Static; use crate::{ accounts::{account_ids_from_keys, accounts_seeds_to_keys, get_validators_seeds}, @@ -187,7 +188,7 @@ pub async fn staking_new_validator() -> anyhow::Result<()> { assert_eq!( ledger, StakingLedger { - stash: stash_account.clone(), + stash: Static(stash_account.clone()), total: MIN_VALIDATOR_BOND, active: MIN_VALIDATOR_BOND, unlocking: BoundedVec(vec![]), diff --git a/e2e-tests/src/test/validators_change.rs b/e2e-tests/src/test/validators_change.rs index 33f86c7200..0390a66eb1 100644 --- a/e2e-tests/src/test/validators_change.rs +++ b/e2e-tests/src/test/validators_change.rs @@ -50,8 +50,8 @@ pub async fn change_validators() -> anyhow::Result<()> { connection.wait_for_event(|e: &ChangeValidators| { info!("[+] NewValidatorsEvent: reserved: {:#?}, non_reserved: {:#?}, committee_size: {:#?}", e.0, e.1, e.2); - e.0 == new_validators[0..2] - && e.1 == new_validators[2..] + e.0.iter().cloned().map(|x| x.0).collect::>() == new_validators[0..2] + && e.1.iter().cloned().map(|x| x.0).collect::>() == new_validators[2..] && e.2 == CommitteeSeats { reserved_seats: 2, diff --git a/flooder/Cargo.lock b/flooder/Cargo.lock index 16aa5b0682..43b2601f89 100644 --- a/flooder/Cargo.lock +++ b/flooder/Cargo.lock @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.4.2" +version = "3.5.0" dependencies = [ "anyhow", "async-trait", @@ -926,8 +926,8 @@ dependencies = [ "mio 0.6.23", "parity-scale-codec", "serde_json", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "subxt", "tokio", "ws", @@ -1126,10 +1126,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if 1.0.0", - "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", ] [[package]] @@ -1180,12 +1178,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - [[package]] name = "hash-db" version = "0.16.0" @@ -1564,7 +1556,7 @@ dependencies = [ "derive_more", "ink_prelude", "parity-scale-codec", - "scale-decode 0.5.0", + "scale-decode", "scale-encode", "scale-info", "xxhash-rust", @@ -1851,15 +1843,6 @@ version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" -[[package]] -name = "lru" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" -dependencies = [ - "hashbrown 0.12.3", -] - [[package]] name = "mach" version = "0.3.2" @@ -1902,24 +1885,13 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memory-db" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "parity-util-mem", -] - [[package]] name = "memory-db" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -2208,9 +2180,9 @@ dependencies = [ "bitflags", "parity-scale-codec", "scale-info", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] @@ -2240,32 +2212,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "parity-util-mem" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" -dependencies = [ - "cfg-if 1.0.0", - "hashbrown 0.12.3", - "impl-trait-for-tuples", - "parity-util-mem-derive", - "parking_lot", - "primitive-types", - "winapi 0.3.9", -] - -[[package]] -name = "parity-util-mem-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" -dependencies = [ - "proc-macro2", - "syn 1.0.109", - "synstructure", -] - [[package]] name = "parity-wasm" version = "0.45.0" @@ -2301,15 +2247,6 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - [[package]] name = "pbkdf2" version = "0.8.0" @@ -2399,11 +2336,11 @@ dependencies = [ "scale-info", "serde", "sp-api", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 7.0.0", + "sp-core 7.0.0", + "sp-runtime 7.0.0", "sp-staking", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] @@ -2484,7 +2421,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc", - "rand_pcg", ] [[package]] @@ -2545,15 +2481,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "redox_syscall" version = "0.3.5" @@ -2750,18 +2677,6 @@ dependencies = [ "serde", ] -[[package]] -name = "scale-decode" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d823d4be477fc33321f93d08fb6c2698273d044f01362dc27573a750deb7c233" -dependencies = [ - "parity-scale-codec", - "scale-bits", - "scale-info", - "thiserror", -] - [[package]] name = "scale-decode" version = "0.5.0" @@ -2769,6 +2684,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e5527e4b3bf079d4c0b2f253418598c380722ba37ef20fac9088081407f2b6" dependencies = [ "parity-scale-codec", + "primitive-types", "scale-bits", "scale-decode-derive", "scale-info", @@ -2795,6 +2711,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "15546e5efbb45f0fc2291f7e202dee8623274c5d8bbfdf9c6886cc8b44a7ced3" dependencies = [ "parity-scale-codec", + "primitive-types", + "scale-bits", "scale-encode-derive", "scale-info", "thiserror", @@ -2841,15 +2759,16 @@ dependencies = [ [[package]] name = "scale-value" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a5e7810815bd295da73e4216d1dfbced3c7c7c7054d70fa5f6e4c58123fff4" +checksum = "11f549769261561e6764218f847e500588f9a79a289de49ce92f9e26642a3574" dependencies = [ "either", "frame-metadata", "parity-scale-codec", "scale-bits", - "scale-decode 0.4.0", + "scale-decode", + "scale-encode", "scale-info", "serde", "thiserror", @@ -3167,17 +3086,17 @@ name = "sp-api" version = "4.0.0-dev" source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "scale-info", "sp-api-proc-macro", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", "sp-metadata-ir", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "sp-version", "thiserror", ] @@ -3199,110 +3118,108 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a70f8245ad75c773c43e46d16e81adb62290d37cd07efcde6cef06d93235e5" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf23435a4bbd6eeec2bbbc346719ba4f3200e0ddb5f9e9f06c1724db03a8410" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3856b3e912f0a7a1332f1642b5fd3c2e76476e894c656538d32c004698690157" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "static_assertions", ] [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3d3507a803e8bc332fa290ed3015a7b51d4436ce2b836744642fc412040456" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "static_assertions", ] [[package]] name = "sp-core" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88c78530907dbf7949af928d0ce88b485067389201b6d9b468074b1924f209f0" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "array-bytes", - "base58", "bitflags", "blake2", - "byteorder", + "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.15.2", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", "libsecp256k1", "log", "merlin", - "num-traits", "parity-scale-codec", "parking_lot", + "paste", "primitive-types", - "rand 0.7.3", + "rand 0.8.5", "regex", "scale-info", "schnorrkel", "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 5.0.0", + "sp-debug-derive 5.0.0", + "sp-externalities 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 0.8.2", - "wasmi", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7789372146f8ad40d0b40fad0596cb1db5771187a258eabe19b06f00767fcbd6" dependencies = [ "array-bytes", "bitflags", @@ -3312,7 +3229,7 @@ dependencies = [ "dyn-clonable", "ed25519-zebra", "futures", - "hash-db 0.16.0", + "hash-db", "hash256-std-hasher", "impl-serde", "lazy_static", @@ -3321,7 +3238,6 @@ dependencies = [ "merlin", "parity-scale-codec", "parking_lot", - "paste", "primitive-types", "rand 0.8.5", "regex", @@ -3330,45 +3246,45 @@ dependencies = [ "secp256k1 0.24.3", "secrecy", "serde", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 8.0.0", + "sp-debug-derive 7.0.0", + "sp-externalities 0.18.0", + "sp-runtime-interface 16.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", "ss58-registry", "substrate-bip39", "thiserror", - "tiny-bip39 1.0.0", + "tiny-bip39", "zeroize", ] [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b9d1daa6aebfc144729b630885e91df92ff00560490ec065a56cb538e8895a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "blake2", + "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "twox-hash", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27449abdfbe41b473e625bce8113745e81d65777dd1d5a8462cf24137930dad8" dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", "sha2 0.10.7", "sha3", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "twox-hash", ] @@ -3379,85 +3295,85 @@ source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=alep dependencies = [ "proc-macro2", "quote", - "sp-core-hashing 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core-hashing 5.0.0", "syn 2.0.26", ] [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9ba7352773b96a4aa57e903447f841c6bc26e8c798377db6e7eb332346454" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62211eed9ef9dac4b9d837c56ccc9f8ee4fc49d9d9b7e6b9daf098fe173389ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] name = "sp-externalities" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef739442230f49d88ece41259e5d886d6b8bc0f4197ef7f1585c39c762ce7ef2" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", + "sp-storage 7.0.0", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae0f275760689aaefe967943331d458cd99f5169d18364365d4cb584b246d1c" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", + "sp-storage 12.0.0", ] [[package]] name = "sp-io" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6280bd3643354f7ff0b2abd36c687745455779231a7a86d90945608f0d4924c4" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes 1.4.0", + "ed25519", + "ed25519-dalek", "futures", - "hash-db 0.15.2", "libsecp256k1", "log", "parity-scale-codec", - "parking_lot", + "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-keystore 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-state-machine 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-keystore 0.13.0", + "sp-runtime-interface 7.0.0", + "sp-state-machine 0.13.0", + "sp-std 5.0.0", + "sp-tracing 6.0.0", + "sp-trie 7.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd3431c245992fe51b8256c838fc2e981f8d3b0afc1d1377ca7dbe0a3287a764" dependencies = [ "bytes 1.4.0", "ed25519", @@ -3468,14 +3384,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1 0.24.3", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-keystore 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-state-machine 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-keystore 0.26.0", + "sp-runtime-interface 16.0.0", + "sp-state-machine 0.27.0", + "sp-std 7.0.0", + "sp-tracing 9.0.0", + "sp-trie 21.0.0", "tracing", "tracing-core", ] @@ -3483,30 +3399,29 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44bec4f0d036b6993c14bbee4216781f21275e5c201e43e45fed4a434bf0e5a" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "async-trait", "futures", - "merlin", "parity-scale-codec", "parking_lot", - "schnorrkel", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", "thiserror", ] [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "452d079f592c97369c9ca8a5083b25f146751c6b5af10cbcacc2b24dc53fd72a" dependencies = [ "futures", + "merlin", "parity-scale-codec", "parking_lot", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "schnorrkel", + "sp-core 20.0.0", + "sp-externalities 0.18.0", "thiserror", ] @@ -3518,14 +3433,13 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 5.0.0", ] [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97549ec99cb289db2a9f5c656b6880f7c90097135e1ca6c6ae4fe5694232e526" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "backtrace", "lazy_static", @@ -3534,8 +3448,9 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75986cc917d897e0f6d0c848088064df4c74ccbb8f1c1848700b725f5ca7fe04" dependencies = [ "backtrace", "lazy_static", @@ -3545,31 +3460,30 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0edfc5c54c2b31d2f0cf904d472a0bff7125c0c2a2e2330507842e56f9a27444" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", "parity-scale-codec", - "parity-util-mem", "paste", - "rand 0.7.3", + "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-weights 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-application-crypto 7.0.0", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-io 7.0.0", + "sp-std 5.0.0", + "sp-weights 4.0.0", ] [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6220216caa67e3d931c693b06a3590dfcaa255f19bb3c3e3150f1672b8bc53f6" dependencies = [ "either", "hash256-std-hasher", @@ -3580,74 +3494,74 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-io 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-weights 4.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-application-crypto 22.0.0", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-io 22.0.0", + "sp-std 7.0.0", + "sp-weights 19.0.0", ] [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b886a5d34400b0e0c12d389e3bb48b7a93d651cddf7e248124b81fe64c339251" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface-proc-macro 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.13.0", + "sp-runtime-interface-proc-macro 6.0.0", + "sp-std 5.0.0", + "sp-storage 7.0.0", + "sp-tracing 6.0.0", + "sp-wasm-interface 7.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5d0cd80200bf85b8b064238b2508b69b6146b13adf36066ec5d924825af737" dependencies = [ "bytes 1.4.0", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime-interface-proc-macro 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-storage 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-tracing 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-wasm-interface 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-externalities 0.18.0", + "sp-runtime-interface-proc-macro 10.0.0", + "sp-std 7.0.0", + "sp-storage 12.0.0", + "sp-tracing 9.0.0", + "sp-wasm-interface 13.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a157f1ce0108b9b87f87e826726049d9b6253318b74410c814be7fc2af416b51" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.26", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ae5b00aef477127ddb6177b3464ad1e2bdcc12ee913fc5dfc9d065c6cea89b" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.26", + "syn 1.0.109", ] [[package]] @@ -3658,50 +3572,48 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 7.0.0", + "sp-runtime 7.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-state-machine" version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5c2d97ad69011d34ca257f0383532b80096d53f889f5894ae2b24a211bec66f" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "hash-db 0.15.2", + "hash-db", "log", - "num-traits", "parity-scale-codec", "parking_lot", - "rand 0.7.3", + "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-panic-handler 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 7.0.0", + "sp-externalities 0.13.0", + "sp-panic-handler 5.0.0", + "sp-std 5.0.0", + "sp-trie 7.0.0", "thiserror", "tracing", - "trie-root 0.17.0", ] [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e49c3bfcc8c832c34552cd8194180cc60508c6d3d9b0b9615d6b7c3e275019" dependencies = [ - "hash-db 0.16.0", + "hash-db", "log", "parity-scale-codec", "parking_lot", "rand 0.8.5", "smallvec", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-externalities 0.13.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-panic-handler 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-trie 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-externalities 0.18.0", + "sp-panic-handler 7.0.0", + "sp-std 7.0.0", + "sp-trie 21.0.0", "thiserror", "tracing", ] @@ -3709,49 +3621,48 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3fd4c1d304be101e6ebbafd3d4be9a37b320c970ef4e8df188b16873981c93" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de8eef39962b5b97478719c493bed2926cf70cb621005bbf68ebe58252ff986" [[package]] name = "sp-storage" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb987ed2e4d7d870170a225083ea962f2a359d75cdf76935d5ed8d91bee912d9" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ad1f8c52d4700ac7bc42b3375679a6c6fc1fe876f4b40c6efdf36f933ef0291" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] name = "sp-tracing" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e761df87dc940d87720939de8f976d1fc0657e523886ae0d7bf3f7e2e2f0abb6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3759,11 +3670,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00fab60bf3d42255ce3f678903d3a2564662371c75623de4a1ffc7cac46143df" dependencies = [ "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -3772,48 +3684,48 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4f48c887e90050537e399d2d8b6ee82787ebec0fe46e4880b42cab0c2d5ba6" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "ahash 0.7.6", - "hash-db 0.15.2", - "hashbrown 0.12.3", + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", "lazy_static", - "lru", - "memory-db 0.30.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "schnellru", + "sp-core 7.0.0", + "sp-std 5.0.0", "thiserror", "tracing", - "trie-db 0.24.0", - "trie-root 0.17.0", + "trie-db", + "trie-root", ] [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58401c53c08b6ecad83acd7e14534c8bbcb3fa73e81e26685e0ac70e51b00c56" dependencies = [ "ahash 0.8.3", - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "lazy_static", - "memory-db 0.32.0", + "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot", "scale-info", "schnellru", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-core 20.0.0", + "sp-std 7.0.0", "thiserror", "tracing", - "trie-db 0.27.1", - "trie-root 0.18.0", + "trie-db", + "trie-root", ] [[package]] @@ -3827,8 +3739,8 @@ dependencies = [ "scale-info", "serde", "sp-core-hashing-proc-macro", - "sp-runtime 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-runtime 7.0.0", + "sp-std 5.0.0", "sp-version-proc-macro", "thiserror", ] @@ -3847,26 +3759,28 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f43c40afab6ecac20505907631c929957ed636b7af8795984649bbaa6ff38c3" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ + "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 5.0.0", "wasmi", + "wasmtime", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "153b7374179439e2aa783c66ed439bd86920c67bbc95d34c76390561972bc02f" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-std 7.0.0", "wasmi", "wasmtime", ] @@ -3874,33 +3788,32 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c671673133b30e6ab6d88139b06adcdaec5aa06548abe0e155a0c830b592793b" +source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-debug-derive 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 6.0.0", + "sp-core 7.0.0", + "sp-debug-derive 5.0.0", + "sp-std 5.0.0", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42#1e002bc989d3a83f5bcb003d0bacd025b161c5b1" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123c661915e1bf328e21f8ecbe4e5247feba86f9149b782ea4348004547ce8ef" dependencies = [ "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic 6.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-core 7.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-debug-derive 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", - "sp-std 5.0.0 (git+https://github.com/Cardinal-Cryptography/substrate.git?branch=aleph-v0.9.42)", + "sp-arithmetic 15.0.0", + "sp-core 20.0.0", + "sp-debug-derive 7.0.0", + "sp-std 7.0.0", ] [[package]] @@ -3963,26 +3876,33 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "subxt" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3cbc78fd36035a24883eada29e0205b9b1416172530a7d00a60c07d0337db0c" +checksum = "53b9c4ddefcb2d87eb18a6336f65635c29208f766d0deefaa2a1a19f7426a993" dependencies = [ - "bitvec", + "base58", + "blake2", "derivative", + "either", "frame-metadata", "futures", "getrandom 0.2.10", "hex", + "impl-serde", "jsonrpsee", "parity-scale-codec", "parking_lot", - "scale-decode 0.4.0", + "primitive-types", + "scale-bits", + "scale-decode", + "scale-encode", "scale-info", "scale-value", "serde", "serde_json", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 20.0.0", + "sp-core-hashing 8.0.0", + "sp-runtime 23.0.0", "subxt-macro", "subxt-metadata", "thiserror", @@ -3991,9 +3911,9 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7722c31febf55eb300c73d977da5d65cfd6fb443419b1185b9abcdd9925fd7be" +checksum = "e924f41069e9273236398ff89662d6d336468a5d94faac812129d44547db0e7f" dependencies = [ "darling", "frame-metadata", @@ -4001,20 +3921,20 @@ dependencies = [ "hex", "jsonrpsee", "parity-scale-codec", - "proc-macro-error", "proc-macro2", "quote", "scale-info", "subxt-metadata", "syn 1.0.109", + "thiserror", "tokio", ] [[package]] name = "subxt-macro" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f64826f2c4ba20e3b2a86ec81a6ae8655ca6b6a4c2a6ccc888b6615efc2df14" +checksum = "ced0b043a069ee039f8700d3dfda01be156e4229c82277c305bc8e79a7dd855d" dependencies = [ "darling", "proc-macro-error", @@ -4024,14 +3944,14 @@ dependencies = [ [[package]] name = "subxt-metadata" -version = "0.25.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869af75e23513538ad0af046af4a97b8d684e8d202e35ff4127ee061c1110813" +checksum = "18be3b8f4308fe7369ee1df66ae59c2eca79de20eab57b0f41c75736e843300f" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-core 7.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core-hashing 8.0.0", ] [[package]] @@ -4056,18 +3976,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "tap" version = "1.0.1" @@ -4136,25 +4044,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - [[package]] name = "tiny-bip39" version = "1.0.0" @@ -4345,48 +4234,26 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "trie-db" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" -dependencies = [ - "hash-db 0.15.2", - "hashbrown 0.12.3", - "log", - "rustc-hex", - "smallvec", -] - [[package]] name = "trie-db" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ - "hash-db 0.16.0", + "hash-db", "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", ] -[[package]] -name = "trie-root" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" -dependencies = [ - "hash-db 0.15.2", -] - [[package]] name = "trie-root" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ - "hash-db 0.16.0", + "hash-db", ] [[package]] @@ -5027,9 +4894,9 @@ checksum = "735a71d46c4d68d71d4b24d03fdc2b98e38cea81730595801db779c04fe80d70" [[package]] name = "yap" -version = "0.7.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc77f52dc9e9b10d55d3f4462c3b7fc393c4f17975d641542833ab2d3bc26ef" +checksum = "e2a7eb6d82a11e4d0b8e6bda8347169aff4ccd8235d039bba7c47482d977dcf7" [[package]] name = "zeroize" diff --git a/flooder/Cargo.toml b/flooder/Cargo.toml index 92dc8ef59c..2c3aa622a9 100644 --- a/flooder/Cargo.toml +++ b/flooder/Cargo.toml @@ -21,7 +21,7 @@ env_logger = "0.8" futures = { version = "0.3", features = ["alloc"] } hdrhistogram = "7.3" log = "0.4" -subxt = "0.25.0" +subxt = "0.28.0" tokio = { version = "1.21.2", features = ["full"] } aleph_client = { path = "../aleph-client" }