diff --git a/Cargo.lock b/Cargo.lock index e7b6409..e73b717 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -156,20 +156,6 @@ version = "1.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea" -[[package]] -name = "aquamarine" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21cc1548309245035eb18aa7f0967da6bc65587005170c56e6ef2788a4cf3f4e" -dependencies = [ - "include_dir", - "itertools 0.10.5", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.114", -] - [[package]] name = "argon2" version = "0.5.3" @@ -712,23 +698,11 @@ version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90dbd31c98227229239363921e60fcf5e558e43ec69094d46fc4996f08d1d5bc" dependencies = [ - "bitcoin_hashes 0.14.1", -] - -[[package]] -name = "bitcoin-internals" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb" - -[[package]] -name = "bitcoin_hashes" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b" -dependencies = [ - "bitcoin-internals", - "hex-conservative 0.1.2", + "bitcoin_hashes", + "rand 0.8.5", + "rand_core 0.6.4", + "serde", + "unicode-normalization", ] [[package]] @@ -737,7 +711,7 @@ version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26ec84b80c482df901772e931a9a681e26a1b9ee2302edeff23cb30328745c8b" dependencies = [ - "hex-conservative 0.2.2", + "hex-conservative", ] [[package]] @@ -841,10 +815,11 @@ dependencies = [ [[package]] name = "bounded-collections" -version = "0.2.4" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64ad8a0bed7827f0b07a5d23cec2e58cc02038a99e4ca81616cb2bb2025f804d" +checksum = "dee8eddd066a8825ec5570528e6880471210fd5d88cb6abbe1cfdd51ca249c33" dependencies = [ + "jam-codec", "log", "parity-scale-codec", "scale-info", @@ -900,15 +875,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" -[[package]] -name = "cfg-expr" -version = "0.15.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" -dependencies = [ - "smallvec", -] - [[package]] name = "cfg-if" version = "1.0.4" @@ -1732,16 +1698,18 @@ dependencies = [ [[package]] name = "frame-decode" -version = "0.8.3" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e56c0e51972d7b26ff76966c4d0f2307030df9daa5ce0885149ece1ab7ca5ad" +checksum = "c470df86cf28818dd3cd2fc4667b80dbefe2236c722c3dc1d09e7c6c82d6dfcd" dependencies = [ "frame-metadata", "parity-scale-codec", "scale-decode", + "scale-encode", "scale-info", "scale-type-resolver", "sp-crypto-hashing", + "thiserror 2.0.18", ] [[package]] @@ -1756,93 +1724,6 @@ dependencies = [ "serde", ] -[[package]] -name = "frame-support" -version = "41.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9162e30a146eabaa72feaf67a79b32d4adbebfc0566b5544937e44786734ac7b" -dependencies = [ - "aquamarine", - "array-bytes", - "binary-merkle-tree", - "bitflags 1.3.2", - "docify", - "environmental", - "frame-metadata", - "frame-support-procedural", - "impl-trait-for-tuples", - "k256", - "log", - "macro_magic", - "parity-scale-codec", - "paste", - "scale-info", - "serde", - "serde_json", - "sp-api", - "sp-arithmetic", - "sp-core", - "sp-crypto-hashing-proc-macro", - "sp-debug-derive", - "sp-genesis-builder", - "sp-inherents", - "sp-io", - "sp-metadata-ir", - "sp-runtime", - "sp-staking", - "sp-state-machine", - "sp-std", - "sp-tracing", - "sp-trie", - "sp-weights", - "tt-call", -] - -[[package]] -name = "frame-support-procedural" -version = "34.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aeeec31716c2eeecf21535814faf293dfc7120351c249d1f6f4dea0e520c155b" -dependencies = [ - "Inflector", - "cfg-expr", - "derive-syn-parse", - "docify", - "expander", - "frame-support-procedural-tools", - "itertools 0.11.0", - "macro_magic", - "proc-macro-warning", - "proc-macro2", - "quote", - "sp-crypto-hashing", - "syn 2.0.114", -] - -[[package]] -name = "frame-support-procedural-tools" -version = "13.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81a088fd6fda5f53ff0c17fc7551ce8bd0ead14ba742228443c8196296a7369b" -dependencies = [ - "frame-support-procedural-tools-derive", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.114", -] - -[[package]] -name = "frame-support-procedural-tools-derive" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed971c6435503a099bdac99fe4c5bea08981709e5b5a0a8535a1856f48561191" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.114", -] - [[package]] name = "fs-err" version = "2.11.0" @@ -2195,12 +2076,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" -[[package]] -name = "hex-conservative" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212ab92002354b4819390025006c897e8140934349e8635c9b077f47b4dcbd20" - [[package]] name = "hex-conservative" version = "0.2.2" @@ -2533,25 +2408,6 @@ dependencies = [ "syn 2.0.114", ] -[[package]] -name = "include_dir" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" -dependencies = [ - "include_dir_macros", -] - -[[package]] -name = "include_dir_macros" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" -dependencies = [ - "proc-macro2", - "quote", -] - [[package]] name = "indexmap" version = "2.13.0" @@ -2659,6 +2515,34 @@ version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" +[[package]] +name = "jam-codec" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb948eace373d99de60501a02fb17125d30ac632570de20dccc74370cdd611b9" +dependencies = [ + "arrayvec 0.7.6", + "bitvec", + "byte-slice-cast", + "const_format", + "impl-trait-for-tuples", + "jam-codec-derive", + "rustversion", + "serde", +] + +[[package]] +name = "jam-codec-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "319af585c4c8a6b5552a52b7787a1ab3e4d59df7614190b1f85b9b842488789d" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.114", +] + [[package]] name = "jni" version = "0.21.1" @@ -2983,54 +2867,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" -[[package]] -name = "macro_magic" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc33f9f0351468d26fbc53d9ce00a096c8522ecb42f19b50f34f2c422f76d21d" -dependencies = [ - "macro_magic_core", - "macro_magic_macros", - "quote", - "syn 2.0.114", -] - -[[package]] -name = "macro_magic_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1687dc887e42f352865a393acae7cf79d98fab6351cde1f58e9e057da89bf150" -dependencies = [ - "const-random", - "derive-syn-parse", - "macro_magic_core_macros", - "proc-macro2", - "quote", - "syn 2.0.114", -] - -[[package]] -name = "macro_magic_core_macros" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b02abfe41815b5bd98dbd4260173db2c116dda171dc0fe7838cb206333b83308" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.114", -] - -[[package]] -name = "macro_magic_macros" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ea28ee64b88876bf45277ed9a5817c1817df061a74f2b988971a12570e5869" -dependencies = [ - "macro_magic_core", - "quote", - "syn 2.0.114", -] - [[package]] name = "matchers" version = "0.2.0" @@ -3387,19 +3223,6 @@ dependencies = [ "serde", ] -[[package]] -name = "parity-bip39" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e69bf016dc406eff7d53a7d3f7cf1c2e72c82b9088aac1118591e36dd2cd3e9" -dependencies = [ - "bitcoin_hashes 0.13.0", - "rand 0.8.5", - "rand_core 0.6.4", - "serde", - "unicode-normalization", -] - [[package]] name = "parity-scale-codec" version = "3.7.5" @@ -3429,12 +3252,6 @@ dependencies = [ "syn 2.0.114", ] -[[package]] -name = "parity-wasm" -version = "0.45.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" - [[package]] name = "parking" version = "2.2.1" @@ -3573,24 +3390,24 @@ checksum = "c32c137808ca984ab2458b612b7eb0462d853ee041a3136e83d54b96074c7610" [[package]] name = "polkavm-common" -version = "0.24.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d91ed9e5af472f729fcf3b3c1cf17508ddbb3505259dd6e2ee0fb5a29e105d22" +checksum = "49a5794b695626ba70d29e66e3f4f4835767452a6723f3a0bc20884b07088fe8" [[package]] name = "polkavm-derive" -version = "0.24.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176144f8661117ea95fa7cf868c9a62d6b143e8a2ebcb7582464c3faade8669a" +checksum = "95282a203ae1f6828a04ff334145c3f6dc718bba6d3959805d273358b45eab93" dependencies = [ "polkavm-derive-impl-macro", ] [[package]] name = "polkavm-derive-impl" -version = "0.24.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5a21844afdfcc10c92b9ef288ccb926211af27478d1730fcd55e4aec710179d" +checksum = "6069dc7995cde6e612b868a02ce48b54397c6d2582bd1b97b63aabbe962cd779" dependencies = [ "polkavm-common", "proc-macro2", @@ -3600,9 +3417,9 @@ dependencies = [ [[package]] name = "polkavm-derive-impl-macro" -version = "0.24.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba0ef0f17ad81413ea1ca5b1b67553aedf5650c88269b673d3ba015c83bc2651" +checksum = "581d34cafec741dc5ffafbb341933c205b6457f3d76257a9d99fb56687219c91" dependencies = [ "polkavm-derive-impl", "syn 2.0.114", @@ -3718,30 +3535,6 @@ dependencies = [ "toml_edit 0.23.10+spec-1.0.0", ] -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn 1.0.109", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - [[package]] name = "proc-macro-error-attr2" version = "2.0.0" @@ -3764,17 +3557,6 @@ dependencies = [ "syn 2.0.114", ] -[[package]] -name = "proc-macro-warning" -version = "1.84.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75eea531cfcd120e0851a3f8aed42c4841f78c889eefafd96339c72677ae42c3" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.114", -] - [[package]] name = "proc-macro2" version = "1.0.106" @@ -3800,9 +3582,9 @@ dependencies = [ [[package]] name = "qp-dilithium-crypto" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb99863567fe9eebd3e23435b233f508ec814ae97e4b944954caec5d07275515" +checksum = "0d68c3fbdb9557a22cb876fc17c483d090e9556cbfdfc52beb0696143d4313d9" dependencies = [ "log", "parity-scale-codec", @@ -3916,9 +3698,9 @@ dependencies = [ [[package]] name = "qp-poseidon" -version = "1.0.7" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4214ec389bff0c21c6ef815cf0ff00656586344dbe20f6441d23a1a6a7f56e84" +checksum = "ce4d91f0077b30ec888423fb7549bea6ee6fa6cbbbfe67eaeea38e101e0f630d" dependencies = [ "log", "p3-field", @@ -3948,9 +3730,9 @@ dependencies = [ [[package]] name = "qp-poseidon-core" -version = "1.0.7" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f65766d6de64eff741c7f402002a3322f5e563d53e0e9040aeab4921ff24f2b" +checksum = "4dcdc2b94d265b986711f5f44eea860c96c9e7b25aaa999f7aa024437c0dcd5f" dependencies = [ "p3-field", "p3-goldilocks", @@ -3972,9 +3754,9 @@ dependencies = [ [[package]] name = "qp-rusty-crystals-hdwallet" -version = "1.3.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d9d8eb6c6a555c831496ab14348a41e4d23aa11943930a568891bf687cd8b1" +checksum = "91781bc0b96238c7e038a2d3157410388cb0458b05d42483851e79684e92f1a8" dependencies = [ "bip39", "bs58", @@ -4086,7 +3868,6 @@ dependencies = [ "clap", "colored", "dirs", - "frame-support", "hex", "indicatif", "jsonrpsee", @@ -4094,7 +3875,6 @@ dependencies = [ "qp-dilithium-crypto", "qp-plonky2", "qp-poseidon", - "qp-poseidon-core", "qp-rusty-crystals-dilithium", "qp-rusty-crystals-hdwallet", "qp-wormhole-aggregator", @@ -5196,49 +4976,11 @@ dependencies = [ "sha1", ] -[[package]] -name = "sp-api" -version = "37.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ee297c1304c6b069784dda4147ef5f478f7aef75b94e0838a38c29de792f1df" -dependencies = [ - "docify", - "hash-db", - "log", - "parity-scale-codec", - "scale-info", - "sp-api-proc-macro", - "sp-core", - "sp-externalities", - "sp-metadata-ir", - "sp-runtime", - "sp-runtime-interface", - "sp-state-machine", - "sp-trie", - "sp-version", - "thiserror 1.0.69", -] - -[[package]] -name = "sp-api-proc-macro" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74a14a276fde5d6e5a0668494e3dd42739b346a7ac7b6348c74f9c9142f4474a" -dependencies = [ - "Inflector", - "blake2", - "expander", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.114", -] - [[package]] name = "sp-application-crypto" -version = "41.0.0" +version = "44.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28c668f1ce424bc131f40ade33fa4c0bd4dcd2428479e1e291aad66d4b00c74f" +checksum = "c33baebe847fc50edccd36d0e0e86df21d4db93876b5d74aadae9d8e96ca35e2" dependencies = [ "parity-scale-codec", "scale-info", @@ -5249,9 +4991,9 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "27.0.0" +version = "28.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2929fd12ac6ca3cfac7f62885866810ba4e9464814dbaa87592b5b5681b29aee" +checksum = "c5f4755af7cc57f4a2a830e134b403fc832caa5d93dacb970ffc7ac717f38c40" dependencies = [ "docify", "integer-sqrt", @@ -5264,12 +5006,13 @@ dependencies = [ [[package]] name = "sp-core" -version = "37.0.0" +version = "39.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e1a46a6b2323401e4489184846a7fb7d89091b42602a2391cd3ef652ede2850" +checksum = "b0f32d2a9af72fe90bec51076d0e109ef3c25aa1d2a1eef15cf3588acd4a23da" dependencies = [ "ark-vrf", "array-bytes", + "bip39", "bitflags 1.3.2", "blake2", "bounded-collections", @@ -5285,7 +5028,6 @@ dependencies = [ "libsecp256k1", "log", "merlin", - "parity-bip39", "parity-scale-codec", "parking_lot", "paste", @@ -5300,7 +5042,6 @@ dependencies = [ "sp-crypto-hashing", "sp-debug-derive", "sp-externalities", - "sp-runtime-interface", "sp-std", "sp-storage", "ss58-registry", @@ -5325,17 +5066,6 @@ dependencies = [ "twox-hash 1.6.3", ] -[[package]] -name = "sp-crypto-hashing-proc-macro" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85d0f1f1e44bd8617eb2a48203ee854981229e3e79e6f468c7175d5fd37489b" -dependencies = [ - "quote", - "sp-crypto-hashing", - "syn 2.0.114", -] - [[package]] name = "sp-debug-derive" version = "14.0.0" @@ -5349,47 +5079,20 @@ dependencies = [ [[package]] name = "sp-externalities" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30cbf059dce180a8bf8b6c8b08b6290fa3d1c7f069a60f1df038ab5dd5fc0ba6" +checksum = "76b67582d8eb400e730d4abaa9f8841898fa36782a2c6b7f61676e5dd6f8166c" dependencies = [ "environmental", "parity-scale-codec", "sp-storage", ] -[[package]] -name = "sp-genesis-builder" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d731c7b601124756432cd9f5b5da55f6bc55b52c7a334b6df340b769d7103383" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde_json", - "sp-api", - "sp-runtime", -] - -[[package]] -name = "sp-inherents" -version = "37.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1371275d805f905c407a9eef8447bc0a3d383dbd9277adba2a6264c6fe7daac" -dependencies = [ - "async-trait", - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "sp-runtime", - "thiserror 1.0.69", -] - [[package]] name = "sp-io" -version = "41.0.1" +version = "44.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3f244e9a2818d21220ceb0915ac73a462814a92d0c354a124a818abdb7f4f66" +checksum = "84c3b7db2a4f180e3362e374754983e3ddc844b7a1cd2c2e5b71ab0bd3673dfe" dependencies = [ "bytes", "docify", @@ -5414,9 +5117,9 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.43.0" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "269d0ee360f6d072f9203485afea35583ac151521a525cc48b2a107fc576c2d9" +checksum = "fc62157d26f8c6847e2827168f71edea83f9f2c3cc12b8fb694dbe58aefe5972" dependencies = [ "parity-scale-codec", "parking_lot", @@ -5424,17 +5127,6 @@ dependencies = [ "sp-externalities", ] -[[package]] -name = "sp-metadata-ir" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15c327d0340a18979aa242f2ad3ad8a6f5fa76c03cc7ca5b50c4770573fd8191" -dependencies = [ - "frame-metadata", - "parity-scale-codec", - "scale-info", -] - [[package]] name = "sp-panic-handler" version = "13.0.2" @@ -5447,11 +5139,12 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "42.0.0" +version = "45.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b25d4d3811410317175ff121b3ff8c8b723504dadf37cd418b5192a5098d11bf" +checksum = "7f799c308ab442aa1c80b193db8c76f36dcc5a911408bf8861511987f4e4f2ee" dependencies = [ "binary-merkle-tree", + "bytes", "docify", "either", "hash256-std-hasher", @@ -5471,21 +5164,21 @@ dependencies = [ "sp-std", "sp-trie", "sp-weights", + "strum", "tracing", "tuplex", ] [[package]] name = "sp-runtime-interface" -version = "30.0.0" +version = "33.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fcd9c219da8c85d45d5ae1ce80e73863a872ac27424880322903c6ac893c06e" +checksum = "22644a2fabb5c246911ecde30fdb7f0801c90f5e611b1147140055ad7b6dabab" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "polkavm-derive", - "primitive-types 0.13.1", "sp-externalities", "sp-runtime-interface-proc-macro", "sp-std", @@ -5497,9 +5190,9 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "19.0.0" +version = "20.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca35431af10a450787ebfdcb6d7a91c23fa91eafe73a3f9d37db05c9ab36154b" +checksum = "04178084ae654b3924934a56943ee73e3562db4d277e948393561b08c3b5b5fe" dependencies = [ "Inflector", "expander", @@ -5509,25 +5202,11 @@ dependencies = [ "syn 2.0.114", ] -[[package]] -name = "sp-staking" -version = "39.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bca7ccd7d7e478e9f8e933850f025a1c7f409a2b70157d30e5f51675427af022" -dependencies = [ - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-runtime", -] - [[package]] name = "sp-state-machine" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "483422b016ee9ddba949db6d3092961ed58526520f0586df74dc07defd922a58" +checksum = "1b5bfda052a2fe9be497139e0c5d0a51946873f3cd7c2ff81bdbcb8b446caa37" dependencies = [ "hash-db", "log", @@ -5565,11 +5244,12 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "17.1.0" +version = "19.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6147a5b8c98b9ed4bf99dc033fab97a468b4645515460974c8784daeb7c35433" +checksum = "f2c7372456c39cc81e15befe54d0caab8378f2b30fd34d1bcb5f0f56631c6b6e" dependencies = [ "parity-scale-codec", + "regex", "tracing", "tracing-core", "tracing-subscriber", @@ -5577,9 +5257,9 @@ dependencies = [ [[package]] name = "sp-trie" -version = "40.0.0" +version = "42.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b2e157c9cf44a1a9d20f3c69322e302db70399bf3f218211387fe009dd4041c" +checksum = "6beed4d77d66f085443eac37171d88b2dbf6f7358d9d3451c11479ddfce60d6e" dependencies = [ "ahash", "foldhash", @@ -5601,42 +5281,11 @@ dependencies = [ "trie-root", ] -[[package]] -name = "sp-version" -version = "40.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98fd599db91c11c32e4df4c85b22b6396f28284889a583db9151ff59599dd1cb" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "parity-wasm", - "scale-info", - "serde", - "sp-crypto-hashing-proc-macro", - "sp-runtime", - "sp-std", - "sp-version-proc-macro", - "thiserror 1.0.69", -] - -[[package]] -name = "sp-version-proc-macro" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54cabc8279e835cd9c608d70cb00e693bddec94fe8478e9f3104dad1da5f93ca" -dependencies = [ - "parity-scale-codec", - "proc-macro-warning", - "proc-macro2", - "quote", - "syn 2.0.114", -] - [[package]] name = "sp-wasm-interface" -version = "22.0.0" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffdbc579c72fc03263894a0077383f543a093020d75741092511bb05a440ada6" +checksum = "dd177d0658f3df0492f28bd39d665133a7868db5aa66c8642c949b6265430719" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -5646,9 +5295,9 @@ dependencies = [ [[package]] name = "sp-weights" -version = "32.0.0" +version = "33.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8a1d448faceb064bb114df31fc45ff86ea2ee8fd17810c4357a578d081f7732" +checksum = "b4c34d353fdc6469da8fae9248ffc1f34faaf04bec8cabc43fd77681dcbc8517" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -5714,6 +5363,28 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +[[package]] +name = "strum" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.114", +] + [[package]] name = "substrate-bip39" version = "0.6.0" @@ -5750,9 +5421,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "subxt" -version = "0.43.1" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8c6dc0f90e23c521465b8f7e026af04a48cc6f00c51d88a8d313d33096149de" +checksum = "3e689b7f5635ffd08301b1b7d427300f7c10bc0e66069c4068d36ce6921bc736" dependencies = [ "async-trait", "derive-where", @@ -5787,9 +5458,9 @@ dependencies = [ [[package]] name = "subxt-codegen" -version = "0.43.0" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1728caecd9700391e78cc30dc298221d6f5ca0ea28258a452aa76b0b7c229842" +checksum = "740eedc385673e6c5e0de60d2ea6d12d311359d3ccea35b86b9161e3acaf938f" dependencies = [ "heck", "parity-scale-codec", @@ -5804,9 +5475,9 @@ dependencies = [ [[package]] name = "subxt-core" -version = "0.43.0" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25338dd11ae34293b8d0c5807064f2e00194ba1bd84cccfa694030c8d185b941" +checksum = "1f2f40f6145c1805e37339c4e460c4a18fcafae913b15d2c648b7cac991fd903" dependencies = [ "base58", "blake2", @@ -5834,9 +5505,9 @@ dependencies = [ [[package]] name = "subxt-lightclient" -version = "0.43.0" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9097ef356e534ce0b6a50b95233512afc394347b971a4f929c4830adc52bbc6f" +checksum = "61321269d3dcc65b8f884eb4d10e393f7bca22b0688d373a0285d4e8ad7221be" dependencies = [ "futures", "futures-util", @@ -5851,9 +5522,9 @@ dependencies = [ [[package]] name = "subxt-macro" -version = "0.43.1" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c269228a2e5de4c0c61ed872b701967ee761df0f167d5b91ecec1185bca65793" +checksum = "efc6c5054278308a2b01804f00676ece77270a358a2caee6df1358cf81ec0cd5" dependencies = [ "darling", "parity-scale-codec", @@ -5868,9 +5539,9 @@ dependencies = [ [[package]] name = "subxt-metadata" -version = "0.43.0" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c134068711c0c46906abc0e6e4911204420331530738e18ca903a5469364d9f" +checksum = "bc80c07a71e180a42ba0f12727b1f9f39bf03746df6d546d24edbbc137f64fa1" dependencies = [ "frame-decode", "frame-metadata", @@ -5883,9 +5554,9 @@ dependencies = [ [[package]] name = "subxt-rpcs" -version = "0.43.0" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25de7727144780d780a6a7d78bbfd28414b8adbab68b05e87329c367d7705be4" +checksum = "3fe65228472ea5a6bd23d8f2cd12833706466d2425805b2a38ecedc258df141a" dependencies = [ "derive-where", "frame-metadata", @@ -5907,9 +5578,9 @@ dependencies = [ [[package]] name = "subxt-utils-fetchmetadata" -version = "0.43.0" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c4fb8fd6b16ecd3537a29d70699f329a68c1e47f70ed1a46d64f76719146563" +checksum = "a26ed947c63b4620429465c9f7e1f346433ddc21780c4bfcfade1e3a4dcdfab8" dependencies = [ "hex", "parity-scale-codec", @@ -6415,12 +6086,6 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" -[[package]] -name = "tt-call" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f195fd851901624eee5a58c4bb2b4f06399148fcd0ed336e6f1cb60a9881df" - [[package]] name = "tuplex" version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index b71c94a..c08da6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,14 +48,12 @@ argon2 = "0.5" # Password-based key derivation (quantum-safe) rand = "0.9" aes-gcm = "0.10" # AES-256-GCM (quantum-safe with 256-bit keys) -# Quantus crypto dependencies +# Quantus crypto dependencies (aligned with chain) qp-rusty-crystals-dilithium = { version = "2.1.0" } -qp-rusty-crystals-hdwallet = { version = "1.3.0" } -qp-poseidon = { version = "1.0.7", features = [ - "serde", -] } -qp-poseidon-core = { version = "1.0.7", default-features = false, features = ["p2", "p3"] } -qp-dilithium-crypto = { version = "0.2.1", features = ["serde"] } +qp-rusty-crystals-hdwallet = { version = "2.0.0" } +# Chain primitive (same branch as node); Cargo finds crate by name in repo +qp-dilithium-crypto = { version = "0.2.2", features = ["serde"] } +qp-poseidon = { version = "1.1.0" } # HTTP client for Subsquid queries reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false } @@ -64,20 +62,17 @@ blake3 = "1.8" # Force patched version of bytes (RUSTSEC-2026-0007) bytes = "1.11.1" -# Blockchain and RPC client -codec = { package = "parity-scale-codec", version = "3.7", features = [ - "derive", -] } -sp-core = { version = "37.0.0" } -sp-runtime = { version = "42.0.0" } -frame-support = { version = "41.0.0" } -subxt = "0.43.0" +# Blockchain deps: align with chain workspace; use chain primitives for qp-dilithium-crypto so sp-* versions match +codec = { package = "parity-scale-codec", version = "3.7", features = ["derive"] } +sp-core = { version = "39.0.0" } +sp-runtime = { version = "45.0.0" } jsonrpsee = { version = "0.24", features = ["client"] } -# Needed for implementing custom Subxt hasher -subxt-metadata = "0.43.0" +# Subxt: latest 0.44.x (bug fixes; compatible with sp-core 39 / scale-codec 3.6) +subxt = "0.44" +subxt-metadata = "0.44" -# ZK proof generation +# ZK proof generation (aligned with chain) anyhow = "1.0" qp-wormhole-circuit = { version = "1.0.7", default-features = false, features = ["std"] } qp-wormhole-prover = { version = "1.0.7", default-features = false, features = ["std"] } @@ -88,5 +83,5 @@ qp-zk-circuits-common = { version = "1.0.7", default-features = false, features qp-plonky2 = { version = "1.1.3", default-features = false, features = ["rand", "std"] } [dev-dependencies] -tempfile = "3.8" +tempfile = "3.8.1" serial_test = "3.1" diff --git a/src/chain/quantus_subxt.rs b/src/chain/quantus_subxt.rs index dd68717..a78d52d 100644 --- a/src/chain/quantus_subxt.rs +++ b/src/chain/quantus_subxt.rs @@ -193,7 +193,7 @@ pub mod api { pub struct Version {} pub mod execute_block { use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: qp_header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: qp_header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > > ; pub mod output { use super::runtime_types; pub type Output = (); @@ -525,7 +525,7 @@ pub mod api { } pub mod check_inherents { use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: qp_header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: qp_header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > > ; pub type Data = runtime_types::sp_inherents::InherentData; pub mod output { use super::runtime_types; @@ -1469,10 +1469,9 @@ pub mod api { "query_call_info", types::QueryCallInfo { call, len }, [ - 199u8, 188u8, 161u8, 1u8, 221u8, 186u8, 101u8, 194u8, 181u8, 107u8, - 212u8, 35u8, 2u8, 8u8, 198u8, 148u8, 37u8, 179u8, 92u8, 122u8, 253u8, - 235u8, 62u8, 173u8, 213u8, 18u8, 26u8, 170u8, 135u8, 120u8, 162u8, - 32u8, + 198u8, 65u8, 204u8, 71u8, 28u8, 170u8, 188u8, 123u8, 4u8, 169u8, 112u8, + 140u8, 13u8, 71u8, 97u8, 37u8, 125u8, 168u8, 73u8, 123u8, 116u8, 53u8, + 236u8, 206u8, 173u8, 112u8, 141u8, 87u8, 177u8, 37u8, 238u8, 57u8, ], ) } @@ -1490,9 +1489,10 @@ pub mod api { "query_call_fee_details", types::QueryCallFeeDetails { call, len }, [ - 156u8, 135u8, 85u8, 250u8, 145u8, 189u8, 63u8, 36u8, 186u8, 134u8, 9u8, - 17u8, 4u8, 79u8, 120u8, 98u8, 63u8, 219u8, 216u8, 44u8, 158u8, 88u8, - 126u8, 41u8, 0u8, 97u8, 93u8, 234u8, 249u8, 179u8, 170u8, 134u8, + 181u8, 192u8, 142u8, 93u8, 47u8, 223u8, 252u8, 28u8, 253u8, 247u8, + 255u8, 49u8, 206u8, 94u8, 24u8, 227u8, 178u8, 147u8, 3u8, 138u8, 204u8, + 67u8, 221u8, 34u8, 21u8, 249u8, 185u8, 109u8, 195u8, 213u8, 165u8, + 162u8, ], ) } @@ -1981,7 +1981,11 @@ pub mod api { } } pub struct ViewFunctionsApi; - impl ViewFunctionsApi {} + impl ViewFunctionsApi { + pub fn assets(&self) -> assets::view_functions::ViewFunctionsApi { + assets::view_functions::ViewFunctionsApi + } + } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for(metadata: &::subxt::ext::subxt_core::Metadata) -> bool { let runtime_metadata_hash = metadata @@ -1991,9 +1995,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 6u8, 176u8, 107u8, 34u8, 235u8, 221u8, 156u8, 243u8, 98u8, 115u8, 170u8, 186u8, - 22u8, 200u8, 173u8, 142u8, 190u8, 154u8, 75u8, 86u8, 176u8, 207u8, 65u8, 103u8, - 203u8, 172u8, 16u8, 101u8, 182u8, 189u8, 166u8, 9u8, + 241u8, 104u8, 181u8, 101u8, 78u8, 126u8, 146u8, 140u8, 82u8, 117u8, 79u8, 128u8, + 3u8, 33u8, 86u8, 223u8, 167u8, 80u8, 94u8, 196u8, 191u8, 207u8, 240u8, 239u8, + 186u8, 203u8, 0u8, 147u8, 140u8, 8u8, 140u8, 64u8, ] } pub mod system { @@ -3092,10 +3096,10 @@ pub mod api { "Events", (), [ - 241u8, 44u8, 250u8, 237u8, 114u8, 188u8, 218u8, 139u8, 207u8, 203u8, - 98u8, 141u8, 52u8, 57u8, 67u8, 245u8, 118u8, 165u8, 129u8, 196u8, - 139u8, 67u8, 96u8, 116u8, 183u8, 195u8, 161u8, 74u8, 24u8, 241u8, 78u8, - 18u8, + 129u8, 117u8, 78u8, 200u8, 45u8, 177u8, 108u8, 250u8, 68u8, 196u8, + 35u8, 140u8, 114u8, 113u8, 44u8, 193u8, 216u8, 27u8, 164u8, 117u8, + 173u8, 170u8, 119u8, 26u8, 55u8, 150u8, 155u8, 226u8, 61u8, 102u8, + 162u8, 127u8, ], ) } @@ -4392,6 +4396,25 @@ pub mod api { )] #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Some credit was balanced and added to the TotalIssuance."] + pub struct MintedCredit { + pub amount: minted_credit::Amount, + } + pub mod minted_credit { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for MintedCredit { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "MintedCredit"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was burned from an account."] pub struct Burned { pub who: burned::Who, @@ -4413,6 +4436,25 @@ pub mod api { )] #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Some debt has been dropped from the Total Issuance."] + pub struct BurnedDebt { + pub amount: burned_debt::Amount, + } + pub mod burned_debt { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for BurnedDebt { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BurnedDebt"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { pub who: suspended::Who, @@ -4610,6 +4652,142 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "TotalIssuanceForced"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Some balance was placed on hold."] + pub struct Held { + pub reason: held::Reason, + pub who: held::Who, + pub amount: held::Amount, + } + pub mod held { + use super::runtime_types; + pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for Held { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Held"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Held balance was burned from an account."] + pub struct BurnedHeld { + pub reason: burned_held::Reason, + pub who: burned_held::Who, + pub amount: burned_held::Amount, + } + pub mod burned_held { + use super::runtime_types; + pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for BurnedHeld { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BurnedHeld"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "A transfer of `amount` on hold from `source` to `dest` was initiated."] + pub struct TransferOnHold { + pub reason: transfer_on_hold::Reason, + pub source: transfer_on_hold::Source, + pub dest: transfer_on_hold::Dest, + pub amount: transfer_on_hold::Amount, + } + pub mod transfer_on_hold { + use super::runtime_types; + pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason; + pub type Source = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Dest = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for TransferOnHold { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "TransferOnHold"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "The `transferred` balance is placed on hold at the `dest` account."] + pub struct TransferAndHold { + pub reason: transfer_and_hold::Reason, + pub source: transfer_and_hold::Source, + pub dest: transfer_and_hold::Dest, + pub transferred: transfer_and_hold::Transferred, + } + pub mod transfer_and_hold { + use super::runtime_types; + pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason; + pub type Source = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Dest = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Transferred = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for TransferAndHold { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "TransferAndHold"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Some balance was released from hold."] + pub struct Released { + pub reason: released::Reason, + pub who: released::Who, + pub amount: released::Amount, + } + pub mod released { + use super::runtime_types; + pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for Released { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Released"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "An unexpected/defensive event was triggered."] + pub struct Unexpected(pub unexpected::Field0); + pub mod unexpected { + use super::runtime_types; + pub type Field0 = runtime_types::pallet_balances::pallet::UnexpectedKind; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for Unexpected { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unexpected"; + } } pub mod storage { use super::runtime_types; @@ -5128,6 +5306,10 @@ pub mod api { use super::runtime_types; pub type StorageVersion = runtime_types::pallet_transaction_payment::Releases; } + pub mod tx_payment_credit { + use super::runtime_types; + pub type TxPaymentCredit = runtime_types :: frame_support :: traits :: storage :: NoDrop < runtime_types :: frame_support :: traits :: tokens :: fungible :: imbalance :: Imbalance < :: core :: primitive :: u128 > > ; + } } pub struct StorageApi; impl StorageApi { @@ -5173,6 +5355,29 @@ pub mod api { ], ) } + #[doc = " The `OnChargeTransaction` stores the withdrawn tx fee here."] + #[doc = ""] + #[doc = " Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate."] + pub fn tx_payment_credit( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::tx_payment_credit::TxPaymentCredit, + ::subxt::ext::subxt_core::utils::Yes, + (), + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "TransactionPayment", + "TxPaymentCredit", + (), + [ + 39u8, 127u8, 132u8, 77u8, 25u8, 10u8, 195u8, 64u8, 255u8, 212u8, 183u8, + 177u8, 238u8, 24u8, 81u8, 65u8, 93u8, 177u8, 209u8, 134u8, 245u8, + 241u8, 252u8, 87u8, 179u8, 61u8, 168u8, 77u8, 65u8, 13u8, 72u8, 205u8, + ], + ) + } } } pub mod constants { @@ -5375,10 +5580,9 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 235u8, 252u8, 124u8, 242u8, 195u8, 130u8, 86u8, 167u8, 204u8, 55u8, - 207u8, 110u8, 60u8, 82u8, 15u8, 153u8, 58u8, 150u8, 49u8, 77u8, 183u8, - 179u8, 231u8, 126u8, 81u8, 68u8, 233u8, 247u8, 190u8, 21u8, 53u8, - 194u8, + 24u8, 141u8, 2u8, 72u8, 96u8, 108u8, 188u8, 185u8, 194u8, 189u8, 85u8, + 38u8, 202u8, 47u8, 99u8, 163u8, 41u8, 150u8, 193u8, 31u8, 229u8, 218u8, + 124u8, 107u8, 188u8, 18u8, 24u8, 48u8, 88u8, 224u8, 139u8, 146u8, ], ) } @@ -5401,9 +5605,9 @@ pub mod api { weight, }, [ - 214u8, 170u8, 23u8, 224u8, 160u8, 17u8, 199u8, 78u8, 163u8, 142u8, - 191u8, 81u8, 242u8, 253u8, 7u8, 41u8, 42u8, 123u8, 122u8, 6u8, 71u8, - 144u8, 194u8, 23u8, 2u8, 82u8, 99u8, 51u8, 26u8, 35u8, 125u8, 136u8, + 46u8, 22u8, 24u8, 76u8, 164u8, 139u8, 82u8, 44u8, 160u8, 220u8, 119u8, + 122u8, 176u8, 4u8, 184u8, 55u8, 219u8, 75u8, 226u8, 43u8, 51u8, 153u8, + 189u8, 146u8, 245u8, 96u8, 161u8, 218u8, 243u8, 35u8, 70u8, 249u8, ], ) } @@ -5441,9 +5645,10 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 223u8, 26u8, 145u8, 224u8, 83u8, 235u8, 132u8, 251u8, 203u8, 56u8, - 35u8, 235u8, 15u8, 239u8, 96u8, 37u8, 70u8, 167u8, 19u8, 28u8, 179u8, - 196u8, 251u8, 19u8, 53u8, 98u8, 90u8, 187u8, 93u8, 139u8, 8u8, 46u8, + 58u8, 78u8, 164u8, 136u8, 199u8, 77u8, 215u8, 140u8, 160u8, 177u8, + 127u8, 208u8, 164u8, 155u8, 35u8, 130u8, 92u8, 143u8, 46u8, 82u8, + 232u8, 4u8, 61u8, 213u8, 74u8, 103u8, 128u8, 81u8, 26u8, 137u8, 39u8, + 71u8, ], ) } @@ -6900,10 +7105,9 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 224u8, 6u8, 189u8, 143u8, 200u8, 31u8, 204u8, 102u8, 211u8, 15u8, - 164u8, 111u8, 111u8, 157u8, 53u8, 14u8, 41u8, 226u8, 8u8, 91u8, 222u8, - 46u8, 96u8, 23u8, 184u8, 224u8, 106u8, 73u8, 136u8, 212u8, 163u8, - 119u8, + 232u8, 174u8, 107u8, 181u8, 152u8, 133u8, 51u8, 35u8, 111u8, 19u8, + 66u8, 80u8, 0u8, 148u8, 65u8, 239u8, 162u8, 250u8, 28u8, 124u8, 20u8, + 250u8, 177u8, 112u8, 35u8, 19u8, 32u8, 9u8, 166u8, 48u8, 69u8, 206u8, ], ) } @@ -6945,9 +7149,9 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 228u8, 52u8, 241u8, 237u8, 177u8, 69u8, 209u8, 126u8, 196u8, 0u8, 1u8, - 152u8, 0u8, 117u8, 117u8, 227u8, 72u8, 124u8, 81u8, 126u8, 11u8, 117u8, - 180u8, 18u8, 129u8, 149u8, 145u8, 206u8, 126u8, 13u8, 138u8, 140u8, + 13u8, 254u8, 63u8, 126u8, 76u8, 11u8, 93u8, 141u8, 57u8, 125u8, 141u8, + 225u8, 225u8, 5u8, 181u8, 28u8, 1u8, 94u8, 156u8, 234u8, 29u8, 214u8, + 124u8, 169u8, 128u8, 135u8, 70u8, 217u8, 50u8, 249u8, 178u8, 84u8, ], ) } @@ -6986,10 +7190,9 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 218u8, 34u8, 168u8, 237u8, 208u8, 192u8, 26u8, 15u8, 77u8, 152u8, - 243u8, 13u8, 66u8, 66u8, 168u8, 240u8, 182u8, 196u8, 247u8, 169u8, - 126u8, 238u8, 147u8, 25u8, 252u8, 154u8, 229u8, 118u8, 103u8, 62u8, - 252u8, 183u8, + 162u8, 125u8, 219u8, 73u8, 158u8, 117u8, 43u8, 87u8, 203u8, 66u8, 70u8, + 2u8, 216u8, 81u8, 36u8, 114u8, 236u8, 161u8, 11u8, 154u8, 173u8, 97u8, + 75u8, 215u8, 178u8, 154u8, 37u8, 132u8, 100u8, 230u8, 188u8, 208u8, ], ) } @@ -7014,9 +7217,10 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 157u8, 255u8, 142u8, 245u8, 199u8, 237u8, 39u8, 15u8, 52u8, 63u8, 11u8, - 103u8, 84u8, 123u8, 21u8, 63u8, 19u8, 191u8, 243u8, 74u8, 140u8, 253u8, - 23u8, 246u8, 33u8, 126u8, 198u8, 67u8, 171u8, 116u8, 6u8, 136u8, + 139u8, 221u8, 152u8, 183u8, 20u8, 207u8, 141u8, 46u8, 8u8, 172u8, + 154u8, 85u8, 106u8, 139u8, 217u8, 12u8, 190u8, 12u8, 4u8, 225u8, 103u8, + 127u8, 84u8, 158u8, 131u8, 218u8, 175u8, 114u8, 135u8, 111u8, 154u8, + 173u8, ], ) } @@ -8044,9 +8248,9 @@ pub mod api { "batch", types::Batch { calls }, [ - 155u8, 149u8, 6u8, 3u8, 240u8, 237u8, 103u8, 22u8, 219u8, 24u8, 245u8, - 110u8, 138u8, 189u8, 75u8, 126u8, 215u8, 181u8, 117u8, 72u8, 196u8, - 39u8, 186u8, 101u8, 187u8, 8u8, 96u8, 149u8, 28u8, 248u8, 222u8, 109u8, + 218u8, 227u8, 88u8, 252u8, 144u8, 164u8, 107u8, 191u8, 4u8, 6u8, 242u8, + 220u8, 160u8, 117u8, 131u8, 23u8, 30u8, 44u8, 210u8, 225u8, 129u8, + 119u8, 42u8, 236u8, 42u8, 77u8, 133u8, 77u8, 167u8, 238u8, 189u8, 18u8, ], ) } @@ -8076,10 +8280,10 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 173u8, 115u8, 46u8, 156u8, 121u8, 254u8, 127u8, 247u8, 13u8, 159u8, - 73u8, 166u8, 201u8, 33u8, 250u8, 239u8, 35u8, 251u8, 200u8, 191u8, - 248u8, 135u8, 58u8, 73u8, 213u8, 223u8, 252u8, 27u8, 226u8, 201u8, - 246u8, 77u8, + 61u8, 204u8, 36u8, 196u8, 16u8, 224u8, 252u8, 119u8, 160u8, 206u8, + 178u8, 6u8, 162u8, 252u8, 50u8, 119u8, 243u8, 74u8, 88u8, 93u8, 168u8, + 135u8, 247u8, 31u8, 113u8, 228u8, 106u8, 61u8, 76u8, 137u8, 49u8, + 152u8, ], ) } @@ -8105,9 +8309,9 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 128u8, 37u8, 142u8, 195u8, 193u8, 178u8, 226u8, 203u8, 7u8, 68u8, 45u8, - 6u8, 57u8, 118u8, 167u8, 205u8, 14u8, 254u8, 113u8, 148u8, 121u8, 49u8, - 73u8, 85u8, 171u8, 120u8, 214u8, 244u8, 189u8, 148u8, 26u8, 42u8, + 95u8, 55u8, 212u8, 217u8, 21u8, 7u8, 172u8, 181u8, 131u8, 146u8, 194u8, + 179u8, 219u8, 165u8, 223u8, 70u8, 125u8, 117u8, 103u8, 207u8, 97u8, + 4u8, 2u8, 153u8, 7u8, 107u8, 218u8, 218u8, 238u8, 159u8, 132u8, 169u8, ], ) } @@ -8130,9 +8334,9 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 180u8, 19u8, 17u8, 244u8, 48u8, 143u8, 161u8, 235u8, 101u8, 243u8, - 230u8, 227u8, 114u8, 194u8, 81u8, 81u8, 123u8, 243u8, 218u8, 8u8, 36u8, - 39u8, 113u8, 231u8, 135u8, 169u8, 130u8, 71u8, 161u8, 21u8, 32u8, 63u8, + 45u8, 253u8, 46u8, 68u8, 166u8, 17u8, 170u8, 35u8, 107u8, 183u8, 69u8, + 167u8, 62u8, 147u8, 100u8, 67u8, 144u8, 182u8, 141u8, 227u8, 20u8, + 175u8, 1u8, 229u8, 103u8, 16u8, 162u8, 14u8, 144u8, 57u8, 62u8, 154u8, ], ) } @@ -8158,9 +8362,9 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 192u8, 220u8, 30u8, 205u8, 109u8, 252u8, 9u8, 10u8, 4u8, 11u8, 39u8, - 93u8, 83u8, 157u8, 223u8, 68u8, 132u8, 9u8, 203u8, 158u8, 114u8, 64u8, - 238u8, 241u8, 48u8, 254u8, 246u8, 152u8, 43u8, 99u8, 30u8, 67u8, + 143u8, 1u8, 248u8, 160u8, 18u8, 153u8, 38u8, 72u8, 212u8, 148u8, 146u8, + 7u8, 79u8, 129u8, 146u8, 207u8, 173u8, 174u8, 48u8, 237u8, 195u8, 6u8, + 40u8, 26u8, 146u8, 94u8, 85u8, 89u8, 187u8, 161u8, 10u8, 186u8, ], ) } @@ -8183,9 +8387,9 @@ pub mod api { weight, }, [ - 251u8, 120u8, 183u8, 92u8, 139u8, 200u8, 63u8, 201u8, 130u8, 145u8, - 125u8, 95u8, 17u8, 214u8, 57u8, 49u8, 199u8, 175u8, 155u8, 214u8, 64u8, - 61u8, 40u8, 245u8, 169u8, 110u8, 218u8, 80u8, 82u8, 68u8, 10u8, 212u8, + 45u8, 178u8, 212u8, 106u8, 190u8, 63u8, 70u8, 5u8, 15u8, 114u8, 128u8, + 212u8, 20u8, 232u8, 8u8, 28u8, 100u8, 12u8, 94u8, 250u8, 250u8, 221u8, + 169u8, 206u8, 52u8, 75u8, 152u8, 194u8, 133u8, 223u8, 85u8, 213u8, ], ) } @@ -8225,9 +8429,9 @@ pub mod api { fallback: ::subxt::ext::subxt_core::alloc::boxed::Box::new(fallback), }, [ - 42u8, 41u8, 254u8, 182u8, 132u8, 227u8, 59u8, 189u8, 21u8, 114u8, 86u8, - 54u8, 222u8, 2u8, 30u8, 39u8, 126u8, 189u8, 182u8, 196u8, 43u8, 144u8, - 82u8, 142u8, 193u8, 130u8, 12u8, 176u8, 130u8, 8u8, 224u8, 66u8, + 182u8, 227u8, 213u8, 214u8, 220u8, 74u8, 1u8, 211u8, 42u8, 249u8, + 237u8, 97u8, 126u8, 112u8, 93u8, 63u8, 5u8, 120u8, 216u8, 157u8, 132u8, + 123u8, 231u8, 38u8, 7u8, 139u8, 15u8, 126u8, 104u8, 63u8, 54u8, 76u8, ], ) } @@ -8250,9 +8454,9 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 75u8, 215u8, 72u8, 28u8, 158u8, 75u8, 120u8, 123u8, 163u8, 231u8, - 230u8, 11u8, 125u8, 11u8, 40u8, 218u8, 78u8, 60u8, 240u8, 31u8, 159u8, - 16u8, 135u8, 56u8, 244u8, 178u8, 72u8, 63u8, 14u8, 23u8, 193u8, 52u8, + 209u8, 114u8, 253u8, 16u8, 26u8, 99u8, 196u8, 135u8, 161u8, 52u8, 48u8, + 224u8, 235u8, 129u8, 247u8, 215u8, 88u8, 253u8, 178u8, 0u8, 82u8, + 173u8, 148u8, 199u8, 98u8, 250u8, 50u8, 6u8, 106u8, 190u8, 52u8, 214u8, ], ) } @@ -11232,11 +11436,16 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] - pub struct Delegated(pub delegated::Field0, pub delegated::Field1); + pub struct Delegated( + pub delegated::Field0, + pub delegated::Field1, + pub delegated::Field2, + ); pub mod delegated { use super::runtime_types; pub type Field0 = ::subxt::ext::subxt_core::utils::AccountId32; pub type Field1 = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Field2 = ::core::primitive::u16; } impl ::subxt::ext::subxt_core::events::StaticEvent for Delegated { const PALLET: &'static str = "ConvictionVoting"; @@ -11250,10 +11459,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An \\[account\\] has cancelled a previous delegation operation."] - pub struct Undelegated(pub undelegated::Field0); + pub struct Undelegated(pub undelegated::Field0, pub undelegated::Field1); pub mod undelegated { use super::runtime_types; pub type Field0 = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Field1 = ::core::primitive::u16; } impl ::subxt::ext::subxt_core::events::StaticEvent for Undelegated { const PALLET: &'static str = "ConvictionVoting"; @@ -11270,6 +11480,7 @@ pub mod api { pub struct Voted { pub who: voted::Who, pub vote: voted::Vote, + pub poll_index: voted::PollIndex, } pub mod voted { use super::runtime_types; @@ -11277,6 +11488,7 @@ pub mod api { pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, >; + pub type PollIndex = ::core::primitive::u32; } impl ::subxt::ext::subxt_core::events::StaticEvent for Voted { const PALLET: &'static str = "ConvictionVoting"; @@ -11293,6 +11505,7 @@ pub mod api { pub struct VoteRemoved { pub who: vote_removed::Who, pub vote: vote_removed::Vote, + pub poll_index: vote_removed::PollIndex, } pub mod vote_removed { use super::runtime_types; @@ -11300,6 +11513,7 @@ pub mod api { pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, >; + pub type PollIndex = ::core::primitive::u32; } impl ::subxt::ext::subxt_core::events::StaticEvent for VoteRemoved { const PALLET: &'static str = "ConvictionVoting"; @@ -14341,9 +14555,10 @@ pub mod api { call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 236u8, 116u8, 42u8, 49u8, 236u8, 100u8, 253u8, 181u8, 98u8, 152u8, - 51u8, 82u8, 0u8, 40u8, 214u8, 186u8, 90u8, 117u8, 84u8, 251u8, 163u8, - 107u8, 39u8, 248u8, 22u8, 20u8, 231u8, 105u8, 247u8, 185u8, 37u8, 95u8, + 74u8, 28u8, 170u8, 7u8, 84u8, 125u8, 208u8, 229u8, 206u8, 35u8, 213u8, + 58u8, 187u8, 211u8, 153u8, 234u8, 193u8, 109u8, 97u8, 114u8, 59u8, + 238u8, 20u8, 171u8, 27u8, 139u8, 40u8, 12u8, 219u8, 199u8, 220u8, + 245u8, ], ) } @@ -16343,9 +16558,10 @@ pub mod api { #[doc = ""] #[doc = "A deposit will be taken from the signer account."] #[doc = ""] - #[doc = "- `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account"] - #[doc = " must have sufficient funds for a deposit to be taken."] - #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created, the asset status must"] + #[doc = " be live."] #[doc = "- `who`: The account to be created."] #[doc = ""] #[doc = "Emits `Touched` event when successful."] @@ -16491,6 +16707,41 @@ pub mod api { const PALLET: &'static str = "Assets"; const CALL: &'static str = "transfer_all"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Sets the trusted reserve information of an asset."] + #[doc = ""] + #[doc = "Origin must be the Owner of the asset `id`. The origin must conform to the configured"] + #[doc = "`CreateOrigin` or be the signed `owner` configured during asset creation."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `reserves`: The full list of trusted reserves information."] + #[doc = ""] + #[doc = "Emits `AssetMinBalanceChanged` event when successful."] + pub struct SetReserves { + #[codec(compact)] + pub id: set_reserves::Id, + pub reserves: set_reserves::Reserves, + } + pub mod set_reserves { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Reserves = + runtime_types::bounded_collections::bounded_vec::BoundedVec<()>; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetReserves { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "set_reserves"; + } } pub struct TransactionApi; impl TransactionApi { @@ -17413,9 +17664,10 @@ pub mod api { #[doc = ""] #[doc = "A deposit will be taken from the signer account."] #[doc = ""] - #[doc = "- `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account"] - #[doc = " must have sufficient funds for a deposit to be taken."] - #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created, the asset status must"] + #[doc = " be live."] #[doc = "- `who`: The account to be created."] #[doc = ""] #[doc = "Emits `Touched` event when successful."] @@ -17526,6 +17778,230 @@ pub mod api { ], ) } + #[doc = "Sets the trusted reserve information of an asset."] + #[doc = ""] + #[doc = "Origin must be the Owner of the asset `id`. The origin must conform to the configured"] + #[doc = "`CreateOrigin` or be the signed `owner` configured during asset creation."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `reserves`: The full list of trusted reserves information."] + #[doc = ""] + #[doc = "Emits `AssetMinBalanceChanged` event when successful."] + pub fn set_reserves( + &self, + id: types::set_reserves::Id, + reserves: types::set_reserves::Reserves, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Assets", + "set_reserves", + types::SetReserves { id, reserves }, + [ + 170u8, 210u8, 175u8, 235u8, 220u8, 223u8, 164u8, 253u8, 189u8, 4u8, + 100u8, 160u8, 181u8, 44u8, 79u8, 187u8, 37u8, 102u8, 0u8, 187u8, 48u8, + 82u8, 247u8, 200u8, 2u8, 141u8, 57u8, 55u8, 224u8, 32u8, 176u8, 231u8, + ], + ) + } + } + } + pub mod view_functions { + use super::{root_mod, runtime_types}; + pub struct ViewFunctionsApi; + impl ViewFunctionsApi { + #[doc = " Provide the asset details for asset `id`."] + pub fn asset_details( + &self, + id: asset_details::Id, + ) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload< + asset_details::Input, + asset_details::output::Output, + > { + ::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static( + [ + 104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8, + 196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 167u8, 2u8, 151u8, 173u8, 11u8, + 75u8, 221u8, 61u8, 164u8, 183u8, 70u8, 41u8, 166u8, 90u8, 110u8, 92u8, + ], + asset_details::Input { id }, + [ + 211u8, 90u8, 10u8, 200u8, 75u8, 44u8, 223u8, 16u8, 230u8, 165u8, 250u8, + 228u8, 154u8, 9u8, 130u8, 112u8, 113u8, 184u8, 170u8, 127u8, 188u8, + 95u8, 63u8, 51u8, 78u8, 130u8, 147u8, 123u8, 190u8, 170u8, 16u8, 65u8, + ], + ) + } + #[doc = " Provide the balance of `who` for asset `id`."] + pub fn balance_of( + &self, + who: balance_of::Who, + id: balance_of::Id, + ) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload< + balance_of::Input, + balance_of::output::Output, + > { + ::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static( + [ + 104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8, + 196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 83u8, 26u8, 199u8, 226u8, 27u8, + 118u8, 177u8, 33u8, 231u8, 97u8, 228u8, 115u8, 65u8, 154u8, 27u8, 2u8, + ], + balance_of::Input { who, id }, + [ + 111u8, 166u8, 174u8, 198u8, 50u8, 246u8, 223u8, 192u8, 195u8, 6u8, + 218u8, 113u8, 85u8, 251u8, 79u8, 59u8, 196u8, 83u8, 39u8, 141u8, 200u8, + 113u8, 92u8, 67u8, 110u8, 112u8, 255u8, 77u8, 94u8, 232u8, 148u8, + 189u8, + ], + ) + } + #[doc = " Provide the configured metadata for asset `id`."] + pub fn get_metadata( + &self, + id: get_metadata::Id, + ) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload< + get_metadata::Input, + get_metadata::output::Output, + > { + ::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static( + [ + 104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8, + 196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 46u8, 135u8, 102u8, 164u8, 13u8, + 27u8, 105u8, 214u8, 21u8, 27u8, 216u8, 1u8, 229u8, 117u8, 80u8, 94u8, + ], + get_metadata::Input { id }, + [ + 194u8, 126u8, 37u8, 51u8, 199u8, 8u8, 17u8, 77u8, 127u8, 118u8, 9u8, + 196u8, 248u8, 40u8, 136u8, 175u8, 243u8, 35u8, 137u8, 159u8, 137u8, + 162u8, 58u8, 4u8, 206u8, 51u8, 222u8, 234u8, 218u8, 8u8, 23u8, 195u8, + ], + ) + } + #[doc = " Provide the configured reserves data for asset `id`."] + pub fn get_reserves_data( + &self, + id: get_reserves_data::Id, + ) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload< + get_reserves_data::Input, + get_reserves_data::output::Output, + > { + ::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static( + [ + 104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8, + 196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 100u8, 246u8, 63u8, 41u8, 35u8, + 227u8, 152u8, 40u8, 36u8, 49u8, 99u8, 129u8, 174u8, 30u8, 105u8, 134u8, + ], + get_reserves_data::Input { id }, + [ + 209u8, 99u8, 108u8, 142u8, 202u8, 226u8, 194u8, 23u8, 99u8, 165u8, + 72u8, 212u8, 158u8, 187u8, 5u8, 201u8, 58u8, 51u8, 161u8, 119u8, 0u8, + 58u8, 15u8, 109u8, 255u8, 0u8, 192u8, 222u8, 51u8, 241u8, 34u8, 116u8, + ], + ) + } + } + pub mod asset_details { + use super::{root_mod, runtime_types}; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Input { + pub id: Id, + } + pub type Id = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::pallet_assets::types::AssetDetails< + ::core::primitive::u128, + ::subxt::ext::subxt_core::utils::AccountId32, + ::core::primitive::u128, + >, + >; + } + } + pub mod balance_of { + use super::{root_mod, runtime_types}; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Input { + pub who: Who, + pub id: Id, + } + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Id = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<::core::primitive::u128>; + } + } + pub mod get_metadata { + use super::{root_mod, runtime_types}; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Input { + pub id: Id, + } + pub type Id = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::pallet_assets::types::AssetMetadata< + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >; + } + } + pub mod get_reserves_data { + use super::{root_mod, runtime_types}; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Input { + pub id: Id, + } + pub type Id = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::subxt::ext::subxt_core::alloc::vec::Vec<()>; + } } } #[doc = "The `Event` enum of this pallet"] @@ -18109,6 +18585,46 @@ pub mod api { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Withdrawn"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Reserve information was set or updated for `asset_id`."] + pub struct ReservesUpdated { + pub asset_id: reserves_updated::AssetId, + pub reserves: reserves_updated::Reserves, + } + pub mod reserves_updated { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Reserves = ::subxt::ext::subxt_core::alloc::vec::Vec<()>; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for ReservesUpdated { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ReservesUpdated"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Reserve information was removed for `asset_id`."] + pub struct ReservesRemoved { + pub asset_id: reserves_removed::AssetId, + } + pub mod reserves_removed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for ReservesRemoved { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ReservesRemoved"; + } } pub mod storage { use super::runtime_types; @@ -18154,6 +18670,12 @@ pub mod api { >; pub type Param0 = ::core::primitive::u32; } + pub mod reserves { + use super::runtime_types; + pub type Reserves = + runtime_types::bounded_collections::bounded_vec::BoundedVec<()>; + pub type Param0 = ::core::primitive::u32; + } pub mod next_asset_id { use super::runtime_types; pub type NextAssetId = ::core::primitive::u32; @@ -18453,6 +18975,51 @@ pub mod api { ], ) } + #[doc = " Maps an asset to a list of its configured reserve information."] + pub fn reserves_iter( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::reserves::Reserves, + (), + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Assets", + "Reserves", + (), + [ + 118u8, 223u8, 23u8, 189u8, 54u8, 5u8, 111u8, 29u8, 141u8, 11u8, 214u8, + 144u8, 141u8, 14u8, 233u8, 226u8, 24u8, 243u8, 20u8, 91u8, 144u8, + 162u8, 54u8, 144u8, 17u8, 115u8, 12u8, 127u8, 20u8, 255u8, 14u8, 188u8, + ], + ) + } + #[doc = " Maps an asset to a list of its configured reserve information."] + pub fn reserves( + &self, + _0: types::reserves::Param0, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::reserves::Param0, + >, + types::reserves::Reserves, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Assets", + "Reserves", + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0), + [ + 118u8, 223u8, 23u8, 189u8, 54u8, 5u8, 111u8, 29u8, 141u8, 11u8, 214u8, + 144u8, 141u8, 14u8, 233u8, 226u8, 24u8, 243u8, 20u8, 91u8, 144u8, + 162u8, 54u8, 144u8, 17u8, 115u8, 12u8, 127u8, 20u8, 255u8, 14u8, 188u8, + ], + ) + } #[doc = " The asset ID enforced for the next asset creation, if any present. Otherwise, this storage"] #[doc = " item has no effect."] #[doc = ""] @@ -20195,10 +20762,13 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ProofVerified { pub exit_amount: proof_verified::ExitAmount, + pub nullifiers: proof_verified::Nullifiers, } pub mod proof_verified { use super::runtime_types; pub type ExitAmount = ::core::primitive::u128; + pub type Nullifiers = + ::subxt::ext::subxt_core::alloc::vec::Vec<[::core::primitive::u8; 32usize]>; } impl ::subxt::ext::subxt_core::events::StaticEvent for ProofVerified { const PALLET: &'static str = "Wormhole"; @@ -20676,8 +21246,43 @@ pub mod api { After(_0), } } + pub mod storage { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct NoDrop<_0>(pub _0); + } pub mod tokens { use super::runtime_types; + pub mod fungible { + use super::runtime_types; + pub mod imbalance { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Imbalance<_0> { + pub amount: _0, + } + } + } pub mod misc { use super::runtime_types; #[derive( @@ -21859,9 +22464,10 @@ pub mod api { #[doc = ""] #[doc = "A deposit will be taken from the signer account."] #[doc = ""] - #[doc = "- `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account"] - #[doc = " must have sufficient funds for a deposit to be taken."] - #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created, the asset status must"] + #[doc = " be live."] #[doc = "- `who`: The account to be created."] #[doc = ""] #[doc = "Emits `Touched` event when successful."] @@ -21940,6 +22546,21 @@ pub mod api { >, keep_alive: ::core::primitive::bool, }, + #[codec(index = 33)] + #[doc = "Sets the trusted reserve information of an asset."] + #[doc = ""] + #[doc = "Origin must be the Owner of the asset `id`. The origin must conform to the configured"] + #[doc = "`CreateOrigin` or be the signed `owner` configured during asset creation."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `reserves`: The full list of trusted reserves information."] + #[doc = ""] + #[doc = "Emits `AssetMinBalanceChanged` event when successful."] + set_reserves { + #[codec(compact)] + id: ::core::primitive::u32, + reserves: runtime_types::bounded_collections::bounded_vec::BoundedVec<()>, + }, } #[derive( :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -22026,6 +22647,9 @@ pub mod api { #[codec(index = 22)] #[doc = "The asset cannot be destroyed because some accounts for this asset contain holds."] ContainsHolds, + #[codec(index = 23)] + #[doc = "Tried setting too many reserves."] + TooManyReserves, } #[derive( :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -22200,6 +22824,15 @@ pub mod api { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, + #[codec(index = 26)] + #[doc = "Reserve information was set or updated for `asset_id`."] + ReservesUpdated { + asset_id: ::core::primitive::u32, + reserves: ::subxt::ext::subxt_core::alloc::vec::Vec<()>, + }, + #[codec(index = 27)] + #[doc = "Reserve information was removed for `asset_id`."] + ReservesRemoved { asset_id: ::core::primitive::u32 }, } } pub mod types { @@ -22689,62 +23322,125 @@ pub mod api { amount: ::core::primitive::u128, }, #[codec(index = 11)] + #[doc = "Some credit was balanced and added to the TotalIssuance."] + MintedCredit { amount: ::core::primitive::u128 }, + #[codec(index = 12)] #[doc = "Some amount was burned from an account."] Burned { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 12)] + #[codec(index = 13)] + #[doc = "Some debt has been dropped from the Total Issuance."] + BurnedDebt { amount: ::core::primitive::u128 }, + #[codec(index = 14)] #[doc = "Some amount was suspended from an account (it can be restored later)."] Suspended { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 13)] + #[codec(index = 15)] #[doc = "Some amount was restored into an account."] Restored { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 14)] + #[codec(index = 16)] #[doc = "An account was upgraded."] Upgraded { who: ::subxt::ext::subxt_core::utils::AccountId32 }, - #[codec(index = 15)] + #[codec(index = 17)] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] Issued { amount: ::core::primitive::u128 }, - #[codec(index = 16)] + #[codec(index = 18)] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] Rescinded { amount: ::core::primitive::u128 }, - #[codec(index = 17)] + #[codec(index = 19)] #[doc = "Some balance was locked."] Locked { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 18)] + #[codec(index = 20)] #[doc = "Some balance was unlocked."] Unlocked { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 19)] + #[codec(index = 21)] #[doc = "Some balance was frozen."] Frozen { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 20)] + #[codec(index = 22)] #[doc = "Some balance was thawed."] Thawed { who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 21)] + #[codec(index = 23)] #[doc = "The `TotalIssuance` was forcefully changed."] TotalIssuanceForced { old: ::core::primitive::u128, new: ::core::primitive::u128, }, + #[codec(index = 24)] + #[doc = "Some balance was placed on hold."] + Held { + reason: runtime_types::quantus_runtime::RuntimeHoldReason, + who: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 25)] + #[doc = "Held balance was burned from an account."] + BurnedHeld { + reason: runtime_types::quantus_runtime::RuntimeHoldReason, + who: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 26)] + #[doc = "A transfer of `amount` on hold from `source` to `dest` was initiated."] + TransferOnHold { + reason: runtime_types::quantus_runtime::RuntimeHoldReason, + source: ::subxt::ext::subxt_core::utils::AccountId32, + dest: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 27)] + #[doc = "The `transferred` balance is placed on hold at the `dest` account."] + TransferAndHold { + reason: runtime_types::quantus_runtime::RuntimeHoldReason, + source: ::subxt::ext::subxt_core::utils::AccountId32, + dest: ::subxt::ext::subxt_core::utils::AccountId32, + transferred: ::core::primitive::u128, + }, + #[codec(index = 28)] + #[doc = "Some balance was released from hold."] + Released { + reason: runtime_types::quantus_runtime::RuntimeHoldReason, + who: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 29)] + #[doc = "An unexpected/defensive event was triggered."] + Unexpected(runtime_types::pallet_balances::pallet::UnexpectedKind), + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum UnexpectedKind { + #[codec(index = 0)] + BalanceUpdated, + #[codec(index = 1)] + FailedToMutateAccount, } } pub mod types { @@ -23106,10 +23802,14 @@ pub mod api { Delegated( ::subxt::ext::subxt_core::utils::AccountId32, ::subxt::ext::subxt_core::utils::AccountId32, + ::core::primitive::u16, ), #[codec(index = 1)] #[doc = "An \\[account\\] has cancelled a previous delegation operation."] - Undelegated(::subxt::ext::subxt_core::utils::AccountId32), + Undelegated( + ::subxt::ext::subxt_core::utils::AccountId32, + ::core::primitive::u16, + ), #[codec(index = 2)] #[doc = "An account has voted"] Voted { @@ -23117,6 +23817,7 @@ pub mod api { vote: runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, >, + poll_index: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "A vote has been removed"] @@ -23125,6 +23826,7 @@ pub mod api { vote: runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, >, + poll_index: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "The lockup period of a conviction vote expired, and the funds have been unlocked."] @@ -26406,7 +27108,12 @@ pub mod api { transfer_count: ::core::primitive::u64, }, #[codec(index = 2)] - ProofVerified { exit_amount: ::core::primitive::u128 }, + ProofVerified { + exit_amount: ::core::primitive::u128, + nullifiers: ::subxt::ext::subxt_core::alloc::vec::Vec< + [::core::primitive::u8; 32usize], + >, + }, } } } @@ -26893,6 +27600,25 @@ pub mod api { pub header: _0, pub extrinsics: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>, } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct LazyBlock<_0, _1> { + pub header: _0, + pub extrinsics: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::sp_runtime::OpaqueExtrinsic, + >, + #[codec(skip)] + pub __ignore: ::core::marker::PhantomData<_1>, + } } pub mod digest { use super::runtime_types; @@ -27718,6 +28444,16 @@ pub mod api { )] #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct OpaqueExtrinsic( + pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ); + #[derive( + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] FundsUnavailable, diff --git a/src/quantus_metadata.scale b/src/quantus_metadata.scale index c38c0f5..a26ebd3 100644 Binary files a/src/quantus_metadata.scale and b/src/quantus_metadata.scale differ