diff --git a/Cargo.lock b/Cargo.lock index 0da887cdabde0f3c4a88734abff546b594f9c01b..047fde2de80d37ebeb01bd51bf243e35d3d49efb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -84,9 +84,9 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b79b82693f705137f8fb9b37871d99e4f9a7df12b917eed79c3d3954830a60b" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", "getrandom 0.2.12", @@ -525,12 +525,6 @@ dependencies = [ "nodrop", ] -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - [[package]] name = "arrayvec" version = "0.7.4" @@ -799,7 +793,7 @@ dependencies = [ "ark-std", "dleq_vrf", "fflonk", - "merlin 3.0.0", + "merlin", "rand_chacha", "rand_core 0.6.4", "ring 0.1.0", @@ -1008,18 +1002,6 @@ dependencies = [ "constant_time_eq 0.3.0", ] -[[package]] -name = "block-buffer" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" -dependencies = [ - "block-padding", - "byte-tools", - "byteorder", - "generic-array 0.12.4", -] - [[package]] name = "block-buffer" version = "0.9.0" @@ -1038,15 +1020,6 @@ dependencies = [ "generic-array 0.14.7", ] -[[package]] -name = "block-padding" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" -dependencies = [ - "byte-tools", -] - [[package]] name = "blocking" version = "1.5.1" @@ -1111,9 +1084,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.15.3" +version = "3.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea184aa71bb362a1157c896979544cc23974e08fd265f29ea96b59f0b4a555b" +checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa" [[package]] name = "byte-slice-cast" @@ -1206,10 +1179,11 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.88" +version = "1.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02f341c093d19155a6e41631ce5971aac4e9a868262212153124c15fa22d1cdc" +checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5" dependencies = [ + "jobserver", "libc", ] @@ -1279,9 +1253,9 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b" +checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a" dependencies = [ "android-tzdata", "iana-time-zone", @@ -1337,9 +1311,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.1" +version = "4.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c918d541ef2913577a0f9566e9ce27cb35b6df072075769e0b26cb5a554520da" +checksum = "b230ab84b0ffdf890d5a10abdbc8b83ae1c4918275daea1ab8801f71536b2651" dependencies = [ "clap_builder", "clap_derive", @@ -1347,9 +1321,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.1" +version = "4.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f3e7391dad68afb0c2ede1bf619f579a3dc9c2ec67f089baa397123a2f3d1eb" +checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" dependencies = [ "anstream", "anstyle", @@ -1446,7 +1420,7 @@ dependencies = [ "ark-std", "fflonk", "getrandom_or_panic", - "merlin 3.0.0", + "merlin", "rand_chacha", ] @@ -1536,9 +1510,9 @@ checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "const-random" -version = "0.1.17" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aaf16c9c2c612020bcfd042e170f6e32de9b9d75adb5277cdbbd2e2c8c8299a" +checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" dependencies = [ "const-random-macro", ] @@ -1927,19 +1901,6 @@ dependencies = [ "regex-syntax 0.7.5", ] -[[package]] -name = "curve25519-dalek" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216" -dependencies = [ - "byteorder", - "digest 0.8.1", - "rand_core 0.5.1", - "subtle 2.5.0", - "zeroize", -] - [[package]] name = "curve25519-dalek" version = "3.2.0" @@ -1983,9 +1944,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.118" +version = "1.0.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2673ca5ae28334544ec2a6b18ebe666c42a2650abfb48abbd532ed409a44be2b" +checksum = "635179be18797d7e10edb9cd06c859580237750c7351f39ed9b298bfc17544ad" dependencies = [ "cc", "cxxbridge-flags", @@ -1995,9 +1956,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.118" +version = "1.0.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9df46fe0eb43066a332586114174c449a62c25689f85a08f28fdcc8e12c380b9" +checksum = "9324397d262f63ef77eb795d900c0d682a34a43ac0932bec049ed73055d52f63" dependencies = [ "cc", "codespan-reporting", @@ -2010,15 +1971,15 @@ dependencies = [ [[package]] name = "cxxbridge-flags" -version = "1.0.118" +version = "1.0.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "886acf875df67811c11cd015506b3392b9e1820b1627af1a6f4e93ccdfc74d11" +checksum = "a87ff7342ffaa54b7c61618e0ce2bbcf827eba6d55b923b83d82551acbbecfe5" [[package]] name = "cxxbridge-macro" -version = "1.0.118" +version = "1.0.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d151cc139c3080e07f448f93a1284577ab2283d2a44acd902c6fba9ec20b6de" +checksum = "70b5b86cf65fa0626d85720619d80b288013477a91a0389fa8bc716bf4903ad1" dependencies = [ "proc-macro2", "quote", @@ -2484,7 +2445,7 @@ dependencies = [ "ctrlc", "cucumber", "distance-oracle", - "env_logger 0.11.2", + "env_logger 0.11.3", "hex", "notify", "notify-debouncer-mini", @@ -2688,9 +2649,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c012a26a7f605efc424dd53697843a72be7dc86ad2d01f7814337794a12231d" +checksum = "38b35839ba51819680ba087cd351788c9a3c476841207e0b8cee0b04722343b9" dependencies = [ "env_filter", "log", @@ -2777,12 +2738,13 @@ dependencies = [ [[package]] name = "expander" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f86a749cf851891866c10515ef6c299b5c69661465e9c3bbe7e07a2b77fb0f7" +checksum = "00e83c02035136f1592a47964ea60c05a50e4ed8b5892cfac197063850898d4d" dependencies = [ "blake2 0.10.6", "fs-err", + "prettier-please", "proc-macro2", "quote", "syn 2.0.52", @@ -2810,12 +2772,6 @@ dependencies = [ "synstructure", ] -[[package]] -name = "fake-simd" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" - [[package]] name = "fallible-iterator" version = "0.2.0" @@ -2868,7 +2824,7 @@ dependencies = [ "ark-poly", "ark-serialize", "ark-std", - "merlin 3.0.0", + "merlin", ] [[package]] @@ -3641,9 +3597,9 @@ dependencies = [ [[package]] name = "ghash" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" +checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1" dependencies = [ "opaque-debug 0.3.1", "polyval", @@ -3718,7 +3674,7 @@ dependencies = [ "aho-corasick", "bstr", "log", - "regex-automata 0.4.5", + "regex-automata 0.4.6", "regex-syntax 0.8.2", ] @@ -3939,7 +3895,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.10", + "ahash 0.8.11", ] [[package]] @@ -3948,7 +3904,7 @@ version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ - "ahash 0.8.10", + "ahash 0.8.11", "allocator-api2", "serde", ] @@ -4066,9 +4022,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ "bytes", "fnv", @@ -4239,7 +4195,7 @@ dependencies = [ "globset", "log", "memchr", - "regex-automata 0.4.5", + "regex-automata 0.4.6", "same-file", "walkdir", "winapi-util", @@ -4471,11 +4427,20 @@ version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" +[[package]] +name = "jobserver" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab46a6e9526ddef3ae7f787c06f0f2600639ba80ea3eade3d8e670a2230f51d6" +dependencies = [ + "libc", +] + [[package]] name = "js-sys" -version = "0.3.68" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "406cda4b368d531c842222cf9d2600a9a4acce8d29423695379c6868a143a9ee" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ "wasm-bindgen", ] @@ -4838,12 +4803,12 @@ checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libloading" -version = "0.8.1" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161" +checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", - "windows-sys 0.48.0", + "windows-targets 0.52.4", ] [[package]] @@ -5597,18 +5562,6 @@ dependencies = [ "hash-db", ] -[[package]] -name = "merlin" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e261cf0f8b3c42ded9f7d2bb59dea03aa52bc8a1cbc7482f9fc3fd1229d3b42" -dependencies = [ - "byteorder", - "keccak", - "rand_core 0.5.1", - "zeroize", -] - [[package]] name = "merlin" version = "3.0.0" @@ -5644,9 +5597,9 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "log", @@ -6992,9 +6945,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.7" +version = "2.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "219c0dcc30b6a27553f9cc242972b67f75b60eb0db71f0b5462f38b058c41546" +checksum = "56f8023d0fb78c8e03784ea1c7f3fa36e68a723138990b8d5a47d916b651e7a8" dependencies = [ "memchr", "thiserror", @@ -7003,9 +6956,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.7.7" +version = "2.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e1288dbd7786462961e69bfd4df7848c1e37e8b74303dbdab82c3a9cdd2809" +checksum = "b0d24f72393fd16ab6ac5738bc33cdb6a9aa73f8b902e8fe29cf4e67d7dd1026" dependencies = [ "pest", "pest_generator", @@ -7013,9 +6966,9 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.7" +version = "2.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1381c29a877c6d34b8c176e734f35d7f7f5b3adaefe940cb4d1bb7af94678e2e" +checksum = "fdc17e2a6c7d0a492f0158d7a4bd66cc17280308bbaff78d5bef566dca35ab80" dependencies = [ "pest", "pest_meta", @@ -7026,9 +6979,9 @@ dependencies = [ [[package]] name = "pest_meta" -version = "2.7.7" +version = "2.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0934d6907f148c22a3acbda520c7eed243ad7487a30f51f6ce52b58b7077a8a" +checksum = "934cd7631c050f4674352a6e835d5f6711ffbfb9345c2fc0107155ac495ae293" dependencies = [ "once_cell", "pest", @@ -7047,18 +7000,18 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0302c4a0442c456bd56f841aee5c3bfd17967563f6fadc9ceb9f9c23cf3807e0" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "266c042b60c9c76b8d53061e52b2e0d1116abc57cefc8c5cd671619a56ac3690" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", @@ -7190,9 +7143,9 @@ dependencies = [ [[package]] name = "polyval" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" dependencies = [ "cfg-if", "cpufeatures", @@ -7257,11 +7210,21 @@ dependencies = [ "termtree", ] +[[package]] +name = "prettier-please" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22020dfcf177fcc7bf5deaf7440af371400c67c0de14c399938d8ed4fb4645d3" +dependencies = [ + "proc-macro2", + "syn 2.0.52", +] + [[package]] name = "prettyplease" -version = "0.1.25" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86" +checksum = "f28f53e8b192565862cf99343194579a022eb9c7dd3a8d03134734803c7b3125" dependencies = [ "proc-macro2", "syn 1.0.109", @@ -7432,7 +7395,7 @@ dependencies = [ "log", "multimap", "petgraph", - "prettyplease 0.1.25", + "prettyplease 0.1.11", "prost 0.11.9", "prost-types", "regex", @@ -7722,7 +7685,7 @@ checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.5", + "regex-automata 0.4.6", "regex-syntax 0.8.2", ] @@ -7737,9 +7700,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" +checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" dependencies = [ "aho-corasick", "memchr", @@ -7833,7 +7796,7 @@ dependencies = [ "blake2 0.10.6", "common", "fflonk", - "merlin 3.0.0", + "merlin", ] [[package]] @@ -8451,7 +8414,7 @@ name = "sc-consensus-grandpa" version = "0.19.0" source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.7.1#4e4e20b11be79be8ba6ade0b96e767aca0198c70" dependencies = [ - "ahash 0.8.10", + "ahash 0.8.11", "array-bytes 6.2.2", "async-trait", "dyn-clone", @@ -8744,7 +8707,7 @@ name = "sc-network-gossip" version = "0.34.0" source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.7.1#4e4e20b11be79be8ba6ade0b96e767aca0198c70" dependencies = [ - "ahash 0.8.10", + "ahash 0.8.11", "futures 0.3.30", "futures-timer", "libp2p", @@ -9328,27 +9291,11 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" dependencies = [ - "ahash 0.8.10", + "ahash 0.8.11", "cfg-if", "hashbrown 0.13.2", ] -[[package]] -name = "schnorrkel" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "curve25519-dalek 2.1.3", - "merlin 2.0.1", - "rand_core 0.5.1", - "sha2 0.8.2", - "subtle 2.5.0", - "zeroize", -] - [[package]] name = "schnorrkel" version = "0.11.4" @@ -9360,7 +9307,7 @@ dependencies = [ "arrayvec 0.7.4", "curve25519-dalek 4.1.2", "getrandom_or_panic", - "merlin 3.0.0", + "merlin", "rand_core 0.6.4", "serde_bytes", "sha2 0.10.8", @@ -9577,18 +9524,6 @@ dependencies = [ "opaque-debug 0.3.1", ] -[[package]] -name = "sha2" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", -] - [[package]] name = "sha2" version = "0.9.9" @@ -9780,7 +9715,7 @@ dependencies = [ "itertools 0.12.1", "libm", "libsecp256k1", - "merlin 3.0.0", + "merlin", "no-std-net", "nom", "num-bigint", @@ -9792,7 +9727,7 @@ dependencies = [ "rand", "rand_chacha", "ruzstd", - "schnorrkel 0.11.4", + "schnorrkel", "serde", "serde_json", "sha2 0.10.8", @@ -10127,14 +10062,14 @@ dependencies = [ "itertools 0.10.5", "libsecp256k1", "log", - "merlin 3.0.0", + "merlin", "parity-scale-codec", "parking_lot 0.12.1", "paste", "primitive-types", "rand", "scale-info", - "schnorrkel 0.11.4", + "schnorrkel", "secp256k1", "secrecy", "serde", @@ -10163,7 +10098,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -10226,7 +10161,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "proc-macro2", "quote", @@ -10262,7 +10197,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "environmental", "parity-scale-codec", @@ -10471,7 +10406,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -10503,7 +10438,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "Inflector", "expander", @@ -10596,7 +10531,7 @@ source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-sub [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" [[package]] name = "sp-storage" @@ -10614,7 +10549,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10652,7 +10587,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "parity-scale-codec", "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk)", @@ -10690,7 +10625,7 @@ name = "sp-trie" version = "29.0.0" source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.7.1#4e4e20b11be79be8ba6ade0b96e767aca0198c70" dependencies = [ - "ahash 0.8.10", + "ahash 0.8.11", "hash-db", "lazy_static", "memory-db", @@ -10753,7 +10688,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#f0e589d72e5228472c7658c525e0ff80d122d777" +source = "git+https://github.com/paritytech/polkadot-sdk#f977c211573e65b9f89886e7211e9b3148ce7e05" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -10921,13 +10856,13 @@ dependencies = [ [[package]] name = "substrate-bip39" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e620c7098893ba667438b47169c00aacdd9e7c10e042250ce2b60b087ec97328" +checksum = "6a7590dc041b9bc2825e52ce5af8416c73dbe9d0654402bfd4b4941938b94d8f" dependencies = [ "hmac 0.11.0", "pbkdf2 0.8.0", - "schnorrkel 0.9.1", + "schnorrkel", "sha2 0.9.9", "zeroize", ] @@ -12096,9 +12031,9 @@ dependencies = [ [[package]] name = "walkdir" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ "same-file", "winapi-util", @@ -12127,9 +12062,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f" +checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -12137,9 +12072,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b" +checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", @@ -12152,9 +12087,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.41" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877b9c3f61ceea0e56331985743b13f3d25c406a7098d45180fb5f09bc19ed97" +checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" dependencies = [ "cfg-if", "js-sys", @@ -12164,9 +12099,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed" +checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -12174,9 +12109,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" +checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", @@ -12187,9 +12122,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838" +checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "wasm-instrument" @@ -12502,9 +12437,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.68" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96565907687f7aceb35bc5fc03770a8a0471d82e479f25832f54a0e3f4b28446" +checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/README.md b/README.md index e0f90e8b379a7cf4ffa0faef05677e90e4d97cae..8758e299c509925e409121979c626993c45c6413 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,6 @@ - [docs](./docs/) - [api](./docs/api/) - [manual](./docs/api/manual.md) - - [runtime-calls](./docs/api/runtime-calls.md) the calls you can submit through the RPC API - [dev](./docs/dev/) - [beginner-walkthrough](./docs/dev/beginner-walkthrough.md) - [git-conventions](./docs/dev/git-conventions.md) diff --git a/docs/api/runtime-calls.md b/docs/api/runtime-calls.md deleted file mode 100644 index 385ad6b68d5d9e5a0ad10c14b0be8a1d738272c4..0000000000000000000000000000000000000000 --- a/docs/api/runtime-calls.md +++ /dev/null @@ -1,1535 +0,0 @@ -# Runtime calls - -Calls are categorized according to the dispatch origin they require: - -1. **User calls**: the dispatch origin for this kind of call must be signed by -the transactor. This is the only call category that can be submitted with an extrinsic. -1. **Root calls**: This kind of call requires a special origin that can only be invoked -through on-chain governance mechanisms. -1. **Inherent calls**: This kind of call is invoked by the author of the block itself -(usually automatically by the node). -1. **Disabled calls**: These calls can not be called directly, they are reserved for internal use by other runtime calls. - - -## User calls - -There are **82** user calls from **21** pallets. - -### Account - 1 - -#### unlink_identity - 0 - -<details><summary><code>unlink_identity()</code></summary> - -Taking 0.0114 % of a block. - -```rust -``` -</details> - -See [Pallet::unlink_identity](./doc/pallet_duniter_account/pallet/struct.Pallet.html#method.unlink_identity) - -### Scheduler - 2 - -#### schedule - 0 - -<details><summary><code>schedule(when, maybe_periodic, priority, call)</code></summary> - -Taking 0.0125 % of a block. - -```rust -when: BlockNumberFor<T> -maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> -priority: schedule::Priority -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::schedule](./doc/pallet_scheduler/pallet/struct.Pallet.html#method.schedule) - -#### cancel - 1 - -<details><summary><code>cancel(when, index)</code></summary> - -Taking 0.0194 % of a block. - -```rust -when: BlockNumberFor<T> -index: u32 -``` -</details> - -See [Pallet::cancel](./doc/pallet_scheduler/pallet/struct.Pallet.html#method.cancel) - -#### schedule_named - 2 - -<details><summary><code>schedule_named(id, when, maybe_periodic, priority, call)</code></summary> - -Taking 0.0204 % of a block. - -```rust -id: TaskName -when: BlockNumberFor<T> -maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> -priority: schedule::Priority -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::schedule_named](./doc/pallet_scheduler/pallet/struct.Pallet.html#method.schedule_named) - -#### cancel_named - 3 - -<details><summary><code>cancel_named(id)</code></summary> - -Taking 0.0209 % of a block. - -```rust -id: TaskName -``` -</details> - -See [Pallet::cancel_named](./doc/pallet_scheduler/pallet/struct.Pallet.html#method.cancel_named) - -#### schedule_after - 4 - -<details><summary><code>schedule_after(after, maybe_periodic, priority, call)</code></summary> - -No weight available. - -```rust -after: BlockNumberFor<T> -maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> -priority: schedule::Priority -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::schedule_after](./doc/pallet_scheduler/pallet/struct.Pallet.html#method.schedule_after) - -#### schedule_named_after - 5 - -<details><summary><code>schedule_named_after(id, after, maybe_periodic, priority, call)</code></summary> - -No weight available. - -```rust -id: TaskName -after: BlockNumberFor<T> -maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> -priority: schedule::Priority -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::schedule_named_after](./doc/pallet_scheduler/pallet/struct.Pallet.html#method.schedule_named_after) - -### Babe - 3 - -#### report_equivocation - 0 - -<details><summary><code>report_equivocation(equivocation_proof, key_owner_proof)</code></summary> - -No weight available. - -```rust -equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> -key_owner_proof: T::KeyOwnerProof -``` -</details> - -See [Pallet::report_equivocation](./doc/pallet_babe/pallet/struct.Pallet.html#method.report_equivocation) - -### Balances - 6 - -#### transfer_allow_death - 0 - -<details><summary><code>transfer_allow_death(dest, value)</code></summary> - -Taking 0.0211 % of a block. - -```rust -dest: AccountIdLookupOf<T> -value: T::Balance -``` -</details> - -See [Pallet::transfer_allow_death](./doc/pallet_balances/pallet/struct.Pallet.html#method.transfer_allow_death) - -#### transfer_keep_alive - 3 - -<details><summary><code>transfer_keep_alive(dest, value)</code></summary> - -Taking 0.0128 % of a block. - -```rust -dest: AccountIdLookupOf<T> -value: T::Balance -``` -</details> - -See [Pallet::transfer_keep_alive](./doc/pallet_balances/pallet/struct.Pallet.html#method.transfer_keep_alive) - -#### transfer_all - 4 - -<details><summary><code>transfer_all(dest, keep_alive)</code></summary> - -Taking 0.013 % of a block. - -```rust -dest: AccountIdLookupOf<T> -keep_alive: bool -``` -</details> - -See [Pallet::transfer_all](./doc/pallet_balances/pallet/struct.Pallet.html#method.transfer_all) - -#### force_set_balance - 8 - -<details><summary><code>force_set_balance(who, new_free)</code></summary> - -No weight available. - -```rust -who: AccountIdLookupOf<T> -new_free: T::Balance -``` -</details> - -See [Pallet::force_set_balance](./doc/pallet_balances/pallet/struct.Pallet.html#method.force_set_balance) - -#### force_adjust_total_issuance - 9 - -<details><summary><code>force_adjust_total_issuance(direction, delta)</code></summary> - -Taking 0.0038 % of a block. - -```rust -direction: AdjustmentDirection -delta: T::Balance -``` -</details> - -See [Pallet::force_adjust_total_issuance](./doc/pallet_balances/pallet/struct.Pallet.html#method.force_adjust_total_issuance) - -### OneshotAccount - 7 - -#### create_oneshot_account - 0 - -<details><summary><code>create_oneshot_account(dest, value)</code></summary> - -Taking 0.012 % of a block. - -```rust -dest: <T::Lookup as StaticLookup>::Source -value: <T::Currency as Currency<T::AccountId>>::Balance -``` -</details> - -See [Pallet::create_oneshot_account](./doc/pallet_oneshot_account/pallet/struct.Pallet.html#method.create_oneshot_account) - -#### consume_oneshot_account - 1 - -<details><summary><code>consume_oneshot_account(block_height, dest)</code></summary> - -Taking 0.0213 % of a block. - -```rust -block_height: BlockNumberFor<T> -dest: Account<<T::Lookup as StaticLookup>::Source> -``` -</details> - -See [Pallet::consume_oneshot_account](./doc/pallet_oneshot_account/pallet/struct.Pallet.html#method.consume_oneshot_account) - -#### consume_oneshot_account_with_remaining - 2 - -<details><summary><code>consume_oneshot_account_with_remaining(block_height, dest, remaining_to, balance)</code></summary> - -Taking 0.0294 % of a block. - -```rust -block_height: BlockNumberFor<T> -dest: Account<<T::Lookup as StaticLookup>::Source> -remaining_to: Account<<T::Lookup as StaticLookup>::Source> -balance: <T::Currency as Currency<T::AccountId>>::Balance -``` -</details> - -See [Pallet::consume_oneshot_account_with_remaining](./doc/pallet_oneshot_account/pallet/struct.Pallet.html#method.consume_oneshot_account_with_remaining) - -### SmithMembers - 10 - -#### invite_smith - 0 - -<details><summary><code>invite_smith(receiver)</code></summary> - -Taking 0.0267 % of a block. - -```rust -receiver: T::IdtyIndex -``` -</details> - -See [Pallet::invite_smith](./doc/pallet_smith_members/pallet/struct.Pallet.html#method.invite_smith) - -#### accept_invitation - 1 - -<details><summary><code>accept_invitation()</code></summary> - -Taking 0.0132 % of a block. - -```rust -``` -</details> - -See [Pallet::accept_invitation](./doc/pallet_smith_members/pallet/struct.Pallet.html#method.accept_invitation) - -#### certify_smith - 2 - -<details><summary><code>certify_smith(receiver)</code></summary> - -Taking 0.0317 % of a block. - -```rust -receiver: T::IdtyIndex -``` -</details> - -See [Pallet::certify_smith](./doc/pallet_smith_members/pallet/struct.Pallet.html#method.certify_smith) - -### AuthorityMembers - 11 - -#### go_offline - 0 - -<details><summary><code>go_offline()</code></summary> - -Taking 0.0187 % of a block. - -```rust -``` -</details> - -See [Pallet::go_offline](./doc/pallet_authority_members/pallet/struct.Pallet.html#method.go_offline) - -#### go_online - 1 - -<details><summary><code>go_online()</code></summary> - -Taking 0.0216 % of a block. - -```rust -``` -</details> - -See [Pallet::go_online](./doc/pallet_authority_members/pallet/struct.Pallet.html#method.go_online) - -#### set_session_keys - 2 - -<details><summary><code>set_session_keys(keys)</code></summary> - -Taking 0.0284 % of a block. - -```rust -keys: T::Keys -``` -</details> - -See [Pallet::set_session_keys](./doc/pallet_authority_members/pallet/struct.Pallet.html#method.set_session_keys) - -#### remove_member_from_blacklist - 4 - -<details><summary><code>remove_member_from_blacklist(member_id)</code></summary> - -Taking 0.0116 % of a block. - -```rust -member_id: T::MemberId -``` -</details> - -See [Pallet::remove_member_from_blacklist](./doc/pallet_authority_members/pallet/struct.Pallet.html#method.remove_member_from_blacklist) - -### Grandpa - 16 - -#### report_equivocation - 0 - -<details><summary><code>report_equivocation(equivocation_proof, key_owner_proof)</code></summary> - -No weight available. - -```rust -equivocation_proof: Box<EquivocationProof<T::Hash, BlockNumberFor<T>>> -key_owner_proof: T::KeyOwnerProof -``` -</details> - -See [Pallet::report_equivocation](./doc/pallet_grandpa/pallet/struct.Pallet.html#method.report_equivocation) - -### UpgradeOrigin - 21 - -#### dispatch_as_root_unchecked_weight - 1 - -<details><summary><code>dispatch_as_root_unchecked_weight(call, weight)</code></summary> - -No weight available. - -```rust -call: Box<<T as Config>::Call> -weight: Weight -``` -</details> - -See [Pallet::dispatch_as_root_unchecked_weight](./doc/pallet_upgrade_origin/pallet/struct.Pallet.html#method.dispatch_as_root_unchecked_weight) - -### Preimage - 22 - -#### note_preimage - 0 - -<details><summary><code>note_preimage(bytes)</code></summary> - -Taking 0.2881 % of a block. - -```rust -bytes: Vec<u8> -``` -</details> - -See [Pallet::note_preimage](./doc/pallet_preimage/pallet/struct.Pallet.html#method.note_preimage) - -#### unnote_preimage - 1 - -<details><summary><code>unnote_preimage(hash)</code></summary> - -Taking 0.0201 % of a block. - -```rust -hash: T::Hash -``` -</details> - -See [Pallet::unnote_preimage](./doc/pallet_preimage/pallet/struct.Pallet.html#method.unnote_preimage) - -#### request_preimage - 2 - -<details><summary><code>request_preimage(hash)</code></summary> - -Taking 0.0136 % of a block. - -```rust -hash: T::Hash -``` -</details> - -See [Pallet::request_preimage](./doc/pallet_preimage/pallet/struct.Pallet.html#method.request_preimage) - -#### unrequest_preimage - 3 - -<details><summary><code>unrequest_preimage(hash)</code></summary> - -Taking 0.0201 % of a block. - -```rust -hash: T::Hash -``` -</details> - -See [Pallet::unrequest_preimage](./doc/pallet_preimage/pallet/struct.Pallet.html#method.unrequest_preimage) - -#### ensure_updated - 4 - -<details><summary><code>ensure_updated(hashes)</code></summary> - -Taking 22.9245 % of a block. - -```rust -hashes: Vec<T::Hash> -``` -</details> - -See [Pallet::ensure_updated](./doc/pallet_preimage/pallet/struct.Pallet.html#method.ensure_updated) - -### TechnicalCommittee - 23 - -#### execute - 1 - -<details><summary><code>execute(proposal, length_bound)</code></summary> - -Taking 0.0055 % of a block. - -```rust -proposal: Box<<T as Config<I>>::Proposal> -length_bound: u32 -``` -</details> - -See [Pallet::execute](./doc/pallet_collective/pallet/struct.Pallet.html#method.execute) - -#### propose - 2 - -<details><summary><code>propose(threshold, proposal, length_bound)</code></summary> - -No weight available. - -```rust -threshold: MemberCount -proposal: Box<<T as Config<I>>::Proposal> -length_bound: u32 -``` -</details> - -See [Pallet::propose](./doc/pallet_collective/pallet/struct.Pallet.html#method.propose) - -#### vote - 3 - -<details><summary><code>vote(proposal, index, approve)</code></summary> - -Taking 0.0135 % of a block. - -```rust -proposal: T::Hash -index: ProposalIndex -approve: bool -``` -</details> - -See [Pallet::vote](./doc/pallet_collective/pallet/struct.Pallet.html#method.vote) - -#### close - 6 - -<details><summary><code>close(proposal_hash, index, proposal_weight_bound, length_bound)</code></summary> - -No weight available. - -```rust -proposal_hash: T::Hash -index: ProposalIndex -proposal_weight_bound: Weight -length_bound: u32 -``` -</details> - -See [Pallet::close](./doc/pallet_collective/pallet/struct.Pallet.html#method.close) - -### UniversalDividend - 30 - -#### claim_uds - 0 - -<details><summary><code>claim_uds()</code></summary> - -Taking 0.0242 % of a block. - -```rust -``` -</details> - -See [Pallet::claim_uds](./doc/pallet_universal_dividend/pallet/struct.Pallet.html#method.claim_uds) - -#### transfer_ud - 1 - -<details><summary><code>transfer_ud(dest, value)</code></summary> - -Taking 0.0226 % of a block. - -```rust -dest: <T::Lookup as StaticLookup>::Source -value: BalanceOf<T> -``` -</details> - -See [Pallet::transfer_ud](./doc/pallet_universal_dividend/pallet/struct.Pallet.html#method.transfer_ud) - -#### transfer_ud_keep_alive - 2 - -<details><summary><code>transfer_ud_keep_alive(dest, value)</code></summary> - -Taking 0.0141 % of a block. - -```rust -dest: <T::Lookup as StaticLookup>::Source -value: BalanceOf<T> -``` -</details> - -See [Pallet::transfer_ud_keep_alive](./doc/pallet_universal_dividend/pallet/struct.Pallet.html#method.transfer_ud_keep_alive) - -### Identity - 41 - -#### create_identity - 0 - -<details><summary><code>create_identity(owner_key)</code></summary> - -Taking 0.1 % of a block. - -```rust -owner_key: T::AccountId -``` -</details> - -See [Pallet::create_identity](./doc/pallet_identity/pallet/struct.Pallet.html#method.create_identity) - -#### confirm_identity - 1 - -<details><summary><code>confirm_identity(idty_name)</code></summary> - -Taking 0.037 % of a block. - -```rust -idty_name: IdtyName -``` -</details> - -See [Pallet::confirm_identity](./doc/pallet_identity/pallet/struct.Pallet.html#method.confirm_identity) - -#### change_owner_key - 3 - -<details><summary><code>change_owner_key(new_key, new_key_sig)</code></summary> - -Taking 0.0472 % of a block. - -```rust -new_key: T::AccountId -new_key_sig: T::Signature -``` -</details> - -See [Pallet::change_owner_key](./doc/pallet_identity/pallet/struct.Pallet.html#method.change_owner_key) - -#### revoke_identity - 4 - -<details><summary><code>revoke_identity(idty_index, revocation_key, revocation_sig)</code></summary> - -Taking 0.0452 % of a block. - -```rust -idty_index: T::IdtyIndex -revocation_key: T::AccountId -revocation_sig: T::Signature -``` -</details> - -See [Pallet::revoke_identity](./doc/pallet_identity/pallet/struct.Pallet.html#method.revoke_identity) - -#### fix_sufficients - 7 - -<details><summary><code>fix_sufficients(owner_key, inc)</code></summary> - -Taking 0.0116 % of a block. - -```rust -owner_key: T::AccountId -inc: bool -``` -</details> - -See [Pallet::fix_sufficients](./doc/pallet_identity/pallet/struct.Pallet.html#method.fix_sufficients) - -#### link_account - 8 - -<details><summary><code>link_account(account_id, payload_sig)</code></summary> - -Taking 0.0165 % of a block. - -```rust -account_id: T::AccountId -payload_sig: T::Signature -``` -</details> - -See [Pallet::link_account](./doc/pallet_identity/pallet/struct.Pallet.html#method.link_account) - -### Certification - 43 - -#### add_cert - 0 - -<details><summary><code>add_cert(receiver)</code></summary> - -Taking 0.041 % of a block. - -```rust -receiver: T::IdtyIndex -``` -</details> - -See [Pallet::add_cert](./doc/pallet_certification/pallet/struct.Pallet.html#method.add_cert) - -#### renew_cert - 3 - -<details><summary><code>renew_cert(receiver)</code></summary> - -Taking 0.0333 % of a block. - -```rust -receiver: T::IdtyIndex -``` -</details> - -See [Pallet::renew_cert](./doc/pallet_certification/pallet/struct.Pallet.html#method.renew_cert) - -#### del_cert - 1 - -<details><summary><code>del_cert(issuer, receiver)</code></summary> - -Taking 0.0287 % of a block. - -```rust -issuer: T::IdtyIndex -receiver: T::IdtyIndex -``` -</details> - -See [Pallet::del_cert](./doc/pallet_certification/pallet/struct.Pallet.html#method.del_cert) - -#### remove_all_certs_received_by - 2 - -<details><summary><code>remove_all_certs_received_by(idty_index)</code></summary> - -Taking 8.1029 % of a block. - -```rust -idty_index: T::IdtyIndex -``` -</details> - -See [Pallet::remove_all_certs_received_by](./doc/pallet_certification/pallet/struct.Pallet.html#method.remove_all_certs_received_by) - -### Distance - 44 - -#### request_distance_evaluation - 0 - -<details><summary><code>request_distance_evaluation()</code></summary> - -Taking 0.0365 % of a block. - -```rust -``` -</details> - -See [Pallet::request_distance_evaluation](./doc/pallet_distance/pallet/struct.Pallet.html#method.request_distance_evaluation) - -#### request_distance_evaluation_for - 4 - -<details><summary><code>request_distance_evaluation_for(target)</code></summary> - -Taking 0.038 % of a block. - -```rust -target: T::IdtyIndex -``` -</details> - -See [Pallet::request_distance_evaluation_for](./doc/pallet_distance/pallet/struct.Pallet.html#method.request_distance_evaluation_for) - -#### update_evaluation - 1 - -<details><summary><code>update_evaluation(computation_result)</code></summary> - -Taking 0.0343 % of a block. - -```rust -computation_result: ComputationResult -``` -</details> - -See [Pallet::update_evaluation](./doc/pallet_distance/pallet/struct.Pallet.html#method.update_evaluation) - -#### force_update_evaluation - 2 - -<details><summary><code>force_update_evaluation(evaluator, computation_result)</code></summary> - -Taking 0.016 % of a block. - -```rust -evaluator: <T as frame_system::Config>::AccountId -computation_result: ComputationResult -``` -</details> - -See [Pallet::force_update_evaluation](./doc/pallet_distance/pallet/struct.Pallet.html#method.force_update_evaluation) - -#### force_valid_distance_status - 3 - -<details><summary><code>force_valid_distance_status(identity)</code></summary> - -Taking 0.0305 % of a block. - -```rust -identity: <T as pallet_identity::Config>::IdtyIndex -``` -</details> - -See [Pallet::force_valid_distance_status](./doc/pallet_distance/pallet/struct.Pallet.html#method.force_valid_distance_status) - -### AtomicSwap - 50 - -#### create_swap - 0 - -<details><summary><code>create_swap(target, hashed_proof, action, duration)</code></summary> - -No weight available. - -```rust -target: T::AccountId -hashed_proof: HashedProof -action: T::SwapAction -duration: BlockNumberFor<T> -``` -</details> - -See [Pallet::create_swap](./doc/pallet_atomic_swap/pallet/struct.Pallet.html#method.create_swap) - -#### claim_swap - 1 - -<details><summary><code>claim_swap(proof, action)</code></summary> - -No weight available. - -```rust -proof: Vec<u8> -action: T::SwapAction -``` -</details> - -See [Pallet::claim_swap](./doc/pallet_atomic_swap/pallet/struct.Pallet.html#method.claim_swap) - -#### cancel_swap - 2 - -<details><summary><code>cancel_swap(target, hashed_proof)</code></summary> - -No weight available. - -```rust -target: T::AccountId -hashed_proof: HashedProof -``` -</details> - -See [Pallet::cancel_swap](./doc/pallet_atomic_swap/pallet/struct.Pallet.html#method.cancel_swap) - -### Multisig - 51 - -#### as_multi_threshold_1 - 0 - -<details><summary><code>as_multi_threshold_1(other_signatories, call)</code></summary> - -Taking 0.004 % of a block. - -```rust -other_signatories: Vec<T::AccountId> -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::as_multi_threshold_1](./doc/pallet_multisig/pallet/struct.Pallet.html#method.as_multi_threshold_1) - -#### as_multi - 1 - -<details><summary><code>as_multi(threshold, other_signatories, maybe_timepoint, call, max_weight)</code></summary> - -No weight available. - -```rust -threshold: u16 -other_signatories: Vec<T::AccountId> -maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>> -call: Box<<T as Config>::RuntimeCall> -max_weight: Weight -``` -</details> - -See [Pallet::as_multi](./doc/pallet_multisig/pallet/struct.Pallet.html#method.as_multi) - -#### approve_as_multi - 2 - -<details><summary><code>approve_as_multi(threshold, other_signatories, maybe_timepoint, call_hash, max_weight)</code></summary> - -No weight available. - -```rust -threshold: u16 -other_signatories: Vec<T::AccountId> -maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>> -call_hash: [u8; 32] -max_weight: Weight -``` -</details> - -See [Pallet::approve_as_multi](./doc/pallet_multisig/pallet/struct.Pallet.html#method.approve_as_multi) - -#### cancel_as_multi - 3 - -<details><summary><code>cancel_as_multi(threshold, other_signatories, timepoint, call_hash)</code></summary> - -Taking 0.0125 % of a block. - -```rust -threshold: u16 -other_signatories: Vec<T::AccountId> -timepoint: Timepoint<BlockNumberFor<T>> -call_hash: [u8; 32] -``` -</details> - -See [Pallet::cancel_as_multi](./doc/pallet_multisig/pallet/struct.Pallet.html#method.cancel_as_multi) - -### ProvideRandomness - 52 - -#### request - 0 - -<details><summary><code>request(randomness_type, salt)</code></summary> - -Taking 0.0462 % of a block. - -```rust -randomness_type: RandomnessType -salt: H256 -``` -</details> - -See [Pallet::request](./doc/pallet_provide_randomness/pallet/struct.Pallet.html#method.request) - -### Proxy - 53 - -#### proxy - 0 - -<details><summary><code>proxy(real, force_proxy_type, call)</code></summary> - -Taking 0.0055 % of a block. - -```rust -real: AccountIdLookupOf<T> -force_proxy_type: Option<T::ProxyType> -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::proxy](./doc/pallet_proxy/pallet/struct.Pallet.html#method.proxy) - -#### add_proxy - 1 - -<details><summary><code>add_proxy(delegate, proxy_type, delay)</code></summary> - -Taking 0.0122 % of a block. - -```rust -delegate: AccountIdLookupOf<T> -proxy_type: T::ProxyType -delay: BlockNumberFor<T> -``` -</details> - -See [Pallet::add_proxy](./doc/pallet_proxy/pallet/struct.Pallet.html#method.add_proxy) - -#### remove_proxy - 2 - -<details><summary><code>remove_proxy(delegate, proxy_type, delay)</code></summary> - -Taking 0.0122 % of a block. - -```rust -delegate: AccountIdLookupOf<T> -proxy_type: T::ProxyType -delay: BlockNumberFor<T> -``` -</details> - -See [Pallet::remove_proxy](./doc/pallet_proxy/pallet/struct.Pallet.html#method.remove_proxy) - -#### remove_proxies - 3 - -<details><summary><code>remove_proxies()</code></summary> - -Taking 0.0121 % of a block. - -```rust -``` -</details> - -See [Pallet::remove_proxies](./doc/pallet_proxy/pallet/struct.Pallet.html#method.remove_proxies) - -#### create_pure - 4 - -<details><summary><code>create_pure(proxy_type, delay, index)</code></summary> - -Taking 0.0122 % of a block. - -```rust -proxy_type: T::ProxyType -delay: BlockNumberFor<T> -index: u16 -``` -</details> - -See [Pallet::create_pure](./doc/pallet_proxy/pallet/struct.Pallet.html#method.create_pure) - -#### kill_pure - 5 - -<details><summary><code>kill_pure(spawner, proxy_type, index, height, ext_index)</code></summary> - -Taking 0.0122 % of a block. - -```rust -spawner: AccountIdLookupOf<T> -proxy_type: T::ProxyType -index: u16 -height: BlockNumberFor<T> -ext_index: u32 -``` -</details> - -See [Pallet::kill_pure](./doc/pallet_proxy/pallet/struct.Pallet.html#method.kill_pure) - -#### announce - 6 - -<details><summary><code>announce(real, call_hash)</code></summary> - -Taking 0.0217 % of a block. - -```rust -real: AccountIdLookupOf<T> -call_hash: CallHashOf<T> -``` -</details> - -See [Pallet::announce](./doc/pallet_proxy/pallet/struct.Pallet.html#method.announce) - -#### remove_announcement - 7 - -<details><summary><code>remove_announcement(real, call_hash)</code></summary> - -Taking 0.02 % of a block. - -```rust -real: AccountIdLookupOf<T> -call_hash: CallHashOf<T> -``` -</details> - -See [Pallet::remove_announcement](./doc/pallet_proxy/pallet/struct.Pallet.html#method.remove_announcement) - -#### reject_announcement - 8 - -<details><summary><code>reject_announcement(delegate, call_hash)</code></summary> - -Taking 0.02 % of a block. - -```rust -delegate: AccountIdLookupOf<T> -call_hash: CallHashOf<T> -``` -</details> - -See [Pallet::reject_announcement](./doc/pallet_proxy/pallet/struct.Pallet.html#method.reject_announcement) - -#### proxy_announced - 9 - -<details><summary><code>proxy_announced(delegate, real, force_proxy_type, call)</code></summary> - -Taking 0.0218 % of a block. - -```rust -delegate: AccountIdLookupOf<T> -real: AccountIdLookupOf<T> -force_proxy_type: Option<T::ProxyType> -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::proxy_announced](./doc/pallet_proxy/pallet/struct.Pallet.html#method.proxy_announced) - -### Utility - 54 - -#### batch - 0 - -<details><summary><code>batch(calls)</code></summary> - -Taking 0.1058 % of a block. - -```rust -calls: Vec<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::batch](./doc/pallet_utility/pallet/struct.Pallet.html#method.batch) - -#### as_derivative - 1 - -<details><summary><code>as_derivative(index, call)</code></summary> - -Taking 0.0037 % of a block. - -```rust -index: u16 -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::as_derivative](./doc/pallet_utility/pallet/struct.Pallet.html#method.as_derivative) - -#### batch_all - 2 - -<details><summary><code>batch_all(calls)</code></summary> - -Taking 0.1127 % of a block. - -```rust -calls: Vec<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::batch_all](./doc/pallet_utility/pallet/struct.Pallet.html#method.batch_all) - -#### force_batch - 4 - -<details><summary><code>force_batch(calls)</code></summary> - -Taking 0.1053 % of a block. - -```rust -calls: Vec<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::force_batch](./doc/pallet_utility/pallet/struct.Pallet.html#method.force_batch) - -#### with_weight - 5 - -<details><summary><code>with_weight(call, weight)</code></summary> - -No weight available. - -```rust -call: Box<<T as Config>::RuntimeCall> -weight: Weight -``` -</details> - -See [Pallet::with_weight](./doc/pallet_utility/pallet/struct.Pallet.html#method.with_weight) - -### Treasury - 55 - -#### propose_spend - 0 - -<details><summary><code>propose_spend(value, beneficiary)</code></summary> - -Taking 0.0185 % of a block. - -```rust -value: BalanceOf<T, I> -beneficiary: AccountIdLookupOf<T> -``` -</details> - -See [Pallet::propose_spend](./doc/pallet_treasury/pallet/struct.Pallet.html#method.propose_spend) - -#### spend_local - 3 - -<details><summary><code>spend_local(amount, beneficiary)</code></summary> - -Taking 0.0036 % of a block. - -```rust -amount: BalanceOf<T, I> -beneficiary: AccountIdLookupOf<T> -``` -</details> - -See [Pallet::spend_local](./doc/pallet_treasury/pallet/struct.Pallet.html#method.spend_local) - -#### remove_approval - 4 - -<details><summary><code>remove_approval(proposal_id)</code></summary> - -Taking 0.0115 % of a block. - -```rust -proposal_id: ProposalIndex -``` -</details> - -See [Pallet::remove_approval](./doc/pallet_treasury/pallet/struct.Pallet.html#method.remove_approval) - -#### spend - 5 - -<details><summary><code>spend(asset_kind, amount, beneficiary, valid_from)</code></summary> - -Taking 0.0036 % of a block. - -```rust -asset_kind: Box<T::AssetKind> -amount: AssetBalanceOf<T, I> -beneficiary: Box<BeneficiaryLookupOf<T, I>> -valid_from: Option<BlockNumberFor<T>> -``` -</details> - -See [Pallet::spend](./doc/pallet_treasury/pallet/struct.Pallet.html#method.spend) - -#### payout - 6 - -<details><summary><code>payout(index)</code></summary> - -Taking 0.0286 % of a block. - -```rust -index: SpendIndex -``` -</details> - -See [Pallet::payout](./doc/pallet_treasury/pallet/struct.Pallet.html#method.payout) - -#### check_status - 7 - -<details><summary><code>check_status(index)</code></summary> - -Taking 0.0117 % of a block. - -```rust -index: SpendIndex -``` -</details> - -See [Pallet::check_status](./doc/pallet_treasury/pallet/struct.Pallet.html#method.check_status) - -#### void_spend - 8 - -<details><summary><code>void_spend(index)</code></summary> - -Taking 0.0117 % of a block. - -```rust -index: SpendIndex -``` -</details> - -See [Pallet::void_spend](./doc/pallet_treasury/pallet/struct.Pallet.html#method.void_spend) - - - -## Root calls - -There are **18** root calls from **8** pallets. - -### System - 0 - -#### set_heap_pages - 1 - -<details><summary><code>set_heap_pages(pages)</code></summary> - -Taking 0.0178 % of a block. - -```rust -pages: u64 -``` -</details> - -See [Pallet::set_heap_pages](./doc/frame_system/pallet/struct.Pallet.html#method.set_heap_pages) - -#### set_code - 2 - -<details><summary><code>set_code(code)</code></summary> - -Taking 3.9187 % of a block. - -```rust -code: Vec<u8> -``` -</details> - -See [Pallet::set_code](./doc/frame_system/pallet/struct.Pallet.html#method.set_code) - -#### set_code_without_checks - 3 - -<details><summary><code>set_code_without_checks(code)</code></summary> - -No weight available. - -```rust -code: Vec<u8> -``` -</details> - -See [Pallet::set_code_without_checks](./doc/frame_system/pallet/struct.Pallet.html#method.set_code_without_checks) - -#### set_storage - 4 - -<details><summary><code>set_storage(items)</code></summary> - -Taking 6.4116 % of a block. - -```rust -items: Vec<KeyValue> -``` -</details> - -See [Pallet::set_storage](./doc/frame_system/pallet/struct.Pallet.html#method.set_storage) - -#### kill_storage - 5 - -<details><summary><code>kill_storage(keys)</code></summary> - -Taking 6.403 % of a block. - -```rust -keys: Vec<Key> -``` -</details> - -See [Pallet::kill_storage](./doc/frame_system/pallet/struct.Pallet.html#method.kill_storage) - -#### kill_prefix - 6 - -<details><summary><code>kill_prefix(prefix, subkeys)</code></summary> - -Taking 7.7227 % of a block. - -```rust -prefix: Key -subkeys: u32 -``` -</details> - -See [Pallet::kill_prefix](./doc/frame_system/pallet/struct.Pallet.html#method.kill_prefix) - -#### authorize_upgrade - 9 - -<details><summary><code>authorize_upgrade(code_hash)</code></summary> - -Taking 0.0105 % of a block. - -```rust -code_hash: T::Hash -``` -</details> - -See [Pallet::authorize_upgrade](./doc/frame_system/pallet/struct.Pallet.html#method.authorize_upgrade) - -#### authorize_upgrade_without_checks - 10 - -<details><summary><code>authorize_upgrade_without_checks(code_hash)</code></summary> - -No weight available. - -```rust -code_hash: T::Hash -``` -</details> - -See [Pallet::authorize_upgrade_without_checks](./doc/frame_system/pallet/struct.Pallet.html#method.authorize_upgrade_without_checks) - -#### apply_authorized_upgrade - 11 - -<details><summary><code>apply_authorized_upgrade(code)</code></summary> - -Taking 4.137 % of a block. - -```rust -code: Vec<u8> -``` -</details> - -See [Pallet::apply_authorized_upgrade](./doc/frame_system/pallet/struct.Pallet.html#method.apply_authorized_upgrade) - -### Babe - 3 - -#### plan_config_change - 2 - -<details><summary><code>plan_config_change(config)</code></summary> - -No weight available. - -```rust -config: NextConfigDescriptor -``` -</details> - -See [Pallet::plan_config_change](./doc/pallet_babe/pallet/struct.Pallet.html#method.plan_config_change) - -### Balances - 6 - -#### force_transfer - 2 - -<details><summary><code>force_transfer(source, dest, value)</code></summary> - -Taking 0.0289 % of a block. - -```rust -source: AccountIdLookupOf<T> -dest: AccountIdLookupOf<T> -value: T::Balance -``` -</details> - -See [Pallet::force_transfer](./doc/pallet_balances/pallet/struct.Pallet.html#method.force_transfer) - -#### force_unreserve - 5 - -<details><summary><code>force_unreserve(who, amount)</code></summary> - -Taking 0.0119 % of a block. - -```rust -who: AccountIdLookupOf<T> -amount: T::Balance -``` -</details> - -See [Pallet::force_unreserve](./doc/pallet_balances/pallet/struct.Pallet.html#method.force_unreserve) - -### AuthorityMembers - 11 - -#### remove_member - 3 - -<details><summary><code>remove_member(member_id)</code></summary> - -Taking 0.0768 % of a block. - -```rust -member_id: T::MemberId -``` -</details> - -See [Pallet::remove_member](./doc/pallet_authority_members/pallet/struct.Pallet.html#method.remove_member) - -### Grandpa - 16 - -#### note_stalled - 2 - -<details><summary><code>note_stalled(delay, best_finalized_block_number)</code></summary> - -No weight available. - -```rust -delay: BlockNumberFor<T> -best_finalized_block_number: BlockNumberFor<T> -``` -</details> - -See [Pallet::note_stalled](./doc/pallet_grandpa/pallet/struct.Pallet.html#method.note_stalled) - -### TechnicalCommittee - 23 - -#### set_members - 0 - -<details><summary><code>set_members(new_members, prime, old_count)</code></summary> - -Taking 0.1828 % of a block. - -```rust -new_members: Vec<T::AccountId> -prime: Option<T::AccountId> -old_count: MemberCount -``` -</details> - -See [Pallet::set_members](./doc/pallet_collective/pallet/struct.Pallet.html#method.set_members) - -#### disapprove_proposal - 5 - -<details><summary><code>disapprove_proposal(proposal_hash)</code></summary> - -Taking 0.0247 % of a block. - -```rust -proposal_hash: T::Hash -``` -</details> - -See [Pallet::disapprove_proposal](./doc/pallet_collective/pallet/struct.Pallet.html#method.disapprove_proposal) - -### Identity - 41 - -#### prune_item_identities_names - 6 - -<details><summary><code>prune_item_identities_names(names)</code></summary> - -Taking 6.4472 % of a block. - -```rust -names: Vec<IdtyName> -``` -</details> - -See [Pallet::prune_item_identities_names](./doc/pallet_identity/pallet/struct.Pallet.html#method.prune_item_identities_names) - -### Utility - 54 - -#### dispatch_as - 3 - -<details><summary><code>dispatch_as(as_origin, call)</code></summary> - -Taking 0.0038 % of a block. - -```rust -as_origin: Box<T::PalletsOrigin> -call: Box<<T as Config>::RuntimeCall> -``` -</details> - -See [Pallet::dispatch_as](./doc/pallet_utility/pallet/struct.Pallet.html#method.dispatch_as) - - - - - - -## Disabled calls - -There are **4** disabled calls from **2** pallets. - -### System - 0 - -#### remark - 0 - -<details><summary><code>remark(remark)</code></summary> - -Taking 0.0536 % of a block. - -```rust -remark: Vec<u8> -``` -</details> - -See [Pallet::remark](./doc/frame_system/pallet/struct.Pallet.html#method.remark) - -#### remark_with_event - 7 - -<details><summary><code>remark_with_event(remark)</code></summary> - -Taking 0.2032 % of a block. - -```rust -remark: Vec<u8> -``` -</details> - -See [Pallet::remark_with_event](./doc/frame_system/pallet/struct.Pallet.html#method.remark_with_event) - -### Session - 15 - -#### set_keys - 0 - -<details><summary><code>set_keys(keys, proof)</code></summary> - -Taking 0.0431 % of a block. - -```rust -keys: T::Keys -proof: Vec<u8> -``` -</details> - -See [Pallet::set_keys](./doc/pallet_session/pallet/struct.Pallet.html#method.set_keys) - -#### purge_keys - 1 - -<details><summary><code>purge_keys()</code></summary> - -Taking 0.0375 % of a block. - -```rust -``` -</details> - -See [Pallet::purge_keys](./doc/pallet_session/pallet/struct.Pallet.html#method.purge_keys) - diff --git a/docs/api/runtime-errors.md b/docs/api/runtime-errors.md deleted file mode 100644 index cda156bf5f007c4fa32e1a07e11b0ac5bd1c17b8..0000000000000000000000000000000000000000 --- a/docs/api/runtime-errors.md +++ /dev/null @@ -1,1469 +0,0 @@ -# Runtime errors - -There are **188** errors from **35** pallets. - -<ul> -<li>System - 0 -<ul> -<li> -<details> -<summary> -<code>InvalidSpecName</code> - 0</summary> -The name of specification does not match between the current runtime -and the new runtime. -</details> -</li> -<li> -<details> -<summary> -<code>SpecVersionNeedsToIncrease</code> - 1</summary> -The specification version is not allowed to decrease between the current runtime -and the new runtime. -</details> -</li> -<li> -<details> -<summary> -<code>FailedToExtractRuntimeVersion</code> - 2</summary> -Failed to extract the runtime version from the new runtime. - -Either calling `Core_version` or decoding `RuntimeVersion` failed. -</details> -</li> -<li> -<details> -<summary> -<code>NonDefaultComposite</code> - 3</summary> -Suicide called when the account has non-default composite data. -</details> -</li> -<li> -<details> -<summary> -<code>NonZeroRefCount</code> - 4</summary> -There is a non-zero reference count preventing the account from being purged. -</details> -</li> -<li> -<details> -<summary> -<code>CallFiltered</code> - 5</summary> -The origin filter prevent the call to be dispatched. -</details> -</li> -<li> -<details> -<summary> -<code>NothingAuthorized</code> - 6</summary> -No upgrade authorized. -</details> -</li> -<li> -<details> -<summary> -<code>Unauthorized</code> - 7</summary> -The submitted code is not authorized. -</details> -</li> -</ul> -</li> -<li>Account - 1 -<ul> -</ul> -</li> -<li>Scheduler - 2 -<ul> -<li> -<details> -<summary> -<code>FailedToSchedule</code> - 0</summary> -Failed to schedule a call -</details> -</li> -<li> -<details> -<summary> -<code>NotFound</code> - 1</summary> -Cannot find the scheduled call. -</details> -</li> -<li> -<details> -<summary> -<code>TargetBlockNumberInPast</code> - 2</summary> -Given target block number is in the past. -</details> -</li> -<li> -<details> -<summary> -<code>RescheduleNoChange</code> - 3</summary> -Reschedule failed because it does not change scheduled time. -</details> -</li> -<li> -<details> -<summary> -<code>Named</code> - 4</summary> -Attempt to use a non-named function on a named task. -</details> -</li> -</ul> -</li> -<li>Babe - 3 -<ul> -<li> -<details> -<summary> -<code>InvalidEquivocationProof</code> - 0</summary> -An equivocation proof provided as part of an equivocation report is invalid. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidKeyOwnershipProof</code> - 1</summary> -A key ownership proof provided as part of an equivocation report is invalid. -</details> -</li> -<li> -<details> -<summary> -<code>DuplicateOffenceReport</code> - 2</summary> -A given equivocation report is valid but already previously reported. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidConfiguration</code> - 3</summary> -Submitted configuration is invalid. -</details> -</li> -</ul> -</li> -<li>Timestamp - 4 -<ul> -</ul> -</li> -<li>Parameters - 5 -<ul> -</ul> -</li> -<li>Balances - 6 -<ul> -<li> -<details> -<summary> -<code>VestingBalance</code> - 0</summary> -Vesting balance too high to send value. -</details> -</li> -<li> -<details> -<summary> -<code>LiquidityRestrictions</code> - 1</summary> -Account liquidity restrictions prevent withdrawal. -</details> -</li> -<li> -<details> -<summary> -<code>InsufficientBalance</code> - 2</summary> -Balance too low to send value. -</details> -</li> -<li> -<details> -<summary> -<code>ExistentialDeposit</code> - 3</summary> -Value too low to create account due to existential deposit. -</details> -</li> -<li> -<details> -<summary> -<code>Expendability</code> - 4</summary> -Transfer/payment would kill account. -</details> -</li> -<li> -<details> -<summary> -<code>ExistingVestingSchedule</code> - 5</summary> -A vesting schedule already exists for this account. -</details> -</li> -<li> -<details> -<summary> -<code>DeadAccount</code> - 6</summary> -Beneficiary account must pre-exist. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyReserves</code> - 7</summary> -Number of named reserves exceed `MaxReserves`. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyHolds</code> - 8</summary> -Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyFreezes</code> - 9</summary> -Number of freezes exceed `MaxFreezes`. -</details> -</li> -<li> -<details> -<summary> -<code>IssuanceDeactivated</code> - 10</summary> -The issuance cannot be modified since it is already deactivated. -</details> -</li> -<li> -<details> -<summary> -<code>DeltaZero</code> - 11</summary> -The delta cannot be zero. -</details> -</li> -</ul> -</li> -<li>TransactionPayment - 32 -<ul> -</ul> -</li> -<li>OneshotAccount - 7 -<ul> -<li> -<details> -<summary> -<code>BlockHeightInFuture</code> - 0</summary> -Block height is in the future. -</details> -</li> -<li> -<details> -<summary> -<code>BlockHeightTooOld</code> - 1</summary> -Block height is too old. -</details> -</li> -<li> -<details> -<summary> -<code>DestAccountNotExist</code> - 2</summary> -Destination account does not exist. -</details> -</li> -<li> -<details> -<summary> -<code>ExistentialDeposit</code> - 3</summary> -Destination account has a balance less than the existential deposit. -</details> -</li> -<li> -<details> -<summary> -<code>InsufficientBalance</code> - 4</summary> -Source account has insufficient balance. -</details> -</li> -<li> -<details> -<summary> -<code>OneshotAccountAlreadyCreated</code> - 5</summary> -Destination oneshot account already exists. -</details> -</li> -<li> -<details> -<summary> -<code>OneshotAccountNotExist</code> - 6</summary> -Source oneshot account does not exist. -</details> -</li> -</ul> -</li> -<li>Quota - 66 -<ul> -</ul> -</li> -<li>SmithMembers - 10 -<ul> -<li> -<details> -<summary> -<code>OriginMustHaveAnIdentity</code> - 0</summary> -Issuer of anything (invitation, acceptance, certification) must have an identity ID -</details> -</li> -<li> -<details> -<summary> -<code>OriginHasNeverBeenInvited</code> - 1</summary> -Issuer must be known as a potential smith -</details> -</li> -<li> -<details> -<summary> -<code>InvitationIsASmithPrivilege</code> - 2</summary> -Invitation is reseverd to smiths -</details> -</li> -<li> -<details> -<summary> -<code>InvitationIsAOnlineSmithPrivilege</code> - 3</summary> -Invitation is reseverd to online smiths -</details> -</li> -<li> -<details> -<summary> -<code>InvitationAlreadyAccepted</code> - 4</summary> -Invitation must not have been accepted yet -</details> -</li> -<li> -<details> -<summary> -<code>InvitationOfExistingNonExcluded</code> - 5</summary> -Invitation of an already known smith is forbidden except if it has been excluded -</details> -</li> -<li> -<details> -<summary> -<code>InvitationOfNonMember</code> - 6</summary> -Invitation of a non-member (of the WoT) is forbidden -</details> -</li> -<li> -<details> -<summary> -<code>CertificationMustBeAgreed</code> - 7</summary> -Certification cannot be made on someone who has not accepted an invitation -</details> -</li> -<li> -<details> -<summary> -<code>CertificationOnExcludedIsForbidden</code> - 8</summary> -Certification cannot be made on excluded -</details> -</li> -<li> -<details> -<summary> -<code>CertificationIsASmithPrivilege</code> - 9</summary> -Issuer must be a smith -</details> -</li> -<li> -<details> -<summary> -<code>CertificationIsAOnlineSmithPrivilege</code> - 10</summary> -Only online smiths can certify -</details> -</li> -<li> -<details> -<summary> -<code>CertificationOfSelfIsForbidden</code> - 11</summary> -Smith cannot certify itself -</details> -</li> -<li> -<details> -<summary> -<code>CertificationReceiverMustHaveBeenInvited</code> - 12</summary> -Receiver must be invited by another smith -</details> -</li> -<li> -<details> -<summary> -<code>CertificationAlreadyExists</code> - 13</summary> -Receiver must not already have this certification -</details> -</li> -<li> -<details> -<summary> -<code>CertificationStockFullyConsumed</code> - 14</summary> -A smith has a limited stock of certifications -</details> -</li> -</ul> -</li> -<li>AuthorityMembers - 11 -<ul> -<li> -<details> -<summary> -<code>AlreadyIncoming</code> - 0</summary> -Member already incoming. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyOnline</code> - 1</summary> -Member already online. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyOutgoing</code> - 2</summary> -Member already outgoing. -</details> -</li> -<li> -<details> -<summary> -<code>MemberIdNotFound</code> - 3</summary> -Owner key is invalid as a member. -</details> -</li> -<li> -<details> -<summary> -<code>MemberBlacklisted</code> - 4</summary> -Member is blacklisted. -</details> -</li> -<li> -<details> -<summary> -<code>MemberNotBlacklisted</code> - 5</summary> -Member is not blacklisted. -</details> -</li> -<li> -<details> -<summary> -<code>MemberNotFound</code> - 6</summary> -Member not found. -</details> -</li> -<li> -<details> -<summary> -<code>NotOnlineNorIncoming</code> - 7</summary> -Neither online nor scheduled. -</details> -</li> -<li> -<details> -<summary> -<code>NotMember</code> - 8</summary> -Not member. -</details> -</li> -<li> -<details> -<summary> -<code>SessionKeysNotProvided</code> - 9</summary> -Session keys not provided. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyAuthorities</code> - 10</summary> -Too many authorities. -</details> -</li> -</ul> -</li> -<li>Authorship - 12 -<ul> -</ul> -</li> -<li>Offences - 13 -<ul> -</ul> -</li> -<li>Historical - 14 -<ul> -</ul> -</li> -<li>Session - 15 -<ul> -<li> -<details> -<summary> -<code>InvalidProof</code> - 0</summary> -Invalid ownership proof. -</details> -</li> -<li> -<details> -<summary> -<code>NoAssociatedValidatorId</code> - 1</summary> -No associated validator ID for account. -</details> -</li> -<li> -<details> -<summary> -<code>DuplicatedKey</code> - 2</summary> -Registered duplicate key. -</details> -</li> -<li> -<details> -<summary> -<code>NoKeys</code> - 3</summary> -No keys are associated with this account. -</details> -</li> -<li> -<details> -<summary> -<code>NoAccount</code> - 4</summary> -Key setting account is not live, so it's impossible to associate keys. -</details> -</li> -</ul> -</li> -<li>Grandpa - 16 -<ul> -<li> -<details> -<summary> -<code>PauseFailed</code> - 0</summary> -Attempt to signal GRANDPA pause when the authority set isn't live -(either paused or already pending pause). -</details> -</li> -<li> -<details> -<summary> -<code>ResumeFailed</code> - 1</summary> -Attempt to signal GRANDPA resume when the authority set isn't paused -(either live or already pending resume). -</details> -</li> -<li> -<details> -<summary> -<code>ChangePending</code> - 2</summary> -Attempt to signal GRANDPA change with one already pending. -</details> -</li> -<li> -<details> -<summary> -<code>TooSoon</code> - 3</summary> -Cannot signal forced change so soon after last. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidKeyOwnershipProof</code> - 4</summary> -A key ownership proof provided as part of an equivocation report is invalid. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidEquivocationProof</code> - 5</summary> -An equivocation proof provided as part of an equivocation report is invalid. -</details> -</li> -<li> -<details> -<summary> -<code>DuplicateOffenceReport</code> - 6</summary> -A given equivocation report is valid but already previously reported. -</details> -</li> -</ul> -</li> -<li>ImOnline - 17 -<ul> -<li> -<details> -<summary> -<code>InvalidKey</code> - 0</summary> -Non existent public key. -</details> -</li> -<li> -<details> -<summary> -<code>DuplicatedHeartbeat</code> - 1</summary> -Duplicated heartbeat. -</details> -</li> -</ul> -</li> -<li>AuthorityDiscovery - 18 -<ul> -</ul> -</li> -<li>Sudo - 20 -<ul> -<li> -<details> -<summary> -<code>RequireSudo</code> - 0</summary> -Sender must be the Sudo account. -</details> -</li> -</ul> -</li> -<li>UpgradeOrigin - 21 -<ul> -</ul> -</li> -<li>Preimage - 22 -<ul> -<li> -<details> -<summary> -<code>TooBig</code> - 0</summary> -Preimage is too large to store on-chain. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyNoted</code> - 1</summary> -Preimage has already been noted on-chain. -</details> -</li> -<li> -<details> -<summary> -<code>NotAuthorized</code> - 2</summary> -The user is not authorized to perform this action. -</details> -</li> -<li> -<details> -<summary> -<code>NotNoted</code> - 3</summary> -The preimage cannot be removed since it has not yet been noted. -</details> -</li> -<li> -<details> -<summary> -<code>Requested</code> - 4</summary> -A preimage may not be removed when there are outstanding requests. -</details> -</li> -<li> -<details> -<summary> -<code>NotRequested</code> - 5</summary> -The preimage request cannot be removed since no outstanding requests exist. -</details> -</li> -<li> -<details> -<summary> -<code>TooMany</code> - 6</summary> -More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once. -</details> -</li> -<li> -<details> -<summary> -<code>TooFew</code> - 7</summary> -Too few hashes were requested to be upgraded (i.e. zero). -</details> -</li> -</ul> -</li> -<li>TechnicalCommittee - 23 -<ul> -<li> -<details> -<summary> -<code>NotMember</code> - 0</summary> -Account is not a member -</details> -</li> -<li> -<details> -<summary> -<code>DuplicateProposal</code> - 1</summary> -Duplicate proposals not allowed -</details> -</li> -<li> -<details> -<summary> -<code>ProposalMissing</code> - 2</summary> -Proposal must exist -</details> -</li> -<li> -<details> -<summary> -<code>WrongIndex</code> - 3</summary> -Mismatched index -</details> -</li> -<li> -<details> -<summary> -<code>DuplicateVote</code> - 4</summary> -Duplicate vote ignored -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyInitialized</code> - 5</summary> -Members are already initialized! -</details> -</li> -<li> -<details> -<summary> -<code>TooEarly</code> - 6</summary> -The close call was made too early, before the end of the voting. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyProposals</code> - 7</summary> -There can only be a maximum of `MaxProposals` active proposals. -</details> -</li> -<li> -<details> -<summary> -<code>WrongProposalWeight</code> - 8</summary> -The given weight bound for the proposal was too low. -</details> -</li> -<li> -<details> -<summary> -<code>WrongProposalLength</code> - 9</summary> -The given length bound for the proposal was too low. -</details> -</li> -<li> -<details> -<summary> -<code>PrimeAccountNotMember</code> - 10</summary> -Prime account is not a member -</details> -</li> -</ul> -</li> -<li>UniversalDividend - 30 -<ul> -<li> -<details> -<summary> -<code>AccountNotAllowedToClaimUds</code> - 0</summary> -This account is not allowed to claim UDs. -</details> -</li> -</ul> -</li> -<li>Wot - 40 -<ul> -<li> -<details> -<summary> -<code>NotEnoughCerts</code> - 0</summary> -Insufficient certifications received. -</details> -</li> -<li> -<details> -<summary> -<code>TargetStatusInvalid</code> - 1</summary> -Target status is incompatible with this operation. -</details> -</li> -<li> -<details> -<summary> -<code>IdtyCreationPeriodNotRespected</code> - 2</summary> -Identity creation period not respected. -</details> -</li> -<li> -<details> -<summary> -<code>NotEnoughReceivedCertsToCreateIdty</code> - 3</summary> -Insufficient received certifications to create identity. -</details> -</li> -<li> -<details> -<summary> -<code>MaxEmittedCertsReached</code> - 4</summary> -Maximum number of emitted certifications reached. -</details> -</li> -<li> -<details> -<summary> -<code>IssuerNotMember</code> - 5</summary> -Issuer cannot emit a certification because it is not member. -</details> -</li> -<li> -<details> -<summary> -<code>IdtyNotFound</code> - 6</summary> -Issuer or receiver not found. -</details> -</li> -<li> -<details> -<summary> -<code>MembershipRenewalPeriodNotRespected</code> - 7</summary> -Membership can only be renewed after an antispam delay. -</details> -</li> -</ul> -</li> -<li>Identity - 41 -<ul> -<li> -<details> -<summary> -<code>IdtyAlreadyConfirmed</code> - 0</summary> -Identity already confirmed. -</details> -</li> -<li> -<details> -<summary> -<code>IdtyAlreadyCreated</code> - 1</summary> -Identity already created. -</details> -</li> -<li> -<details> -<summary> -<code>IdtyIndexNotFound</code> - 2</summary> -Identity index not found. -</details> -</li> -<li> -<details> -<summary> -<code>IdtyNameAlreadyExist</code> - 3</summary> -Identity name already exists. -</details> -</li> -<li> -<details> -<summary> -<code>IdtyNameInvalid</code> - 4</summary> -Invalid identity name. -</details> -</li> -<li> -<details> -<summary> -<code>IdtyNotFound</code> - 5</summary> -Identity not found. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidSignature</code> - 6</summary> -Invalid payload signature. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidRevocationKey</code> - 7</summary> -Invalid revocation key. -</details> -</li> -<li> -<details> -<summary> -<code>IssuerNotMember</code> - 8</summary> -Issuer is not member and can not perform this action. -</details> -</li> -<li> -<details> -<summary> -<code>NotRespectIdtyCreationPeriod</code> - 9</summary> -Identity creation period is not respected. -</details> -</li> -<li> -<details> -<summary> -<code>OwnerKeyAlreadyRecentlyChanged</code> - 10</summary> -Owner key already changed recently. -</details> -</li> -<li> -<details> -<summary> -<code>OwnerKeyAlreadyUsed</code> - 11</summary> -Owner key already used. -</details> -</li> -<li> -<details> -<summary> -<code>ProhibitedToRevertToAnOldKey</code> - 12</summary> -Reverting to an old key is prohibited. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyRevoked</code> - 13</summary> -Already revoked. -</details> -</li> -<li> -<details> -<summary> -<code>CanNotRevokeUnconfirmed</code> - 14</summary> -Can not revoke identity that never was member. -</details> -</li> -<li> -<details> -<summary> -<code>CanNotRevokeUnvalidated</code> - 15</summary> -Can not revoke identity that never was member. -</details> -</li> -<li> -<details> -<summary> -<code>AccountNotExist</code> - 16</summary> -Cannot link to an inexisting account. -</details> -</li> -</ul> -</li> -<li>Membership - 42 -<ul> -<li> -<details> -<summary> -<code>MembershipNotFound</code> - 0</summary> -Membership not found, can not renew. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyMember</code> - 1</summary> -Already member, can not add membership. -</details> -</li> -</ul> -</li> -<li>Certification - 43 -<ul> -<li> -<details> -<summary> -<code>OriginMustHaveAnIdentity</code> - 0</summary> -Issuer of a certification must have an identity -</details> -</li> -<li> -<details> -<summary> -<code>CannotCertifySelf</code> - 1</summary> -Identity cannot certify itself. -</details> -</li> -<li> -<details> -<summary> -<code>IssuedTooManyCert</code> - 2</summary> -Identity has already issued the maximum number of certifications. -</details> -</li> -<li> -<details> -<summary> -<code>NotEnoughCertReceived</code> - 3</summary> -Insufficient certifications received. -</details> -</li> -<li> -<details> -<summary> -<code>NotRespectCertPeriod</code> - 4</summary> -Identity has issued a certification too recently. -</details> -</li> -<li> -<details> -<summary> -<code>CertAlreadyExists</code> - 5</summary> -Can not add an already-existing cert -</details> -</li> -<li> -<details> -<summary> -<code>CertDoesNotExist</code> - 6</summary> -Can not renew a non-existing cert -</details> -</li> -</ul> -</li> -<li>Distance - 44 -<ul> -<li> -<details> -<summary> -<code>AlreadyInEvaluation</code> - 0</summary> -Distance is already under evaluation. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyEvaluationsByAuthor</code> - 1</summary> -Too many evaluations requested by author. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyEvaluationsInBlock</code> - 2</summary> -Too many evaluations for this block. -</details> -</li> -<li> -<details> -<summary> -<code>NoAuthor</code> - 3</summary> -No author for this block. -</details> -</li> -<li> -<details> -<summary> -<code>CallerHasNoIdentity</code> - 4</summary> -Caller has no identity. -</details> -</li> -<li> -<details> -<summary> -<code>CallerIdentityNotFound</code> - 5</summary> -Caller identity not found. -</details> -</li> -<li> -<details> -<summary> -<code>CallerNotMember</code> - 6</summary> -Caller not member. -</details> -</li> -<li> -<details> -<summary> -<code>CallerStatusInvalid</code> - 7</summary> - -</details> -</li> -<li> -<details> -<summary> -<code>TargetIdentityNotFound</code> - 8</summary> -Target identity not found. -</details> -</li> -<li> -<details> -<summary> -<code>QueueFull</code> - 9</summary> -Evaluation queue is full. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyEvaluators</code> - 10</summary> -Too many evaluators in the current evaluation pool. -</details> -</li> -<li> -<details> -<summary> -<code>WrongResultLength</code> - 11</summary> -Evaluation result has a wrong length. -</details> -</li> -<li> -<details> -<summary> -<code>TargetMustBeUnvalidated</code> - 12</summary> -Targeted distance evaluation request is only possible for an unvalidated identity. -</details> -</li> -</ul> -</li> -<li>AtomicSwap - 50 -<ul> -<li> -<details> -<summary> -<code>AlreadyExist</code> - 0</summary> -Swap already exists. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidProof</code> - 1</summary> -Swap proof is invalid. -</details> -</li> -<li> -<details> -<summary> -<code>ProofTooLarge</code> - 2</summary> -Proof is too large. -</details> -</li> -<li> -<details> -<summary> -<code>SourceMismatch</code> - 3</summary> -Source does not match. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyClaimed</code> - 4</summary> -Swap has already been claimed. -</details> -</li> -<li> -<details> -<summary> -<code>NotExist</code> - 5</summary> -Swap does not exist. -</details> -</li> -<li> -<details> -<summary> -<code>ClaimActionMismatch</code> - 6</summary> -Claim action mismatch. -</details> -</li> -<li> -<details> -<summary> -<code>DurationNotPassed</code> - 7</summary> -Duration has not yet passed for the swap to be cancelled. -</details> -</li> -</ul> -</li> -<li>Multisig - 51 -<ul> -<li> -<details> -<summary> -<code>MinimumThreshold</code> - 0</summary> -Threshold must be 2 or greater. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyApproved</code> - 1</summary> -Call is already approved by this signatory. -</details> -</li> -<li> -<details> -<summary> -<code>NoApprovalsNeeded</code> - 2</summary> -Call doesn't need any (more) approvals. -</details> -</li> -<li> -<details> -<summary> -<code>TooFewSignatories</code> - 3</summary> -There are too few signatories in the list. -</details> -</li> -<li> -<details> -<summary> -<code>TooManySignatories</code> - 4</summary> -There are too many signatories in the list. -</details> -</li> -<li> -<details> -<summary> -<code>SignatoriesOutOfOrder</code> - 5</summary> -The signatories were provided out of order; they should be ordered. -</details> -</li> -<li> -<details> -<summary> -<code>SenderInSignatories</code> - 6</summary> -The sender was contained in the other signatories; it shouldn't be. -</details> -</li> -<li> -<details> -<summary> -<code>NotFound</code> - 7</summary> -Multisig operation not found when attempting to cancel. -</details> -</li> -<li> -<details> -<summary> -<code>NotOwner</code> - 8</summary> -Only the account that originally created the multisig is able to cancel it. -</details> -</li> -<li> -<details> -<summary> -<code>NoTimepoint</code> - 9</summary> -No timepoint was given, yet the multisig operation is already underway. -</details> -</li> -<li> -<details> -<summary> -<code>WrongTimepoint</code> - 10</summary> -A different timepoint was given to the multisig operation that is underway. -</details> -</li> -<li> -<details> -<summary> -<code>UnexpectedTimepoint</code> - 11</summary> -A timepoint was given, yet no multisig operation is underway. -</details> -</li> -<li> -<details> -<summary> -<code>MaxWeightTooLow</code> - 12</summary> -The maximum weight information provided was too low. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyStored</code> - 13</summary> -The data to be stored is already stored. -</details> -</li> -</ul> -</li> -<li>ProvideRandomness - 52 -<ul> -<li> -<details> -<summary> -<code>QueueFull</code> - 0</summary> -Request randomness queue is full. -</details> -</li> -</ul> -</li> -<li>Proxy - 53 -<ul> -<li> -<details> -<summary> -<code>TooMany</code> - 0</summary> -There are too many proxies registered or too many announcements pending. -</details> -</li> -<li> -<details> -<summary> -<code>NotFound</code> - 1</summary> -Proxy registration not found. -</details> -</li> -<li> -<details> -<summary> -<code>NotProxy</code> - 2</summary> -Sender is not a proxy of the account to be proxied. -</details> -</li> -<li> -<details> -<summary> -<code>Unproxyable</code> - 3</summary> -A call which is incompatible with the proxy type's filter was attempted. -</details> -</li> -<li> -<details> -<summary> -<code>Duplicate</code> - 4</summary> -Account is already a proxy. -</details> -</li> -<li> -<details> -<summary> -<code>NoPermission</code> - 5</summary> -Call may not be made by proxy because it may escalate its privileges. -</details> -</li> -<li> -<details> -<summary> -<code>Unannounced</code> - 6</summary> -Announcement, if made at all, was made too recently. -</details> -</li> -<li> -<details> -<summary> -<code>NoSelfProxy</code> - 7</summary> -Cannot add self as proxy. -</details> -</li> -</ul> -</li> -<li>Utility - 54 -<ul> -<li> -<details> -<summary> -<code>TooManyCalls</code> - 0</summary> -Too many calls batched. -</details> -</li> -</ul> -</li> -<li>Treasury - 55 -<ul> -<li> -<details> -<summary> -<code>InsufficientProposersBalance</code> - 0</summary> -Proposer's balance is too low. -</details> -</li> -<li> -<details> -<summary> -<code>InvalidIndex</code> - 1</summary> -No proposal, bounty or spend at that index. -</details> -</li> -<li> -<details> -<summary> -<code>TooManyApprovals</code> - 2</summary> -Too many approvals in the queue. -</details> -</li> -<li> -<details> -<summary> -<code>InsufficientPermission</code> - 3</summary> -The spend origin is valid but the amount it is allowed to spend is lower than the -amount to be spent. -</details> -</li> -<li> -<details> -<summary> -<code>ProposalNotApproved</code> - 4</summary> -Proposal has not been approved. -</details> -</li> -<li> -<details> -<summary> -<code>FailedToConvertBalance</code> - 5</summary> -The balance of the asset kind is not convertible to the balance of the native asset. -</details> -</li> -<li> -<details> -<summary> -<code>SpendExpired</code> - 6</summary> -The spend has expired and cannot be claimed. -</details> -</li> -<li> -<details> -<summary> -<code>EarlyPayout</code> - 7</summary> -The spend is not yet eligible for payout. -</details> -</li> -<li> -<details> -<summary> -<code>AlreadyAttempted</code> - 8</summary> -The payment has already been attempted. -</details> -</li> -<li> -<details> -<summary> -<code>PayoutError</code> - 9</summary> -There was some issue with the mechanism of payment. -</details> -</li> -<li> -<details> -<summary> -<code>NotAttempted</code> - 10</summary> -The payout was not yet attempted/claimed. -</details> -</li> -<li> -<details> -<summary> -<code>Inconclusive</code> - 11</summary> -The payment has neither failed nor succeeded yet. -</details> -</li> -</ul> -</li> -</ul> \ No newline at end of file diff --git a/docs/api/runtime-events.md b/docs/api/runtime-events.md deleted file mode 100644 index 067cedb430096912a826b5a349b19baf67fde622..0000000000000000000000000000000000000000 --- a/docs/api/runtime-events.md +++ /dev/null @@ -1,1905 +0,0 @@ -# Runtime events - -There are **135** events from **35** pallets. - -<ul> -<li>System - 0 -<ul> -<li> -<details> -<summary> -<code>ExtrinsicSuccess(dispatch_info)</code> - 0</summary> -An extrinsic completed successfully. - -```rust -dispatch_info: DispatchInfo -``` - -</details> -</li> -<li> -<details> -<summary> -<code>ExtrinsicFailed(dispatch_error, dispatch_info)</code> - 1</summary> -An extrinsic failed. - -```rust -dispatch_error: DispatchError -dispatch_info: DispatchInfo -``` - -</details> -</li> -<li> -<details> -<summary> -<code>CodeUpdated()</code> - 2</summary> -`:code` was updated. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>NewAccount(account)</code> - 3</summary> -A new account was created. - -```rust -account: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>KilledAccount(account)</code> - 4</summary> -An account was reaped. - -```rust -account: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Remarked(sender, hash)</code> - 5</summary> -On on-chain remark happened. - -```rust -sender: T::AccountId -hash: T::Hash -``` - -</details> -</li> -<li> -<details> -<summary> -<code>UpgradeAuthorized(code_hash, check_version)</code> - 6</summary> -An upgrade was authorized. - -```rust -code_hash: T::Hash -check_version: bool -``` - -</details> -</li> -</ul> -</li> -<li>Account - 1 -<ul> -<li> -<details> -<summary> -<code>AccountLinked(who, identity)</code> - 0</summary> -account linked to identity - -```rust -who: T::AccountId -identity: IdtyIdOf<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>AccountUnlinked()</code> - 1</summary> -The account was unlinked from its identity. - -```rust -: T::AccountId -``` - -</details> -</li> -</ul> -</li> -<li>Scheduler - 2 -<ul> -<li> -<details> -<summary> -<code>Scheduled(when, index)</code> - 0</summary> -Scheduled some task. - -```rust -when: BlockNumberFor<T> -index: u32 -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Canceled(when, index)</code> - 1</summary> -Canceled some task. - -```rust -when: BlockNumberFor<T> -index: u32 -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Dispatched(task, id, result)</code> - 2</summary> -Dispatched some task. - -```rust -task: TaskAddress<BlockNumberFor<T>> -id: Option<TaskName> -result: DispatchResult -``` - -</details> -</li> -<li> -<details> -<summary> -<code>CallUnavailable(task, id)</code> - 3</summary> -The call for the provided hash was not found so the task has been aborted. - -```rust -task: TaskAddress<BlockNumberFor<T>> -id: Option<TaskName> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>PeriodicFailed(task, id)</code> - 4</summary> -The given task was unable to be renewed since the agenda is full at that block. - -```rust -task: TaskAddress<BlockNumberFor<T>> -id: Option<TaskName> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>PermanentlyOverweight(task, id)</code> - 5</summary> -The given task can never be executed since it is overweight. - -```rust -task: TaskAddress<BlockNumberFor<T>> -id: Option<TaskName> -``` - -</details> -</li> -</ul> -</li> -<li>Babe - 3 -<ul> -</ul> -</li> -<li>Timestamp - 4 -<ul> -</ul> -</li> -<li>Parameters - 5 -<ul> -</ul> -</li> -<li>Balances - 6 -<ul> -<li> -<details> -<summary> -<code>Endowed(account, free_balance)</code> - 0</summary> -An account was created with some free balance. - -```rust -account: T::AccountId -free_balance: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>DustLost(account, amount)</code> - 1</summary> -An account was removed whose balance was non-zero but below ExistentialDeposit, -resulting in an outright loss. - -```rust -account: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Transfer(from, to, amount)</code> - 2</summary> -Transfer succeeded. - -```rust -from: T::AccountId -to: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>BalanceSet(who, free)</code> - 3</summary> -A balance was set by root. - -```rust -who: T::AccountId -free: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Reserved(who, amount)</code> - 4</summary> -Some balance was reserved (moved from free to reserved). - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Unreserved(who, amount)</code> - 5</summary> -Some balance was unreserved (moved from reserved to free). - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>ReserveRepatriated(from, to, amount, destination_status)</code> - 6</summary> -Some balance was moved from the reserve of the first account to the second account. -Final argument indicates the destination balance type. - -```rust -from: T::AccountId -to: T::AccountId -amount: T::Balance -destination_status: Status -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Deposit(who, amount)</code> - 7</summary> -Some amount was deposited (e.g. for transaction fees). - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Withdraw(who, amount)</code> - 8</summary> -Some amount was withdrawn from the account (e.g. for transaction fees). - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Slashed(who, amount)</code> - 9</summary> -Some amount was removed from the account (e.g. for misbehavior). - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Minted(who, amount)</code> - 10</summary> -Some amount was minted into an account. - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Burned(who, amount)</code> - 11</summary> -Some amount was burned from an account. - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Suspended(who, amount)</code> - 12</summary> -Some amount was suspended from an account (it can be restored later). - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Restored(who, amount)</code> - 13</summary> -Some amount was restored into an account. - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Upgraded(who)</code> - 14</summary> -An account was upgraded. - -```rust -who: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Issued(amount)</code> - 15</summary> -Total issuance was increased by `amount`, creating a credit to be balanced. - -```rust -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Rescinded(amount)</code> - 16</summary> -Total issuance was decreased by `amount`, creating a debt to be balanced. - -```rust -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Locked(who, amount)</code> - 17</summary> -Some balance was locked. - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Unlocked(who, amount)</code> - 18</summary> -Some balance was unlocked. - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Frozen(who, amount)</code> - 19</summary> -Some balance was frozen. - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Thawed(who, amount)</code> - 20</summary> -Some balance was thawed. - -```rust -who: T::AccountId -amount: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>TotalIssuanceForced(old, new)</code> - 21</summary> -The `TotalIssuance` was forcefully changed. - -```rust -old: T::Balance -new: T::Balance -``` - -</details> -</li> -</ul> -</li> -<li>TransactionPayment - 32 -<ul> -<li> -<details> -<summary> -<code>TransactionFeePaid(who, actual_fee, tip)</code> - 0</summary> -A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, -has been paid by `who`. - -```rust -who: T::AccountId -actual_fee: BalanceOf<T> -tip: BalanceOf<T> -``` - -</details> -</li> -</ul> -</li> -<li>OneshotAccount - 7 -<ul> -<li> -<details> -<summary> -<code>OneshotAccountCreated(account, balance, creator)</code> - 0</summary> -A oneshot account was created. - -```rust -account: T::AccountId -balance: <T::Currency as Currency<T::AccountId>>::Balance -creator: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>OneshotAccountConsumed(account, dest1, dest2)</code> - 1</summary> -A oneshot account was consumed. - -```rust -account: T::AccountId -dest1: (T::AccountId,<T::Currency as Currency<T::AccountId>>::Balance,) -dest2: Option< -(T::AccountId,<T::Currency as Currency<T::AccountId>>::Balance,) -> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Withdraw(account, balance)</code> - 2</summary> -A withdrawal was executed on a oneshot account. - -```rust -account: T::AccountId -balance: <T::Currency as Currency<T::AccountId>>::Balance -``` - -</details> -</li> -</ul> -</li> -<li>Quota - 66 -<ul> -<li> -<details> -<summary> -<code>Refunded(who, identity, amount)</code> - 0</summary> -Transaction fees were refunded. - -```rust -who: T::AccountId -identity: IdtyId<T> -amount: BalanceOf<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>NoQuotaForIdty()</code> - 1</summary> -No more quota available for refund. - -```rust -: IdtyId<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>NoMoreCurrencyForRefund()</code> - 2</summary> -No more currency available for refund. -This scenario should never occur if the fees are intended for the refund account. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>RefundFailed()</code> - 3</summary> -The refund has failed. -This scenario should rarely occur, except when the account was destroyed in the interim between the request and the refund. - -```rust -: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>RefundQueueFull()</code> - 4</summary> -Refund queue was full. - -```rust -no args -``` - -</details> -</li> -</ul> -</li> -<li>SmithMembers - 10 -<ul> -<li> -<details> -<summary> -<code>InvitationSent(receiver, issuer)</code> - 0</summary> -An identity is being inivited to become a smith. - -```rust -receiver: T::IdtyIndex -issuer: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>InvitationAccepted(idty_index)</code> - 1</summary> -The invitation has been accepted. - -```rust -idty_index: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SmithCertAdded(receiver, issuer)</code> - 2</summary> -Certification received - -```rust -receiver: T::IdtyIndex -issuer: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SmithCertRemoved(receiver, issuer)</code> - 3</summary> -Certification lost - -```rust -receiver: T::IdtyIndex -issuer: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SmithMembershipAdded(idty_index)</code> - 4</summary> -A smith gathered enough certifications to become an authority (can call `go_online()`). - -```rust -idty_index: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SmithMembershipRemoved(idty_index)</code> - 5</summary> -A smith has been removed from the smiths set. - -```rust -idty_index: T::IdtyIndex -``` - -</details> -</li> -</ul> -</li> -<li>AuthorityMembers - 11 -<ul> -<li> -<details> -<summary> -<code>IncomingAuthorities(members)</code> - 0</summary> -List of members scheduled to join the set of authorities in the next session. - -```rust -members: Vec<T::MemberId> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>OutgoingAuthorities(members)</code> - 1</summary> -List of members leaving the set of authorities in the next session. - -```rust -members: Vec<T::MemberId> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MemberGoOffline(member)</code> - 2</summary> -A member will leave the set of authorities in 2 sessions. - -```rust -member: T::MemberId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MemberGoOnline(member)</code> - 3</summary> -A member will join the set of authorities in 2 sessions. - -```rust -member: T::MemberId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MemberRemoved(member)</code> - 4</summary> -A member, who no longer has authority rights, will be removed from the authority set in 2 sessions. - -```rust -member: T::MemberId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MemberRemovedFromBlacklist(member)</code> - 5</summary> -A member has been removed from the blacklist. - -```rust -member: T::MemberId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MemberAddedToBlacklist(member)</code> - 6</summary> -A member has been blacklisted. - -```rust -member: T::MemberId -``` - -</details> -</li> -</ul> -</li> -<li>Authorship - 12 -<ul> -</ul> -</li> -<li>Offences - 13 -<ul> -<li> -<details> -<summary> -<code>Offence(kind, timeslot)</code> - 0</summary> -An offense was reported during the specified time slot. This event is not deposited for duplicate slashes. - -```rust -kind: Kind -timeslot: OpaqueTimeSlot -``` - -</details> -</li> -</ul> -</li> -<li>Historical - 14 -<ul> -</ul> -</li> -<li>Session - 15 -<ul> -<li> -<details> -<summary> -<code>NewSession(session_index)</code> - 0</summary> -New session has happened. Note that the argument is the session index, not the -block number as the type might suggest. - -```rust -session_index: SessionIndex -``` - -</details> -</li> -</ul> -</li> -<li>Grandpa - 16 -<ul> -<li> -<details> -<summary> -<code>NewAuthorities(authority_set)</code> - 0</summary> -New authority set has been applied. - -```rust -authority_set: AuthorityList -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Paused()</code> - 1</summary> -Current authority set has been paused. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Resumed()</code> - 2</summary> -Current authority set has been resumed. - -```rust -no args -``` - -</details> -</li> -</ul> -</li> -<li>ImOnline - 17 -<ul> -<li> -<details> -<summary> -<code>HeartbeatReceived(authority_id)</code> - 0</summary> -A new heartbeat was received from `AuthorityId`. - -```rust -authority_id: T::AuthorityId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>AllGood()</code> - 1</summary> -At the end of the session, no offence was committed. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SomeOffline(offline)</code> - 2</summary> -At the end of the session, at least one validator was found to be offline. - -```rust -offline: Vec<IdentificationTuple<T>> -``` - -</details> -</li> -</ul> -</li> -<li>AuthorityDiscovery - 18 -<ul> -</ul> -</li> -<li>Sudo - 20 -<ul> -<li> -<details> -<summary> -<code>Sudid(sudo_result)</code> - 0</summary> -A sudo call just took place. - -```rust -sudo_result: DispatchResult -``` - -</details> -</li> -<li> -<details> -<summary> -<code>KeyChanged(old, new)</code> - 1</summary> -The sudo key has been updated. - -```rust -old: Option<T::AccountId> -new: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>KeyRemoved()</code> - 2</summary> -The key was permanently removed. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SudoAsDone(sudo_result)</code> - 3</summary> -A [sudo_as](Pallet::sudo_as) call just took place. - -```rust -sudo_result: DispatchResult -``` - -</details> -</li> -</ul> -</li> -<li>UpgradeOrigin - 21 -<ul> -<li> -<details> -<summary> -<code>DispatchedAsRoot(result)</code> - 0</summary> -A call was dispatched as root from an upgradable origin - -```rust -result: DispatchResult -``` - -</details> -</li> -</ul> -</li> -<li>Preimage - 22 -<ul> -<li> -<details> -<summary> -<code>Noted(hash)</code> - 0</summary> -A preimage has been noted. - -```rust -hash: T::Hash -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Requested(hash)</code> - 1</summary> -A preimage has been requested. - -```rust -hash: T::Hash -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Cleared(hash)</code> - 2</summary> -A preimage has ben cleared. - -```rust -hash: T::Hash -``` - -</details> -</li> -</ul> -</li> -<li>TechnicalCommittee - 23 -<ul> -<li> -<details> -<summary> -<code>Proposed(account, proposal_index, proposal_hash, threshold)</code> - 0</summary> -A motion (given hash) has been proposed (by given account) with a threshold (given -`MemberCount`). - -```rust -account: T::AccountId -proposal_index: ProposalIndex -proposal_hash: T::Hash -threshold: MemberCount -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Voted(account, proposal_hash, voted, yes, no)</code> - 1</summary> -A motion (given hash) has been voted on by given account, leaving -a tally (yes votes and no votes given respectively as `MemberCount`). - -```rust -account: T::AccountId -proposal_hash: T::Hash -voted: bool -yes: MemberCount -no: MemberCount -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Approved(proposal_hash)</code> - 2</summary> -A motion was approved by the required threshold. - -```rust -proposal_hash: T::Hash -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Disapproved(proposal_hash)</code> - 3</summary> -A motion was not approved by the required threshold. - -```rust -proposal_hash: T::Hash -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Executed(proposal_hash, result)</code> - 4</summary> -A motion was executed; result will be `Ok` if it returned without error. - -```rust -proposal_hash: T::Hash -result: DispatchResult -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MemberExecuted(proposal_hash, result)</code> - 5</summary> -A single member did some action; result will be `Ok` if it returned without error. - -```rust -proposal_hash: T::Hash -result: DispatchResult -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Closed(proposal_hash, yes, no)</code> - 6</summary> -A proposal was closed because its threshold was reached or after its duration was up. - -```rust -proposal_hash: T::Hash -yes: MemberCount -no: MemberCount -``` - -</details> -</li> -</ul> -</li> -<li>UniversalDividend - 30 -<ul> -<li> -<details> -<summary> -<code>NewUdCreated(amount, index, monetary_mass, members_count)</code> - 0</summary> -A new universal dividend is created. - -```rust -amount: BalanceOf<T> -index: UdIndex -monetary_mass: BalanceOf<T> -members_count: BalanceOf<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>UdReevalued(new_ud_amount, monetary_mass, members_count)</code> - 1</summary> -The universal dividend has been re-evaluated. - -```rust -new_ud_amount: BalanceOf<T> -monetary_mass: BalanceOf<T> -members_count: BalanceOf<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>UdsAutoPaid(count, total, who)</code> - 2</summary> -DUs were automatically transferred as part of a member removal. - -```rust -count: UdIndex -total: BalanceOf<T> -who: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>UdsClaimed(count, total, who)</code> - 3</summary> -A member claimed his UDs. - -```rust -count: UdIndex -total: BalanceOf<T> -who: T::AccountId -``` - -</details> -</li> -</ul> -</li> -<li>Wot - 40 -<ul> -</ul> -</li> -<li>Identity - 41 -<ul> -<li> -<details> -<summary> -<code>IdtyCreated(idty_index, owner_key)</code> - 0</summary> -A new identity has been created. - -```rust -idty_index: T::IdtyIndex -owner_key: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>IdtyConfirmed(idty_index, owner_key, name)</code> - 1</summary> -An identity has been confirmed by its owner. - -```rust -idty_index: T::IdtyIndex -owner_key: T::AccountId -name: IdtyName -``` - -</details> -</li> -<li> -<details> -<summary> -<code>IdtyValidated(idty_index)</code> - 2</summary> -An identity has been validated. - -```rust -idty_index: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>IdtyChangedOwnerKey(idty_index, new_owner_key)</code> - 3</summary> - - -```rust -idty_index: T::IdtyIndex -new_owner_key: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>IdtyRevoked(idty_index, reason)</code> - 4</summary> -An identity has been revoked. - -```rust -idty_index: T::IdtyIndex -reason: RevocationReason -``` - -</details> -</li> -<li> -<details> -<summary> -<code>IdtyRemoved(idty_index, reason)</code> - 5</summary> -An identity has been removed. - -```rust -idty_index: T::IdtyIndex -reason: RemovalReason -``` - -</details> -</li> -</ul> -</li> -<li>Membership - 42 -<ul> -<li> -<details> -<summary> -<code>MembershipAdded(member, expire_on)</code> - 0</summary> -A membership was added. - -```rust -member: T::IdtyId -expire_on: BlockNumberFor<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MembershipRenewed(member, expire_on)</code> - 1</summary> -A membership was renewed. - -```rust -member: T::IdtyId -expire_on: BlockNumberFor<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MembershipRemoved(member, reason)</code> - 2</summary> -A membership was removed. - -```rust -member: T::IdtyId -reason: MembershipRemovalReason -``` - -</details> -</li> -</ul> -</li> -<li>Certification - 43 -<ul> -<li> -<details> -<summary> -<code>CertAdded(issuer, receiver)</code> - 0</summary> -A new certification was added. - -```rust -issuer: T::IdtyIndex -receiver: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>CertRemoved(issuer, receiver, expiration)</code> - 1</summary> -A certification was removed. - -```rust -issuer: T::IdtyIndex -receiver: T::IdtyIndex -expiration: bool -``` - -</details> -</li> -<li> -<details> -<summary> -<code>CertRenewed(issuer, receiver)</code> - 2</summary> -A certification was renewed. - -```rust -issuer: T::IdtyIndex -receiver: T::IdtyIndex -``` - -</details> -</li> -</ul> -</li> -<li>Distance - 44 -<ul> -<li> -<details> -<summary> -<code>EvaluationRequested(idty_index, who)</code> - 0</summary> -A distance evaluation was requested. - -```rust -idty_index: T::IdtyIndex -who: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>EvaluatedValid(idty_index)</code> - 1</summary> -Distance rule was found valid. - -```rust -idty_index: T::IdtyIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>EvaluatedInvalid(idty_index)</code> - 2</summary> -Distance rule was found invalid. - -```rust -idty_index: T::IdtyIndex -``` - -</details> -</li> -</ul> -</li> -<li>AtomicSwap - 50 -<ul> -<li> -<details> -<summary> -<code>NewSwap(account, proof, swap)</code> - 0</summary> -Swap created. - -```rust -account: T::AccountId -proof: HashedProof -swap: PendingSwap<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SwapClaimed(account, proof, success)</code> - 1</summary> -Swap claimed. The last parameter indicates whether the execution succeeds. - -```rust -account: T::AccountId -proof: HashedProof -success: bool -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SwapCancelled(account, proof)</code> - 2</summary> -Swap cancelled. - -```rust -account: T::AccountId -proof: HashedProof -``` - -</details> -</li> -</ul> -</li> -<li>Multisig - 51 -<ul> -<li> -<details> -<summary> -<code>NewMultisig(approving, multisig, call_hash)</code> - 0</summary> -A new multisig operation has begun. - -```rust -approving: T::AccountId -multisig: T::AccountId -call_hash: CallHash -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MultisigApproval(approving, timepoint, multisig, call_hash)</code> - 1</summary> -A multisig operation has been approved by someone. - -```rust -approving: T::AccountId -timepoint: Timepoint<BlockNumberFor<T>> -multisig: T::AccountId -call_hash: CallHash -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MultisigExecuted(approving, timepoint, multisig, call_hash, result)</code> - 2</summary> -A multisig operation has been executed. - -```rust -approving: T::AccountId -timepoint: Timepoint<BlockNumberFor<T>> -multisig: T::AccountId -call_hash: CallHash -result: DispatchResult -``` - -</details> -</li> -<li> -<details> -<summary> -<code>MultisigCancelled(cancelling, timepoint, multisig, call_hash)</code> - 3</summary> -A multisig operation has been cancelled. - -```rust -cancelling: T::AccountId -timepoint: Timepoint<BlockNumberFor<T>> -multisig: T::AccountId -call_hash: CallHash -``` - -</details> -</li> -</ul> -</li> -<li>ProvideRandomness - 52 -<ul> -<li> -<details> -<summary> -<code>FilledRandomness(request_id, randomness)</code> - 0</summary> -A request for randomness was fulfilled. - -```rust -request_id: RequestId -randomness: H256 -``` - -</details> -</li> -<li> -<details> -<summary> -<code>RequestedRandomness(request_id, salt, r#type)</code> - 1</summary> -A request for randomness was made. - -```rust -request_id: RequestId -salt: H256 -r#type: RandomnessType -``` - -</details> -</li> -</ul> -</li> -<li>Proxy - 53 -<ul> -<li> -<details> -<summary> -<code>ProxyExecuted(result)</code> - 0</summary> -A proxy was executed correctly, with the given. - -```rust -result: DispatchResult -``` - -</details> -</li> -<li> -<details> -<summary> -<code>PureCreated(pure, who, proxy_type, disambiguation_index)</code> - 1</summary> -A pure account has been created by new proxy with given -disambiguation index and proxy type. - -```rust -pure: T::AccountId -who: T::AccountId -proxy_type: T::ProxyType -disambiguation_index: u16 -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Announced(real, proxy, call_hash)</code> - 2</summary> -An announcement was placed to make a call in the future. - -```rust -real: T::AccountId -proxy: T::AccountId -call_hash: CallHashOf<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>ProxyAdded(delegator, delegatee, proxy_type, delay)</code> - 3</summary> -A proxy was added. - -```rust -delegator: T::AccountId -delegatee: T::AccountId -proxy_type: T::ProxyType -delay: BlockNumberFor<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>ProxyRemoved(delegator, delegatee, proxy_type, delay)</code> - 4</summary> -A proxy was removed. - -```rust -delegator: T::AccountId -delegatee: T::AccountId -proxy_type: T::ProxyType -delay: BlockNumberFor<T> -``` - -</details> -</li> -</ul> -</li> -<li>Utility - 54 -<ul> -<li> -<details> -<summary> -<code>BatchInterrupted(index, error)</code> - 0</summary> -Batch of dispatches did not complete fully. Index of first failing dispatch given, as -well as the error. - -```rust -index: u32 -error: DispatchError -``` - -</details> -</li> -<li> -<details> -<summary> -<code>BatchCompleted()</code> - 1</summary> -Batch of dispatches completed fully with no error. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>BatchCompletedWithErrors()</code> - 2</summary> -Batch of dispatches completed but has errors. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>ItemCompleted()</code> - 3</summary> -A single item within a Batch of dispatches has completed with no error. - -```rust -no args -``` - -</details> -</li> -<li> -<details> -<summary> -<code>ItemFailed(error)</code> - 4</summary> -A single item within a Batch of dispatches has completed with error. - -```rust -error: DispatchError -``` - -</details> -</li> -<li> -<details> -<summary> -<code>DispatchedAs(result)</code> - 5</summary> -A call was dispatched. - -```rust -result: DispatchResult -``` - -</details> -</li> -</ul> -</li> -<li>Treasury - 55 -<ul> -<li> -<details> -<summary> -<code>Proposed(proposal_index)</code> - 0</summary> -New proposal. - -```rust -proposal_index: ProposalIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Spending(budget_remaining)</code> - 1</summary> -We have ended a spend period and will now allocate funds. - -```rust -budget_remaining: BalanceOf<T, I> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Awarded(proposal_index, award, account)</code> - 2</summary> -Some funds have been allocated. - -```rust -proposal_index: ProposalIndex -award: BalanceOf<T, I> -account: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Rejected(proposal_index, slashed)</code> - 3</summary> -A proposal was rejected; funds were slashed. - -```rust -proposal_index: ProposalIndex -slashed: BalanceOf<T, I> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Burnt(burnt_funds)</code> - 4</summary> -Some of our funds have been burnt. - -```rust -burnt_funds: BalanceOf<T, I> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Rollover(rollover_balance)</code> - 5</summary> -Spending has finished; this is the amount that rolls over until next spend. - -```rust -rollover_balance: BalanceOf<T, I> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Deposit(value)</code> - 6</summary> -Some funds have been deposited. - -```rust -value: BalanceOf<T, I> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SpendApproved(proposal_index, amount, beneficiary)</code> - 7</summary> -A new spend proposal has been approved. - -```rust -proposal_index: ProposalIndex -amount: BalanceOf<T, I> -beneficiary: T::AccountId -``` - -</details> -</li> -<li> -<details> -<summary> -<code>UpdatedInactive(reactivated, deactivated)</code> - 8</summary> -The inactive funds of the pallet have been updated. - -```rust -reactivated: BalanceOf<T, I> -deactivated: BalanceOf<T, I> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>AssetSpendApproved(index, asset_kind, amount, beneficiary, valid_from, expire_at)</code> - 9</summary> -A new asset spend proposal has been approved. - -```rust -index: SpendIndex -asset_kind: T::AssetKind -amount: AssetBalanceOf<T, I> -beneficiary: T::Beneficiary -valid_from: BlockNumberFor<T> -expire_at: BlockNumberFor<T> -``` - -</details> -</li> -<li> -<details> -<summary> -<code>AssetSpendVoided(index)</code> - 10</summary> -An approved spend was voided. - -```rust -index: SpendIndex -``` - -</details> -</li> -<li> -<details> -<summary> -<code>Paid(index, payment_id)</code> - 11</summary> -A payment happened. - -```rust -index: SpendIndex -payment_id: <T::Paymaster as Pay>::Id -``` - -</details> -</li> -<li> -<details> -<summary> -<code>PaymentFailed(index, payment_id)</code> - 12</summary> -A payment failed and can be retried. - -```rust -index: SpendIndex -payment_id: <T::Paymaster as Pay>::Id -``` - -</details> -</li> -<li> -<details> -<summary> -<code>SpendProcessed(index)</code> - 13</summary> -A spend was processed and removed from the storage. It might have been successfully -paid or it may have expired. - -```rust -index: SpendIndex -``` - -</details> -</li> -</ul> -</li> -</ul> \ No newline at end of file diff --git a/xtask/src/gen_doc.rs b/xtask/src/gen_doc.rs index 1dd9e217150bc573244756649230af7da255c158..2bd1a387b79b0acfe25d3257afb8113d2e3b5186 100644 --- a/xtask/src/gen_doc.rs +++ b/xtask/src/gen_doc.rs @@ -43,9 +43,9 @@ where // consts -const CALLS_DOC_FILEPATH: &str = "docs/api/runtime-calls.md"; -const EVENTS_DOC_FILEPATH: &str = "docs/api/runtime-events.md"; -const ERRORS_DOC_FILEPATH: &str = "docs/api/runtime-errors.md"; +const CALLS_DOC_FILEPATH: &str = "target/doc/runtime-calls.md"; +const EVENTS_DOC_FILEPATH: &str = "target/doc/runtime-events.md"; +const ERRORS_DOC_FILEPATH: &str = "target/doc/runtime-errors.md"; const TEMPLATES_GLOB: &str = "xtask/res/templates/*.md"; const WEIGHT_FILEPATH: &str = "runtime/common/src/weights/"; @@ -311,6 +311,18 @@ pub(super) fn gen_doc() -> Result<()> { let (call_doc, event_doc, error_doc) = print_runtime(runtime); + // Generate docs from rust code + Command::new("cargo") + .args([ + "doc", + "--workspace", + "--no-deps", + "--document-private-items", + "--features=runtime-benchmarks", + ]) + .status() + .expect("cargo doc failed to execute"); + let mut file = File::create(CALLS_DOC_FILEPATH) .with_context(|| format!("Failed to create file '{}'", CALLS_DOC_FILEPATH))?; file.write_all(call_doc.as_bytes()) @@ -324,23 +336,6 @@ pub(super) fn gen_doc() -> Result<()> { file.write_all(error_doc.as_bytes()) .with_context(|| format!("Failed to write to file '{}'", ERRORS_DOC_FILEPATH))?; - // Generate docs from rust code - Command::new("cargo") - .args([ - "doc", - "--workspace", - "--document-private-items", - "--features=runtime-benchmarks", - ]) - .status() - .expect("cargo doc failed to execute"); - - // Organise folder for deployment - Command::new("cp") - .args(["-r", "./target/doc", "./docs/api/"]) - .status() - .expect("failed to build docs folder"); - Ok(()) }