diff --git a/Cargo.lock b/Cargo.lock index 4e9f4224..4dc9fe77 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,7 +82,7 @@ dependencies = [ "mime", "percent-encoding", "pin-project-lite", - "rand 0.8.5", + "rand", "sha1", "smallvec", "tokio", @@ -203,7 +203,7 @@ dependencies = [ "serde_urlencoded", "smallvec", "socket2", - "time 0.3.36", + "time", "url", ] @@ -244,17 +244,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "aes" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" -dependencies = [ - "cfg-if", - "cipher", - "cpufeatures", -] - [[package]] name = "ahash" version = "0.8.11" @@ -264,7 +253,7 @@ dependencies = [ "cfg-if", "getrandom", "once_cell", - "version_check 0.9.5", + "version_check", "zerocopy", ] @@ -391,15 +380,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "arbitrary" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223" -dependencies = [ - "derive_arbitrary", -] - [[package]] name = "arc-swap" version = "1.7.1" @@ -532,7 +512,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" dependencies = [ "num-traits", - "rand 0.8.5", + "rand", ] [[package]] @@ -553,37 +533,12 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" -[[package]] -name = "arrayvec" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd9fd44efafa8690358b7408d253adf110036b88f55672a933f01d616ad9b1b9" -dependencies = [ - "nodrop", -] - [[package]] name = "arrayvec" version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" -[[package]] -name = "ascii_utils" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71938f30533e4d95a6d17aa530939da3842c2ab6f4f84b9dae68447e4129f74a" - -[[package]] -name = "assert-json-diff" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" -dependencies = [ - "serde", - "serde_json", -] - [[package]] name = "assert_matches" version = "1.5.0" @@ -668,15 +623,6 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" -[[package]] -name = "autocfg" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78" -dependencies = [ - "autocfg 1.4.0", -] - [[package]] name = "autocfg" version = "1.4.0" @@ -704,25 +650,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" -[[package]] -name = "base64" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" -dependencies = [ - "byteorder", - "safemem", -] - -[[package]] -name = "base64" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e" -dependencies = [ - "byteorder", -] - [[package]] name = "base64" version = "0.13.1" @@ -811,16 +738,6 @@ dependencies = [ "digest 0.10.7", ] -[[package]] -name = "blake2-rfc" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400" -dependencies = [ - "arrayvec 0.4.12", - "constant_time_eq 0.1.5", -] - [[package]] name = "blake2b_simd" version = "1.0.2" @@ -828,8 +745,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23285ad32269793932e830392f2fe2f83e26488fd3ec778883a93c8323735780" dependencies = [ "arrayref", - "arrayvec 0.7.6", - "constant_time_eq 0.3.1", + "arrayvec", + "constant_time_eq", ] [[package]] @@ -994,27 +911,6 @@ dependencies = [ "bytes", ] -[[package]] -name = "bzip2" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" -dependencies = [ - "bzip2-sys", - "libc", -] - -[[package]] -name = "bzip2-sys" -version = "0.1.11+1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - [[package]] name = "cc" version = "1.2.1" @@ -1100,16 +996,6 @@ dependencies = [ "stacker", ] -[[package]] -name = "cipher" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" -dependencies = [ - "crypto-common", - "inout", -] - [[package]] name = "clap" version = "4.5.21" @@ -1137,15 +1023,6 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags 1.3.2", -] - [[package]] name = "color_quant" version = "1.1.0" @@ -1158,16 +1035,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" -[[package]] -name = "colored" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8" -dependencies = [ - "lazy_static", - "windows-sys 0.48.0", -] - [[package]] name = "combine" version = "4.6.7" @@ -1242,12 +1109,6 @@ dependencies = [ "tiny-keccak", ] -[[package]] -name = "constant_time_eq" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" - [[package]] name = "constant_time_eq" version = "0.3.1" @@ -1282,8 +1143,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb" dependencies = [ "percent-encoding", - "time 0.3.36", - "version_check 0.9.5", + "time", + "version_check", ] [[package]] @@ -1411,7 +1272,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", - "rand_core 0.6.4", + "rand_core", "subtle", "zeroize", ] @@ -1423,7 +1284,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", - "rand_core 0.6.4", + "rand_core", "typenum", ] @@ -1511,12 +1372,6 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a" -[[package]] -name = "deflate64" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da692b8d1080ea3045efaab14434d40468c3d8657e42abddfffca87b428f4c1b" - [[package]] name = "der" version = "0.7.9" @@ -1560,17 +1415,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "derive_arbitrary" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.89", -] - [[package]] name = "derive_more" version = "0.99.18" @@ -1766,7 +1610,7 @@ dependencies = [ "ed25519", "hashbrown 0.14.5", "hex", - "rand_core 0.6.4", + "rand_core", "sha2 0.10.8", "zeroize", ] @@ -1793,28 +1637,13 @@ dependencies = [ "generic-array", "group", "pkcs8", - "rand_core 0.6.4", + "rand_core", "sec1", "serdect", "subtle", "zeroize", ] -[[package]] -name = "email" -version = "0.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91549a51bb0241165f13d57fc4c72cef063b4088fb078b019ecbf464a45f22e4" -dependencies = [ - "base64 0.9.3", - "chrono", - "encoding", - "lazy_static", - "rand 0.4.6", - "time 0.1.45", - "version_check 0.1.5", -] - [[package]] name = "email-encoding" version = "0.3.1" @@ -1831,70 +1660,6 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e079f19b08ca6239f47f8ba8509c11cf3ea30095831f7fed61441475edd8c449" -[[package]] -name = "encoding" -version = "0.2.33" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec" -dependencies = [ - "encoding-index-japanese", - "encoding-index-korean", - "encoding-index-simpchinese", - "encoding-index-singlebyte", - "encoding-index-tradchinese", -] - -[[package]] -name = "encoding-index-japanese" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91" -dependencies = [ - "encoding_index_tests", -] - -[[package]] -name = "encoding-index-korean" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81" -dependencies = [ - "encoding_index_tests", -] - -[[package]] -name = "encoding-index-simpchinese" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7" -dependencies = [ - "encoding_index_tests", -] - -[[package]] -name = "encoding-index-singlebyte" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a" -dependencies = [ - "encoding_index_tests", -] - -[[package]] -name = "encoding-index-tradchinese" -version = "1.20141219.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18" -dependencies = [ - "encoding_index_tests", -] - -[[package]] -name = "encoding_index_tests" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" - [[package]] name = "encoding_rs" version = "0.8.35" @@ -1944,17 +1709,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "enumn" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f9ed6b3789237c8a0c1c505af1c7eb2c560df6186f01b098c3a1064ea532f38" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.89", -] - [[package]] name = "env_filter" version = "0.1.2" @@ -2071,15 +1825,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "fast_chemail" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "495a39d30d624c2caabe6312bfead73e7717692b44e0b32df168c275a2e8e9e4" -dependencies = [ - "ascii_utils", -] - [[package]] name = "fastrand" version = "2.2.0" @@ -2115,7 +1860,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -2142,7 +1887,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand 0.8.5", + "rand", "rustc-hex", "static_assertions", ] @@ -2444,15 +2189,9 @@ version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" dependencies = [ - "autocfg 1.4.0", + "autocfg", ] -[[package]] -name = "fuchsia-cprng" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" - [[package]] name = "funty" version = "2.0.0" @@ -2577,7 +2316,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", - "version_check 0.9.5", + "version_check", "zeroize", ] @@ -2590,7 +2329,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "wasm-bindgen", ] @@ -2600,8 +2339,8 @@ version = "0.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ea1015b5a70616b688dc230cfe50c8af89d972cb132d5a622814d29773b10b9" dependencies = [ - "rand 0.8.5", - "rand_core 0.6.4", + "rand", + "rand_core", ] [[package]] @@ -2697,7 +2436,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -3389,7 +3128,7 @@ version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ - "autocfg 1.4.0", + "autocfg", "hashbrown 0.12.3", "serde", ] @@ -3405,15 +3144,6 @@ dependencies = [ "serde", ] -[[package]] -name = "inout" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" -dependencies = [ - "generic-array", -] - [[package]] name = "integer-sqrt" version = "0.1.5" @@ -3496,7 +3226,7 @@ checksum = "51f368c9c76dde2282714ae32dc274b79c27527a0c06c816f6dda048904d0d7c" dependencies = [ "chrono", "cron", - "uuid 0.8.2", + "uuid", ] [[package]] @@ -3587,7 +3317,7 @@ dependencies = [ "jsonrpsee-types", "parking_lot", "pin-project", - "rand 0.8.5", + "rand", "rustc-hash", "serde", "serde_json", @@ -3728,7 +3458,7 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89234b2cc610a7dd927ebde6b41dd1a5d4214cffaef4cf1fb2195d592f92518f" dependencies = [ - "arrayvec 0.7.6", + "arrayvec", "smallvec", ] @@ -3747,16 +3477,6 @@ dependencies = [ "spin", ] -[[package]] -name = "lettre" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86ed8677138975b573ab4949c35613931a4addeadd0a8a6aa0327e2a979660de" -dependencies = [ - "fast_chemail", - "log", -] - [[package]] name = "lettre" version = "0.11.10" @@ -3785,20 +3505,6 @@ dependencies = [ "url", ] -[[package]] -name = "lettre_email" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd02480f8dcf48798e62113974d6ccca2129a51d241fa20f1ea349c8a42559d5" -dependencies = [ - "base64 0.10.1", - "email", - "lettre 0.9.6", - "mime", - "time 0.1.45", - "uuid 0.7.4", -] - [[package]] name = "libc" version = "0.2.166" @@ -3824,7 +3530,7 @@ dependencies = [ "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand 0.8.5", + "rand", "serde", "sha2 0.9.9", "typenum", @@ -3914,32 +3620,16 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ - "autocfg 1.4.0", + "autocfg", "scopeguard", ] -[[package]] -name = "lockfree-object-pool" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" - [[package]] name = "log" version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" -[[package]] -name = "lzma-rs" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "297e814c836ae64db86b36cf2a557ba54368d03f6afcd7d947c266692f71115e" -dependencies = [ - "byteorder", - "crc", -] - [[package]] name = "macro_magic" version = "0.5.1" @@ -4019,7 +3709,7 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a" dependencies = [ - "autocfg 1.4.0", + "autocfg", "rawpointer", ] @@ -4065,7 +3755,7 @@ checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" dependencies = [ "byteorder", "keccak", - "rand_core 0.6.4", + "rand_core", "zeroize", ] @@ -4110,7 +3800,7 @@ dependencies = [ "hermit-abi", "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.52.0", ] @@ -4140,30 +3830,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "mockito" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "652cd6d169a36eaf9d1e6bce1a221130439a966d7f27858af66a33a66e9c4ee2" -dependencies = [ - "assert-json-diff", - "bytes", - "colored", - "futures-util", - "http 1.1.0", - "http-body 1.0.1", - "http-body-util", - "hyper 1.5.1", - "hyper-util", - "log", - "rand 0.8.5", - "regex", - "serde_json", - "serde_urlencoded", - "similar", - "tokio", -] - [[package]] name = "nalgebra" version = "0.33.2" @@ -4196,12 +3862,6 @@ dependencies = [ "tempfile", ] -[[package]] -name = "nodrop" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" - [[package]] name = "nohash-hasher" version = "0.2.0" @@ -4259,7 +3919,7 @@ dependencies = [ "num-integer", "num-iter", "num-traits", - "rand 0.8.5", + "rand", "smallvec", "zeroize", ] @@ -4285,7 +3945,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec 0.7.6", + "arrayvec", "itoa", ] @@ -4304,7 +3964,7 @@ version = "0.1.45" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" dependencies = [ - "autocfg 1.4.0", + "autocfg", "num-integer", "num-traits", ] @@ -4326,7 +3986,7 @@ version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ - "autocfg 1.4.0", + "autocfg", "libm", ] @@ -4421,38 +4081,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" -[[package]] -name = "pallet-asset-conversion" -version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "scale-info", - "sp-api", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", -] - -[[package]] -name = "pallet-asset-rate" -version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "scale-info", - "sp-core", - "sp-runtime", -] - [[package]] name = "pallet-authority-discovery" version = "38.0.0" @@ -4570,59 +4198,6 @@ dependencies = [ "sp-runtime", ] -[[package]] -name = "pallet-election-provider-multi-phase" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", - "log", - "pallet-election-provider-support-benchmarking", - "parity-scale-codec", - "rand 0.8.5", - "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "strum", -] - -[[package]] -name = "pallet-election-provider-support-benchmarking" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-system", - "parity-scale-codec", - "sp-npos-elections", - "sp-runtime", -] - -[[package]] -name = "pallet-fast-unstake" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "docify", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "scale-info", - "sp-io", - "sp-runtime", - "sp-staking", -] - [[package]] name = "pallet-identity" version = "38.0.0" @@ -4768,15 +4343,6 @@ dependencies = [ "sp-staking", ] -[[package]] -name = "pallet-staking-reward-fn" -version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "log", - "sp-arithmetic", -] - [[package]] name = "pallet-timestamp" version = "37.0.0" @@ -4796,39 +4362,6 @@ dependencies = [ "sp-timestamp", ] -[[package]] -name = "pallet-transaction-payment" -version = "38.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-io", - "sp-runtime", -] - -[[package]] -name = "pallet-treasury" -version = "37.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "docify", - "frame-benchmarking", - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "pallet-balances", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core", - "sp-runtime", -] - [[package]] name = "pallet-vesting" version = "38.0.0" @@ -4850,8 +4383,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e69bf016dc406eff7d53a7d3f7cf1c2e72c82b9088aac1118591e36dd2cd3e9" dependencies = [ "bitcoin_hashes", - "rand 0.8.5", - "rand_core 0.6.4", + "rand", + "rand_core", "serde", "unicode-normalization", ] @@ -4862,7 +4395,7 @@ version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8be4817d39f3272f69c59fe05d0535ae6456c2dc2fa1ba02910296c7e0a5c590" dependencies = [ - "arrayvec 0.7.6", + "arrayvec", "bitvec", "byte-slice-cast", "bytes", @@ -4935,7 +4468,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" dependencies = [ "base64ct", - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -4958,7 +4491,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ "digest 0.10.7", - "hmac 0.12.1", "password-hash", ] @@ -5048,7 +4580,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" dependencies = [ "phf_shared", - "rand 0.8.5", + "rand", ] [[package]] @@ -5201,55 +4733,6 @@ dependencies = [ "sp-staking", ] -[[package]] -name = "polkadot-runtime-common" -version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "bitvec", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "libsecp256k1", - "log", - "pallet-asset-rate", - "pallet-authorship", - "pallet-balances", - "pallet-broker", - "pallet-election-provider-multi-phase", - "pallet-fast-unstake", - "pallet-identity", - "pallet-session", - "pallet-staking", - "pallet-staking-reward-fn", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-treasury", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-parachains", - "rustc-hex", - "scale-info", - "serde", - "serde_derive", - "slot-range-helper", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "sp-session", - "sp-staking", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "static_assertions", -] - [[package]] name = "polkadot-runtime-metrics" version = "17.0.0" @@ -5291,8 +4774,8 @@ dependencies = [ "polkadot-parachain-primitives", "polkadot-primitives", "polkadot-runtime-metrics", - "rand 0.8.5", - "rand_chacha 0.3.1", + "rand", + "rand_chacha", "scale-info", "serde", "sp-api", @@ -5430,7 +4913,7 @@ dependencies = [ "proc-macro2", "quote", "syn 1.0.109", - "version_check 0.9.5", + "version_check", ] [[package]] @@ -5441,7 +4924,7 @@ checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ "proc-macro2", "quote", - "version_check 0.9.5", + "version_check", ] [[package]] @@ -5464,29 +4947,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "procfs" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "731e0d9356b0c25f16f33b5be79b1c57b562f141ebfcdb0ad8ac2c13a24293b4" -dependencies = [ - "bitflags 2.6.0", - "hex", - "lazy_static", - "procfs-core", - "rustix", -] - -[[package]] -name = "procfs-core" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d3554923a69f4ce04c4a754260c338f505ce22642d3830e049a399fc2059a29" -dependencies = [ - "bitflags 2.6.0", - "hex", -] - [[package]] name = "prometheus" version = "0.13.4" @@ -5496,10 +4956,8 @@ dependencies = [ "cfg-if", "fnv", "lazy_static", - "libc", "memchr", "parking_lot", - "procfs", "protobuf", "thiserror 1.0.69", ] @@ -5551,7 +5009,7 @@ checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" dependencies = [ "bytes", "getrandom", - "rand 0.8.5", + "rand", "ring", "rustc-hash", "rustls 0.23.19", @@ -5560,191 +5018,72 @@ dependencies = [ "thiserror 2.0.3", "tinyvec", "tracing", - "web-time", -] - -[[package]] -name = "quinn-udp" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" -dependencies = [ - "cfg_aliases", - "libc", - "once_cell", - "socket2", - "tracing", - "windows-sys 0.59.0", -] - -[[package]] -name = "quote" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "quoted_printable" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "640c9bd8497b02465aeef5375144c26062e0dcd5939dfcbb0f5db76cb8c17c73" - -[[package]] -name = "radium" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" - -[[package]] -name = "rand" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293" -dependencies = [ - "fuchsia-cprng", - "libc", - "rand_core 0.3.1", - "rdrand", - "winapi", -] - -[[package]] -name = "rand" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" -dependencies = [ - "autocfg 0.1.8", - "libc", - "rand_chacha 0.1.1", - "rand_core 0.4.2", - "rand_hc", - "rand_isaac", - "rand_jitter", - "rand_os", - "rand_pcg", - "rand_xorshift", - "winapi", -] - -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_chacha" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" -dependencies = [ - "autocfg 0.1.8", - "rand_core 0.3.1", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" -dependencies = [ - "rand_core 0.4.2", + "web-time", ] [[package]] -name = "rand_core" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" - -[[package]] -name = "rand_core" -version = "0.6.4" +name = "quinn-udp" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" dependencies = [ - "getrandom", + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.59.0", ] [[package]] -name = "rand_hc" -version = "0.1.0" +name = "quote" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ - "rand_core 0.3.1", + "proc-macro2", ] [[package]] -name = "rand_isaac" -version = "0.1.1" +name = "quoted_printable" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" -dependencies = [ - "rand_core 0.3.1", -] +checksum = "640c9bd8497b02465aeef5375144c26062e0dcd5939dfcbb0f5db76cb8c17c73" [[package]] -name = "rand_jitter" -version = "0.1.4" +name = "radium" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" -dependencies = [ - "libc", - "rand_core 0.4.2", - "winapi", -] +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] -name = "rand_os" -version = "0.1.3" +name = "rand" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ - "cloudabi", - "fuchsia-cprng", "libc", - "rand_core 0.4.2", - "rdrand", - "winapi", + "rand_chacha", + "rand_core", ] [[package]] -name = "rand_pcg" -version = "0.1.2" +name = "rand_chacha" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ - "autocfg 0.1.8", - "rand_core 0.4.2", + "ppv-lite86", + "rand_core", ] [[package]] -name = "rand_xorshift" -version = "0.1.1" +name = "rand_core" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "rand_core 0.3.1", + "getrandom", ] [[package]] @@ -5753,15 +5092,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" -[[package]] -name = "rdrand" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" -dependencies = [ - "rand_core 0.3.1", -] - [[package]] name = "redis" version = "0.27.5" @@ -6045,7 +5375,7 @@ dependencies = [ "num-traits", "pkcs1", "pkcs8", - "rand_core 0.6.4", + "rand_core", "signature", "spki", "subtle", @@ -6269,12 +5599,6 @@ dependencies = [ "bytemuck", ] -[[package]] -name = "safemem" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" - [[package]] name = "same-file" version = "1.0.6" @@ -6356,11 +5680,11 @@ checksum = "8de18f6d8ba0aad7045f5feae07ec29899c1112584a38509a84ad7b04451eaa0" dependencies = [ "aead", "arrayref", - "arrayvec 0.7.6", + "arrayvec", "curve25519-dalek", "getrandom_or_panic", "merlin", - "rand_core 0.6.4", + "rand_core", "serde_bytes", "sha2 0.10.8", "subtle", @@ -6544,7 +5868,7 @@ dependencies = [ "serde_derive", "serde_json", "serde_with_macros", - "time 0.3.36", + "time", ] [[package]] @@ -6651,7 +5975,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest 0.10.7", - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -6673,12 +5997,6 @@ version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" -[[package]] -name = "similar" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e" - [[package]] name = "simple-mermaid" version = "0.1.1" @@ -6712,18 +6030,7 @@ version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ - "autocfg 1.4.0", -] - -[[package]] -name = "slot-range-helper" -version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "enumn", - "parity-scale-codec", - "paste", - "sp-runtime", + "autocfg", ] [[package]] @@ -6732,7 +6039,7 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbff4acf519f630b3a3ddcfaea6c06b42174d9a44bc70c620e9ed1649d58b82a" dependencies = [ - "version_check 0.9.5", + "version_check", ] [[package]] @@ -6773,7 +6080,7 @@ dependencies = [ "http 1.1.0", "httparse", "log", - "rand 0.8.5", + "rand", "sha1", ] @@ -6906,7 +6213,7 @@ dependencies = [ "parking_lot", "paste", "primitive-types", - "rand 0.8.5", + "rand", "scale-info", "schnorrkel", "secp256k1", @@ -7094,7 +6401,7 @@ dependencies = [ "num-traits", "parity-scale-codec", "paste", - "rand 0.8.5", + "rand", "scale-info", "serde", "simple-mermaid", @@ -7175,7 +6482,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot", - "rand 0.8.5", + "rand", "smallvec", "sp-core", "sp-externalities", @@ -7238,7 +6545,7 @@ dependencies = [ "nohash-hasher", "parity-scale-codec", "parking_lot", - "rand 0.8.5", + "rand", "scale-info", "schnellru", "sp-core", @@ -7453,7 +6760,7 @@ dependencies = [ "memchr", "once_cell", "percent-encoding", - "rand 0.8.5", + "rand", "rsa", "serde", "sha1", @@ -7494,7 +6801,7 @@ dependencies = [ "memchr", "num-bigint", "once_cell", - "rand 0.8.5", + "rand", "serde", "serde_json", "sha2 0.10.8", @@ -7582,28 +6889,6 @@ dependencies = [ "xcm-procedural", ] -[[package]] -name = "staging-xcm-builder" -version = "17.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.16.2#dba2dd59101617aad64d167e400b19e2c35052b1" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "log", - "pallet-asset-conversion", - "pallet-transaction-payment", - "parity-scale-codec", - "polkadot-parachain-primitives", - "scale-info", - "sp-arithmetic", - "sp-io", - "sp-runtime", - "sp-weights", - "staging-xcm", - "staging-xcm-executor", -] - [[package]] name = "staging-xcm-executor" version = "17.0.0" @@ -7656,28 +6941,6 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" -[[package]] -name = "strum" -version = "0.26.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" -dependencies = [ - "strum_macros", -] - -[[package]] -name = "strum_macros" -version = "0.26.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" -dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "rustversion", - "syn 2.0.89", -] - [[package]] name = "substrate-bip39" version = "0.6.0" @@ -7698,7 +6961,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "subvt-app-service" -version = "0.22.3" +version = "0.22.4" dependencies = [ "actix-http", "actix-rt", @@ -7717,7 +6980,6 @@ dependencies = [ "serde_json", "sha2 0.10.8", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -7727,22 +6989,18 @@ dependencies = [ [[package]] name = "subvt-block-processor" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-lock", "async-recursion", "async-trait", - "chrono", - "hex", "lazy_static", "log", "once_cell", - "parity-scale-codec", "rustc-hash", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -7753,7 +7011,7 @@ dependencies = [ [[package]] name = "subvt-config" -version = "0.22.3" +version = "0.22.4" dependencies = [ "config", "serde", @@ -7761,13 +7019,11 @@ dependencies = [ [[package]] name = "subvt-governance" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "lazy_static", - "log", "reqwest 0.12.9", - "serde_json", "subvt-config", "subvt-types", "tokio", @@ -7775,7 +7031,7 @@ dependencies = [ [[package]] name = "subvt-kline-updater" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-trait", @@ -7784,21 +7040,17 @@ dependencies = [ "log", "once_cell", "reqwest 0.12.9", - "serde", - "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", "subvt-types", "tokio", - "zip-extract", ] [[package]] name = "subvt-logging" -version = "0.22.3" +version = "0.22.4" dependencies = [ "env_logger", "log", @@ -7807,13 +7059,11 @@ dependencies = [ [[package]] name = "subvt-metrics" -version = "0.22.3" +version = "0.22.4" dependencies = [ - "env_logger", "log", "once_cell", "prometheus", - "subvt-config", "thiserror 2.0.3", "tokio", "warp", @@ -7821,13 +7071,11 @@ dependencies = [ [[package]] name = "subvt-network-status-server" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-trait", "bus", - "chrono", - "env_logger", "futures-util", "jsonrpsee", "lazy_static", @@ -7837,7 +7085,6 @@ dependencies = [ "serde", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-service-common", "subvt-types", @@ -7846,7 +7093,7 @@ dependencies = [ [[package]] name = "subvt-network-status-updater" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-trait", @@ -7858,7 +7105,6 @@ dependencies = [ "serde", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-service-common", "subvt-substrate-client", @@ -7868,11 +7114,10 @@ dependencies = [ [[package]] name = "subvt-nft" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "lazy_static", - "log", "reqwest 0.12.9", "subvt-config", "subvt-types", @@ -7880,7 +7125,7 @@ dependencies = [ [[package]] name = "subvt-notification-generator" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-lock", @@ -7896,7 +7141,6 @@ dependencies = [ "serde", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -7907,7 +7151,7 @@ dependencies = [ [[package]] name = "subvt-notification-processor" -version = "0.22.3" +version = "0.22.4" dependencies = [ "a2", "anyhow", @@ -7919,8 +7163,7 @@ dependencies = [ "itertools 0.13.0", "job_scheduler", "lazy_static", - "lettre 0.11.10", - "lettre_email", + "lettre", "log", "once_cell", "redis", @@ -7928,7 +7171,6 @@ dependencies = [ "serde", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -7942,7 +7184,7 @@ dependencies = [ [[package]] name = "subvt-onekv-updater" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-trait", @@ -7950,11 +7192,8 @@ dependencies = [ "lazy_static", "log", "once_cell", - "prometheus", - "rand 0.8.5", "reqwest 0.12.9", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -7964,14 +7203,12 @@ dependencies = [ [[package]] name = "subvt-persistence" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "chrono", - "hex", "lazy_static", "log", - "parity-scale-codec", "redis", "rustc-hash", "serde", @@ -7983,16 +7220,14 @@ dependencies = [ [[package]] name = "subvt-plotter" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "chrono", - "env_logger", "format_num", "itertools 0.13.0", "lazy_static", - "log", - "rand 0.8.5", + "rand", "resvg", "rustc-hash", "subvt-config", @@ -8006,7 +7241,7 @@ dependencies = [ [[package]] name = "subvt-proc-macro" -version = "0.22.3" +version = "0.22.4" dependencies = [ "proc-macro2", "quote", @@ -8015,7 +7250,7 @@ dependencies = [ [[package]] name = "subvt-referendum-updater" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-trait", @@ -8024,12 +7259,8 @@ dependencies = [ "lazy_static", "log", "once_cell", - "prometheus", - "rand 0.8.5", - "reqwest 0.12.9", "subvt-config", "subvt-governance", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -8039,7 +7270,7 @@ dependencies = [ [[package]] name = "subvt-report-service" -version = "0.22.3" +version = "0.22.4" dependencies = [ "actix-web", "anyhow", @@ -8053,10 +7284,7 @@ dependencies = [ "redis", "rustc-hash", "serde", - "serde_json", - "sqlx", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -8067,14 +7295,13 @@ dependencies = [ [[package]] name = "subvt-service-common" -version = "0.22.3" +version = "0.22.4" dependencies = [ "actix-web", "anyhow", "async-trait", "log", "serde_json", - "sp-core", "subvt-config", "subvt-logging", "subvt-metrics", @@ -8084,16 +7311,14 @@ dependencies = [ [[package]] name = "subvt-session-validator-performance-updater" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", - "async-lock", "async-trait", "lazy_static", "log", "once_cell", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -8103,20 +7328,13 @@ dependencies = [ [[package]] name = "subvt-substrate-client" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", - "async-lock", "async-recursion", - "blake2-rfc", - "byteorder", - "chrono", "frame-metadata 15.1.0", "hex", "jsonrpsee", - "jsonrpsee-core", - "jsonrpsee-types", - "lazy_static", "log", "parity-scale-codec", "rustc-hash", @@ -8127,12 +7345,11 @@ dependencies = [ "subvt-types", "subvt-utility", "tokio", - "twox-hash", ] [[package]] name = "subvt-telegram-bot" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-recursion", @@ -8140,21 +7357,18 @@ dependencies = [ "chrono", "enum-iterator", "frankenstein", - "futures", "itertools 0.13.0", "lazy_static", "log", "mockall", - "mockito", "once_cell", - "rand 0.8.5", + "rand", "regex", "rustc-hash", "serde", "serde_json", "subvt-config", "subvt-governance", - "subvt-logging", "subvt-metrics", "subvt-nft", "subvt-persistence", @@ -8170,7 +7384,7 @@ dependencies = [ [[package]] name = "subvt-telemetry-processor" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-lock", @@ -8181,10 +7395,7 @@ dependencies = [ "log", "once_cell", "rustc-hash", - "serde", - "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -8194,7 +7405,7 @@ dependencies = [ [[package]] name = "subvt-types" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "chrono", @@ -8216,7 +7427,6 @@ dependencies = [ "parity-scale-codec", "polkadot-core-primitives", "polkadot-primitives", - "polkadot-runtime-common", "polkadot-runtime-parachains", "rustc-hash", "scale-bits", @@ -8226,7 +7436,6 @@ dependencies = [ "sp-consensus-babe", "sp-core", "sp-runtime", - "sp-session", "sp-staking", "sqlx", "subvt-proc-macro", @@ -8236,7 +7445,7 @@ dependencies = [ [[package]] name = "subvt-utility" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "hex", @@ -8246,7 +7455,7 @@ dependencies = [ [[package]] name = "subvt-validator-details-server" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-trait", @@ -8261,7 +7470,6 @@ dependencies = [ "serde", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-service-common", "subvt-types", @@ -8270,14 +7478,12 @@ dependencies = [ [[package]] name = "subvt-validator-list-server" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-trait", "bus", - "chrono", "clap", - "env_logger", "futures-util", "jsonrpsee", "lazy_static", @@ -8288,7 +7494,6 @@ dependencies = [ "serde", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-service-common", "subvt-types", @@ -8297,14 +7502,11 @@ dependencies = [ [[package]] name = "subvt-validator-list-updater" -version = "0.22.3" +version = "0.22.4" dependencies = [ "anyhow", "async-lock", "async-trait", - "chrono", - "hex", - "itertools 0.13.0", "lazy_static", "log", "once_cell", @@ -8313,7 +7515,6 @@ dependencies = [ "serde", "serde_json", "subvt-config", - "subvt-logging", "subvt-metrics", "subvt-persistence", "subvt-service-common", @@ -8461,7 +7662,7 @@ dependencies = [ "percent-encoding", "pest", "pest_derive", - "rand 0.8.5", + "rand", "regex", "serde", "serde_json", @@ -8534,17 +7735,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "time" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - [[package]] name = "time" version = "0.3.36" @@ -8592,7 +7782,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab" dependencies = [ "arrayref", - "arrayvec 0.7.6", + "arrayvec", "bytemuck", "cfg-if", "log", @@ -8841,7 +8031,7 @@ dependencies = [ "sharded-slab", "smallvec", "thread_local", - "time 0.3.36", + "time", "tracing", "tracing-core", "tracing-log", @@ -8902,7 +8092,7 @@ dependencies = [ "httparse", "log", "native-tls", - "rand 0.8.5", + "rand", "sha1", "thiserror 1.0.69", "utf-8", @@ -8916,8 +8106,7 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "digest 0.9.0", - "rand 0.8.5", + "rand", "static_assertions", ] @@ -9144,15 +8333,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" -[[package]] -name = "uuid" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90dbc611eb48397705a6b0f6e917da23ae517e4d127123d2cf7674206627d32a" -dependencies = [ - "rand 0.6.5", -] - [[package]] name = "uuid" version = "0.8.2" @@ -9174,12 +8354,6 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" -[[package]] -name = "version_check" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" - [[package]] name = "version_check" version = "0.9.5" @@ -9201,9 +8375,9 @@ dependencies = [ "arrayref", "constcat", "digest 0.10.7", - "rand 0.8.5", - "rand_chacha 0.3.1", - "rand_core 0.6.4", + "rand", + "rand_chacha", + "rand_core", "sha2 0.10.8", "sha3", "thiserror 1.0.69", @@ -9256,12 +8430,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -9819,60 +8987,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "zip" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99d52293fc86ea7cf13971b3bb81eb21683636e7ae24c729cdaf1b7c4157a352" -dependencies = [ - "aes", - "arbitrary", - "bzip2", - "constant_time_eq 0.3.1", - "crc32fast", - "crossbeam-utils", - "deflate64", - "displaydoc", - "flate2", - "hmac 0.12.1", - "indexmap 2.6.0", - "lzma-rs", - "memchr", - "pbkdf2", - "rand 0.8.5", - "sha1", - "thiserror 2.0.3", - "time 0.3.36", - "zeroize", - "zopfli", - "zstd", -] - -[[package]] -name = "zip-extract" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25a8c9e90f27d1435088a7b540b6cc8ae6ee525d992a695f16012d2f365b3d3c" -dependencies = [ - "log", - "thiserror 1.0.69", - "zip", -] - -[[package]] -name = "zopfli" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946" -dependencies = [ - "bumpalo", - "crc32fast", - "lockfree-object-pool", - "log", - "once_cell", - "simd-adler32", -] - [[package]] name = "zstd" version = "0.13.2" diff --git a/_config/base.toml b/_config/base.toml index d9610e28..aa401678 100644 --- a/_config/base.toml +++ b/_config/base.toml @@ -157,7 +157,6 @@ user_registration_per_ip_limit_time_window_mins = 10 user_registration_per_ip_limit = 10 [kline_updater] -tmp_dir_path = "/path/to/the/temporary/image/dir" sleep_seconds = 3600 begin_year = 2022 begin_month = 1 diff --git a/_docker/compose/.env.sample b/_docker/compose/.env.sample index 73fc7cd8..ba4ed382 100644 --- a/_docker/compose/.env.sample +++ b/_docker/compose/.env.sample @@ -1,4 +1,4 @@ -VERSION=0.22.3 +VERSION=0.22.4 ENV=production LOG_LEVEL=debug diff --git a/subvt-app-service/Cargo.toml b/subvt-app-service/Cargo.toml index b19ea232..72eec22f 100644 --- a/subvt-app-service/Cargo.toml +++ b/subvt-app-service/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-app-service" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -21,7 +21,6 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" sha2 = "0.10" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } diff --git a/subvt-block-processor/Cargo.toml b/subvt-block-processor/Cargo.toml index d82f6ced..8598f8f2 100644 --- a/subvt-block-processor/Cargo.toml +++ b/subvt-block-processor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-block-processor" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -9,16 +9,12 @@ anyhow = { workspace = true } async-lock = "3.4" async-recursion = "1.0" async-trait = "0.1" -chrono = { version = "0.4", default-features = true, features = ["serde"] } -hex = "0.4" lazy_static = { workspace = true } log = { workspace = true } once_cell = "1" -parity-scale-codec = "3.6" rustc-hash = "2.0" serde_json = "1.0" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } diff --git a/subvt-config/Cargo.toml b/subvt-config/Cargo.toml index bf5e7ae8..77dc14dc 100644 --- a/subvt-config/Cargo.toml +++ b/subvt-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-config" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-config/src/lib.rs b/subvt-config/src/lib.rs index 40eb41d9..c89fb13e 100644 --- a/subvt-config/src/lib.rs +++ b/subvt-config/src/lib.rs @@ -268,7 +268,6 @@ pub struct ReferendumUpdaterConfig { #[derive(Clone, Debug, Deserialize)] pub struct KLineUpdaterConfig { - pub tmp_dir_path: String, pub sleep_seconds: u64, pub begin_year: i32, pub begin_month: u32, diff --git a/subvt-governance/Cargo.toml b/subvt-governance/Cargo.toml index 42ca932f..833cc3b5 100644 --- a/subvt-governance/Cargo.toml +++ b/subvt-governance/Cargo.toml @@ -1,15 +1,13 @@ [package] name = "subvt-governance" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" [dependencies] anyhow = { workspace = true } lazy_static = { workspace = true } -log = { workspace = true } reqwest = { version = "0.12", features = ["blocking", "json", "gzip", "brotli"] } -serde_json = "1.0" subvt-config = { path = "../subvt-config" } subvt-types = { path = "../subvt-types" } tokio = { version = "1.41", features = ["full"] } \ No newline at end of file diff --git a/subvt-kline-updater/Cargo.toml b/subvt-kline-updater/Cargo.toml index b4ea44f0..51732db3 100644 --- a/subvt-kline-updater/Cargo.toml +++ b/subvt-kline-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-kline-updater" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -12,13 +12,9 @@ lazy_static = { workspace = true } log = { workspace = true } once_cell = "1" reqwest = { version = "0.12", features = ["blocking", "json", "gzip", "brotli"] } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } subvt-types = { path = "../subvt-types" } tokio = { version = "1.41", features = ["full"] } -zip-extract = "0.2.1" diff --git a/subvt-kline-updater/src/lib.rs b/subvt-kline-updater/src/lib.rs index c54f143f..8d5ecdec 100644 --- a/subvt-kline-updater/src/lib.rs +++ b/subvt-kline-updater/src/lib.rs @@ -14,10 +14,38 @@ lazy_static! { static ref CONFIG: Config = Config::default(); } -#[derive(Default)] -pub struct KLineUpdater {} +type KLineRecord = ( + u64, + String, + String, + String, + String, + String, + u64, + String, + u32, + String, + String, + String, +); -impl KLineUpdater {} +pub struct KLineUpdater { + http_client: reqwest::Client, +} + +impl Default for KLineUpdater { + fn default() -> Self { + let http_client: reqwest::Client = reqwest::Client::builder() + .gzip(true) + .brotli(true) + .timeout(std::time::Duration::from_secs( + CONFIG.http.request_timeout_seconds, + )) + .build() + .unwrap(); + Self { http_client } + } +} #[async_trait(?Send)] impl Service for KLineUpdater { @@ -47,8 +75,7 @@ impl Service for KLineUpdater { .unwrap(); let mut day = NaiveDate::from_ymd_opt(now.year(), now.month(), now.day()).unwrap(); loop { - // start from 2 days prior to today - day = day.checked_sub_days(Days::new(2)).unwrap(); + day = day.checked_sub_days(Days::new(1)).unwrap(); let start_of_day = NaiveDateTime::from(day); let year = day.year(); let month = day.month(); @@ -86,66 +113,37 @@ impl Service for KLineUpdater { continue; } let pair = format!("{}{}", CONFIG.substrate.token_ticker, target_ticker); - let zip_file_name = - format!("{}-1d-{}-{}-{}.zip", pair, year, month_padded, day_padded,); - let csv_file_name = - format!("{}-1d-{}-{}-{}.csv", pair, year, month_padded, day_padded,); - let zip_file_local_path = - format!("{}/{}", CONFIG.kline_updater.tmp_dir_path, zip_file_name,); - let csv_file_local_path = - format!("{}/{}", CONFIG.kline_updater.tmp_dir_path, csv_file_name,); - if !std::path::Path::new(&zip_file_local_path).is_file() { - let url = format!("https://data.binance.vision/data/spot/daily/klines/{pair}/1d/{zip_file_name}"); - log::info!("Downloading file {url}."); - let response = reqwest::get(url).await?; - let mut zip_file = std::fs::File::create(&zip_file_local_path)?; - let mut content = std::io::Cursor::new(response.bytes().await?); - std::io::copy(&mut content, &mut zip_file)?; - log::info!("Download complete. Zip file saved at {zip_file_local_path}."); - } else { - log::info!("Zip file exists."); - } - // unzip - if !std::path::Path::new(&csv_file_local_path).is_file() { - let target_dir = std::path::PathBuf::from(&CONFIG.kline_updater.tmp_dir_path); - let zip_source = std::fs::read(&zip_file_local_path)?; - zip_extract::extract(std::io::Cursor::new(zip_source), &target_dir, true)?; - log::info!("Zip file extracted."); - } else { - log::info!("CSV file exists."); - } - // read file - let csv_content = std::fs::read_to_string(&csv_file_local_path)?; - let fields: Vec<&str> = csv_content.split(",").collect(); + + // https://api.binance.com/api/v3/klines?symbol=KSMUSDT&interval=1d&limit=1&startTime=1732838400000 + let url = format!("https://api.binance.com/api/v3/klines?symbol={pair}&interval=1d&limit=1&startTime={timestamp}"); + let response = self.http_client.get(&url).send().await?; + let records: Vec = response.json().await?; + let fields = records.first().unwrap(); // save record let kline = KLine { id: 0, - open_time: fields[0].parse()?, + open_time: fields.0, source_ticker: CONFIG.substrate.token_ticker.clone(), target_ticker: target_ticker.to_string(), - open: BigDecimal::from_str(fields[1])?, - high: BigDecimal::from_str(fields[2])?, - low: BigDecimal::from_str(fields[3])?, - close: BigDecimal::from_str(fields[4])?, - volume: BigDecimal::from_str(fields[5])?, - close_time: fields[6].parse()?, - quote_volume: BigDecimal::from_str(fields[7])?, - count: fields[8].parse()?, - taker_buy_volume: BigDecimal::from_str(fields[9])?, - taker_buy_quote_volume: BigDecimal::from_str(fields[10])?, + open: BigDecimal::from_str(&fields.1)?, + high: BigDecimal::from_str(&fields.2)?, + low: BigDecimal::from_str(&fields.3)?, + close: BigDecimal::from_str(&fields.4)?, + volume: BigDecimal::from_str(&fields.5)?, + close_time: fields.6, + quote_volume: BigDecimal::from_str(&fields.7)?, + count: fields.8, + taker_buy_volume: BigDecimal::from_str(&fields.9)?, + taker_buy_quote_volume: BigDecimal::from_str(&fields.10)?, }; postgres.save_kline(&kline).await?; log::info!( "Saved {}-{target_ticker} {day_padded}-{month_padded}-{year}.", CONFIG.substrate.token_ticker, ); - // delete temp files - let _ = std::fs::remove_file(&zip_file_local_path); - let _ = std::fs::remove_file(&csv_file_local_path); } // publish metrics metrics::kline_count().set(postgres.get_kline_count().await? as i64); - // publish total count log::info!( "K-line updater completed. Will sleep for {} seconds", sleep_seconds diff --git a/subvt-logging/Cargo.toml b/subvt-logging/Cargo.toml index 2edbe076..aa13613e 100644 --- a/subvt-logging/Cargo.toml +++ b/subvt-logging/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-logging" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-metrics/Cargo.toml b/subvt-metrics/Cargo.toml index 1a7abea2..279bad25 100644 --- a/subvt-metrics/Cargo.toml +++ b/subvt-metrics/Cargo.toml @@ -1,15 +1,13 @@ [package] name = "subvt-metrics" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" [dependencies] -env_logger = "0.11" log = { workspace = true } once_cell = "1" prometheus = "0.13" -subvt-config = { path = "../subvt-config" } thiserror = { workspace = true } tokio = { version = "1.41", features = ["time", "rt-multi-thread"] } warp = { version = "0.3", default-features = false } \ No newline at end of file diff --git a/subvt-network-status-server/Cargo.toml b/subvt-network-status-server/Cargo.toml index 381c30c8..fbd9504d 100644 --- a/subvt-network-status-server/Cargo.toml +++ b/subvt-network-status-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-network-status-server" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -10,8 +10,6 @@ rust-version = "1.67.0" anyhow = { workspace = true } async-trait = "0.1" bus = "2.4" -chrono = "0.4" -env_logger = "0.11" futures-util = "0.3" jsonrpsee = { version = "0.24", features = ["full"] } lazy_static = { workspace = true } @@ -24,5 +22,4 @@ subvt-config = { path = "../subvt-config" } subvt-metrics = { path = "../subvt-metrics" } subvt-service-common = { path = "../subvt-service-common" } subvt-types = { path = "../subvt-types" } -subvt-logging = { path = "../subvt-logging" } tokio = { version = "1.41", features = ["full"] } diff --git a/subvt-network-status-updater/Cargo.toml b/subvt-network-status-updater/Cargo.toml index 1a83cdfb..3bbfd3bf 100644 --- a/subvt-network-status-updater/Cargo.toml +++ b/subvt-network-status-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-network-status-updater" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -15,7 +15,6 @@ redis = { version = "0.27", features = ["tokio-comp"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-service-common = { path = "../subvt-service-common" } subvt-substrate-client = { path = "../subvt-substrate-client" } diff --git a/subvt-nft/Cargo.toml b/subvt-nft/Cargo.toml index 7489bd97..faf2f82d 100644 --- a/subvt-nft/Cargo.toml +++ b/subvt-nft/Cargo.toml @@ -1,13 +1,12 @@ [package] name = "subvt-nft" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" [dependencies] anyhow = { workspace = true } lazy_static = { workspace = true } -log = { workspace = true } reqwest = { version = "0.12", features = ["blocking", "json", "gzip", "brotli"] } subvt-config = { path = "../subvt-config" } subvt-types = { path = "../subvt-types" } \ No newline at end of file diff --git a/subvt-notification-generator/Cargo.toml b/subvt-notification-generator/Cargo.toml index 050cfc39..b46a02f2 100644 --- a/subvt-notification-generator/Cargo.toml +++ b/subvt-notification-generator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-notification-generator" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -21,7 +21,6 @@ serde_json = "1.0" subvt-config = { path = "../subvt-config" } subvt-service-common = { path = "../subvt-service-common" } subvt-types = { path = "../subvt-types" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-substrate-client = { path = "../subvt-substrate-client" } diff --git a/subvt-notification-processor/Cargo.toml b/subvt-notification-processor/Cargo.toml index e8e6fefd..d9f15431 100644 --- a/subvt-notification-processor/Cargo.toml +++ b/subvt-notification-processor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-notification-processor" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -18,7 +18,6 @@ itertools = { workspace = true } job_scheduler = "1.2" lazy_static = { workspace = true } lettre = { version = "0.11", default-features = true, features = ["tokio1-native-tls"]} -lettre_email = "0.9" log = { workspace = true } once_cell = "1" redis = { version = "0.27", features = ["tokio-comp"] } @@ -26,7 +25,6 @@ rustc-hash = "2.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } diff --git a/subvt-onekv-updater/Cargo.toml b/subvt-onekv-updater/Cargo.toml index 4e6eea01..f725241a 100644 --- a/subvt-onekv-updater/Cargo.toml +++ b/subvt-onekv-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-onekv-updater" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -11,13 +11,10 @@ chrono = { version = "0.4", default-features = true, features = ["serde"] } lazy_static = { workspace = true } log = { workspace = true } once_cell = "1" -prometheus = { version = "0.13", features = ["process"] } -rand = "0.8" reqwest = { version = "0.12", features = ["blocking", "json", "gzip", "brotli"] } subvt-config = { path = "../subvt-config" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } subvt-types = { path = "../subvt-types" } -subvt-logging = { path = "../subvt-logging" } tokio = { version = "1.41", features = ["full"] } \ No newline at end of file diff --git a/subvt-persistence/Cargo.toml b/subvt-persistence/Cargo.toml index b8eb0363..e91124a9 100644 --- a/subvt-persistence/Cargo.toml +++ b/subvt-persistence/Cargo.toml @@ -1,16 +1,14 @@ [package] name = "subvt-persistence" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" [dependencies] anyhow = { workspace = true } chrono = "0.4" -hex = "0.4" lazy_static = { workspace = true } log = { workspace = true } -parity-scale-codec = "3.6" redis = { version = "0.27", features = ["tokio-comp"] } rustc-hash = "2.0" serde = { version = "1.0" } diff --git a/subvt-plotter/Cargo.toml b/subvt-plotter/Cargo.toml index dbd56eb5..681da46f 100644 --- a/subvt-plotter/Cargo.toml +++ b/subvt-plotter/Cargo.toml @@ -1,16 +1,14 @@ [package] name = "subvt-plotter" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" [dependencies] anyhow = { workspace = true } chrono = "0.4" -env_logger = "0.11" format_num = "0.1.0" itertools = { workspace = true } -log = { workspace = true } lazy_static = { workspace = true } thiserror = { workspace = true } rand = "0.8.5" diff --git a/subvt-proc-macro/Cargo.toml b/subvt-proc-macro/Cargo.toml index a928636f..d5f629f8 100644 --- a/subvt-proc-macro/Cargo.toml +++ b/subvt-proc-macro/Cargo.toml @@ -3,7 +3,7 @@ proc-macro = true [package] name = "subvt-proc-macro" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-referendum-updater/Cargo.toml b/subvt-referendum-updater/Cargo.toml index f49da02e..5939ab86 100644 --- a/subvt-referendum-updater/Cargo.toml +++ b/subvt-referendum-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-referendum-updater" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -14,14 +14,10 @@ enum-iterator = "2.0" lazy_static = { workspace = true } log = { workspace = true } once_cell = "1" -prometheus = { version = "0.13", features = ["process"] } -rand = "0.8" -reqwest = { version = "0.12", features = ["blocking", "json", "gzip", "brotli"] } subvt-config = { path = "../subvt-config" } subvt-governance = { path = "../subvt-governance" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } subvt-types = { path = "../subvt-types" } -subvt-logging = { path = "../subvt-logging" } tokio = { version = "1.41", features = ["full"] } diff --git a/subvt-report-service/Cargo.toml b/subvt-report-service/Cargo.toml index 96b141b6..c76a1b16 100644 --- a/subvt-report-service/Cargo.toml +++ b/subvt-report-service/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-report-service" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -17,13 +17,10 @@ once_cell = "1" redis = { version = "0.27", features = ["tokio-comp"] } rustc-hash = "2.0" serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -sqlx = { git = "https://github.com/helikon-labs/sqlx.git", branch = "helikon-increased-field-count", features = ["bigdecimal"] } subvt-config = { path = "../subvt-config" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } subvt-substrate-client = { path = "../subvt-substrate-client" } subvt-types = { path = "../subvt-types" } -subvt-logging = { path = "../subvt-logging" } tokio = { version = "1.41", features = ["full"] } \ No newline at end of file diff --git a/subvt-report-service/src/validator/mod.rs b/subvt-report-service/src/validator/mod.rs index 72f2a289..16e53b9c 100644 --- a/subvt-report-service/src/validator/mod.rs +++ b/subvt-report-service/src/validator/mod.rs @@ -338,7 +338,7 @@ pub(crate) async fn validator_monhtly_income_service( .with_day(1) .unwrap(); let start_timestamp = NaiveDateTime::from(start_date).and_utc().timestamp_millis(); - // start from 2 days prior to today + // start from 1 day prior to today let end_timestamp = NaiveDateTime::from(now.checked_sub_days(Days::new(1)).unwrap().date_naive()) .and_utc() diff --git a/subvt-service-common/Cargo.toml b/subvt-service-common/Cargo.toml index 8e6cf2be..24b49cd5 100644 --- a/subvt-service-common/Cargo.toml +++ b/subvt-service-common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-service-common" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -10,7 +10,6 @@ anyhow = { workspace = true } async-trait = "0.1" log = { workspace = true } serde_json = "1.0" -sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } subvt-config = { path = "../subvt-config" } subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } diff --git a/subvt-session-validator-performance-updater/Cargo.toml b/subvt-session-validator-performance-updater/Cargo.toml index 2f46eb1f..2f3085ce 100644 --- a/subvt-session-validator-performance-updater/Cargo.toml +++ b/subvt-session-validator-performance-updater/Cargo.toml @@ -1,18 +1,16 @@ [package] name = "subvt-session-validator-performance-updater" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" [dependencies] anyhow = { workspace = true } -async-lock = "3.4" async-trait = "0.1" lazy_static = { workspace = true } log = { workspace = true } once_cell = "1" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } diff --git a/subvt-substrate-client/Cargo.toml b/subvt-substrate-client/Cargo.toml index c0f21511..8aec2f13 100644 --- a/subvt-substrate-client/Cargo.toml +++ b/subvt-substrate-client/Cargo.toml @@ -1,21 +1,15 @@ [package] name = "subvt-substrate-client" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" [dependencies] anyhow = { workspace = true } -async-lock = "3.4" async-recursion = "1.0" -blake2-rfc = { version = "0.2", default-features = false } -byteorder = { version = "1.5", default-features = false } -chrono = "0.4" frame-metadata = { version = "15.0", features = ["std", "v14"] } hex = "0.4" jsonrpsee = { version = "0.24", features = ["full"] } -jsonrpsee-core = "0.24" -jsonrpsee-types = "0.24" log = { workspace = true } parity-scale-codec = { version = "3.6", default-features = false, features = ["derive", "full"] } rustc-hash = "2.0" @@ -26,10 +20,8 @@ subvt-config = { path = "../subvt-config" } subvt-types = { path = "../subvt-types" } subvt-utility = { path = "../subvt-utility" } tokio = { version = "1.41", features = ["full"] } -twox-hash = { version = "1.6", features = ["digest_0_9"] } [dev-dependencies] hex = "0.4" -lazy_static = { workspace = true } subvt-config = { path = "../subvt-config" } tokio = { version = "1.41", features = ["full"] } \ No newline at end of file diff --git a/subvt-telegram-bot/Cargo.toml b/subvt-telegram-bot/Cargo.toml index 23e7ac38..7b792ac1 100644 --- a/subvt-telegram-bot/Cargo.toml +++ b/subvt-telegram-bot/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-telegram-bot" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -11,7 +11,6 @@ async-trait = "0.1" chrono = "0.4" enum-iterator = "2.0" frankenstein = { version = "0.35", default-features = false, features = ["async-http-client", "async-telegram-trait"] } -futures = "0.3" itertools = { workspace = true } lazy_static = { workspace = true } log = { workspace = true } @@ -22,7 +21,6 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" subvt-config = { path = "../subvt-config" } subvt-governance = { path = "../subvt-governance" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-nft = { path = "../subvt-nft" } subvt-plotter = { path = "../subvt-plotter" } @@ -37,5 +35,4 @@ tokio = { version = "1.41", features = ["full"] } [dev-dependencies] mockall = "0.13" -mockito = "1" rand = "0.8.5" \ No newline at end of file diff --git a/subvt-telemetry-processor/Cargo.toml b/subvt-telemetry-processor/Cargo.toml index 3c887827..66543006 100644 --- a/subvt-telemetry-processor/Cargo.toml +++ b/subvt-telemetry-processor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-telemetry-processor" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -14,10 +14,7 @@ lazy_static = { workspace = true } log = { workspace = true } once_cell = "1" rustc-hash = "2.0" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" } diff --git a/subvt-types/Cargo.toml b/subvt-types/Cargo.toml index 45f7dfa2..e61d02dd 100644 --- a/subvt-types/Cargo.toml +++ b/subvt-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-types" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -25,7 +25,6 @@ pallet-staking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = parity-scale-codec = { version = "3.6", default-features = false, features = ["derive", "full"] } polkadot-core-primitives = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } -polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } rustc-hash = "2.0" scale-info = "2.10" @@ -34,7 +33,6 @@ serde_json = "1.0" sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } -sp-session = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } sp-staking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.16.2" } sqlx = { git = "https://github.com/helikon-labs/sqlx.git", branch = "helikon-increased-field-count", features = ["postgres", "runtime-tokio-rustls", "chrono", "bigdecimal"] } subvt-proc-macro = { path = "../subvt-proc-macro" } diff --git a/subvt-utility/Cargo.toml b/subvt-utility/Cargo.toml index 8b79b35f..847f0413 100644 --- a/subvt-utility/Cargo.toml +++ b/subvt-utility/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-utility" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-validator-details-server/Cargo.toml b/subvt-validator-details-server/Cargo.toml index bc0bc5bf..97b5fc19 100644 --- a/subvt-validator-details-server/Cargo.toml +++ b/subvt-validator-details-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-validator-details-server" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -23,5 +23,4 @@ subvt-config = { path = "../subvt-config" } subvt-metrics = { path = "../subvt-metrics" } subvt-service-common = { path = "../subvt-service-common" } subvt-types = { path = "../subvt-types" } -subvt-logging = { path = "../subvt-logging" } tokio = { version = "1.41", features = ["full"] } \ No newline at end of file diff --git a/subvt-validator-list-server/Cargo.toml b/subvt-validator-list-server/Cargo.toml index 3d3d8b29..6a837b21 100644 --- a/subvt-validator-list-server/Cargo.toml +++ b/subvt-validator-list-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-validator-list-server" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -10,9 +10,7 @@ rust-version = "1.67.0" anyhow = { workspace = true } async-trait = "0.1" bus = "2.4" -chrono = "0.4" clap = "4.4" -env_logger = "0.11" futures-util = "0.3" jsonrpsee = { version = "0.24", features = ["full"] } lazy_static = { workspace = true } @@ -26,5 +24,5 @@ subvt-config = { path = "../subvt-config" } subvt-metrics = { path = "../subvt-metrics" } subvt-service-common = { path = "../subvt-service-common" } subvt-types = { path = "../subvt-types" } -subvt-logging = { path = "../subvt-logging" } + tokio = { version = "1.41", features = ["full"] } diff --git a/subvt-validator-list-updater/Cargo.toml b/subvt-validator-list-updater/Cargo.toml index 2abcb28d..3a3c6f7c 100644 --- a/subvt-validator-list-updater/Cargo.toml +++ b/subvt-validator-list-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-validator-list-updater" -version = "0.22.3" +version = "0.22.4" edition = "2021" rust-version = "1.67.0" @@ -10,9 +10,6 @@ rust-version = "1.67.0" anyhow = { workspace = true } async-lock = "3.4" async-trait = "0.1" -chrono = "0.4" -hex = "0.4" -itertools = "0.13" lazy_static = { workspace = true } log = { workspace = true } once_cell = "1" @@ -21,7 +18,6 @@ rustc-hash = "2.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" subvt-config = { path = "../subvt-config" } -subvt-logging = { path = "../subvt-logging" } subvt-metrics = { path = "../subvt-metrics" } subvt-persistence = { path = "../subvt-persistence" } subvt-service-common = { path = "../subvt-service-common" }