diff --git a/Cargo.lock b/Cargo.lock index 37ed8db8..09025a5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -504,12 +504,6 @@ dependencies = [ "rand 0.8.5", ] -[[package]] -name = "array-bytes" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ad284aeb45c13f2fb4f084de4a420ebf447423bdf9386c0540ce33cb3ef4b8c" - [[package]] name = "arrayref" version = "0.3.7" @@ -805,6 +799,9 @@ name = "bitflags" version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" +dependencies = [ + "serde", +] [[package]] name = "bitmaps" @@ -1657,26 +1654,26 @@ dependencies = [ ] [[package]] -name = "dlopen" -version = "0.1.8" +name = "dlopen2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71e80ad39f814a9abe68583cd50a2d45c8a67561c3361ab8da240587dda80937" +checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa" dependencies = [ - "dlopen_derive", - "lazy_static", + "dlopen2_derive", "libc", + "once_cell", "winapi", ] [[package]] -name = "dlopen_derive" -version = "0.1.4" +name = "dlopen2_derive" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f236d9e1b1fbd81cea0f9cbdc8dcc7e8ebcd80e6659cd7cb2ad5f6c05946c581" +checksum = "a6cbae11b3de8fce2a456e8ea3dada226b35fe791f0dc1d360c0941f0bb681f3" dependencies = [ - "libc", - "quote 0.6.13", - "syn 0.15.44", + "proc-macro2 1.0.69", + "quote 1.0.33", + "syn 2.0.38", ] [[package]] @@ -1900,6 +1897,15 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs-err" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +dependencies = [ + "autocfg", +] + [[package]] name = "fs_extra" version = "1.3.0" @@ -2347,9 +2353,9 @@ dependencies = [ "futures-util", "http", "hyper", - "rustls 0.21.8", + "rustls", "tokio", - "tokio-rustls 0.24.1", + "tokio-rustls", ] [[package]] @@ -2697,6 +2703,18 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "light-poseidon" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" +dependencies = [ + "ark-bn254", + "ark-ff", + "num-bigint 0.4.4", + "thiserror", +] + [[package]] name = "linked-hash-map" version = "0.5.6" @@ -2754,12 +2772,6 @@ dependencies = [ "libc", ] -[[package]] -name = "matches" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" - [[package]] name = "matchit" version = "0.7.3" @@ -3706,54 +3718,63 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "qualifier_attr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" +dependencies = [ + "proc-macro2 1.0.69", + "quote 1.0.33", + "syn 2.0.38", +] + [[package]] name = "quinn" -version = "0.9.4" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e8b432585672228923edbbf64b8b12c14e1112f62e88737655b4a083dbcd78e" +checksum = "8cc2c5017e4b43d5995dcea317bc46c1e09404c0a9664d2908f7f02dfe943d75" dependencies = [ "bytes", "pin-project-lite", "quinn-proto", "quinn-udp", "rustc-hash", - "rustls 0.20.9", + "rustls", "thiserror", "tokio", "tracing", - "webpki", ] [[package]] name = "quinn-proto" -version = "0.9.6" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b0b33c13a79f669c85defaf4c275dc86a0c0372807d0ca3d78e0bb87274863" +checksum = "141bf7dfde2fbc246bfd3fe12f2455aa24b0fbd9af535d8c86c7bd1381ff2b1a" dependencies = [ "bytes", "rand 0.8.5", "ring 0.16.20", "rustc-hash", - "rustls 0.20.9", + "rustls", "rustls-native-certs", "slab", "thiserror", "tinyvec", "tracing", - "webpki", ] [[package]] name = "quinn-udp" -version = "0.3.2" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "641538578b21f5e5c8ea733b736895576d0fe329bb883b937db6f4d163dbaaf4" +checksum = "055b4e778e8feb9f93c4e439f71dc2156ef13360b432b799e179a8c4cdf0b1d7" dependencies = [ + "bytes", "libc", - "quinn-proto", - "socket2 0.4.10", + "socket2 0.5.5", "tracing", - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] @@ -4009,7 +4030,7 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", - "rustls 0.21.8", + "rustls", "rustls-pemfile", "serde", "serde_json", @@ -4017,7 +4038,7 @@ dependencies = [ "system-configuration", "tokio", "tokio-native-tls", - "tokio-rustls 0.24.1", + "tokio-rustls", "tokio-util", "tower-service", "url", @@ -4177,18 +4198,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "rustls" -version = "0.20.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" -dependencies = [ - "log", - "ring 0.16.20", - "sct", - "webpki", -] - [[package]] name = "rustls" version = "0.21.8" @@ -4438,17 +4447,6 @@ dependencies = [ "unsafe-libyaml", ] -[[package]] -name = "sha-1" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5058ada175748e33390e40e872bd0fe59a19f265d0158daa551c5a88a76009c" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest 0.10.7", -] - [[package]] name = "sha1" version = "0.10.6" @@ -4612,6 +4610,7 @@ dependencies = [ "log", "serde", "serde_json", + "solana-accounts-db", "solana-client", "solana-ledger", "solana-program", @@ -4642,9 +4641,9 @@ dependencies = [ [[package]] name = "solana-account-decoder" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83da6908b4865a9680c4fcb5e77d319467fdc5ab96a6ccc8361e7110ebcd206e" +checksum = "b156055847d132a22dbf639433fde5af6e7cd1bf97dcb677af6fe60a897c09c9" dependencies = [ "Inflector", "base64 0.21.5", @@ -4655,21 +4654,80 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "solana-address-lookup-table-program", "solana-config-program", "solana-sdk", "spl-token", "spl-token-2022", + "spl-token-group-interface", "spl-token-metadata-interface", "thiserror", "zstd", ] +[[package]] +name = "solana-accounts-db" +version = "1.17.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c10850f344e3656ef7f410099573776ebb5b41b74f0c8909bffb1af5bf31aade" +dependencies = [ + "arrayref", + "bincode", + "blake3", + "bv", + "bytemuck", + "byteorder", + "bzip2", + "crossbeam-channel", + "dashmap", + "flate2", + "fnv", + "fs-err", + "im", + "index_list", + "itertools", + "lazy_static", + "log", + "lz4", + "memmap2", + "modular-bitfield", + "num-derive 0.3.3", + "num-traits", + "num_cpus", + "num_enum 0.6.1", + "ouroboros", + "percentage", + "qualifier_attr", + "rand 0.8.5", + "rayon", + "regex", + "rustc_version", + "serde", + "serde_derive", + "solana-bucket-map", + "solana-config-program", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-measure", + "solana-metrics", + "solana-program-runtime", + "solana-rayon-threadlimit", + "solana-sdk", + "solana-stake-program", + "solana-system-program", + "solana-vote-program", + "static_assertions", + "strum", + "strum_macros", + "tar", + "tempfile", + "thiserror", +] + [[package]] name = "solana-address-lookup-table-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9102429e980b8e58f05e39a2aceb799fc1fd7b81e440bc70322854e0debb21dc" +checksum = "b953623ad93b3d85b42c3b96f879c8ea5f851eded5b07b97ae05f492a2dd915d" dependencies = [ "bincode", "bytemuck", @@ -4688,15 +4746,15 @@ dependencies = [ [[package]] name = "solana-bpf-loader-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "009b84c1ac3f6b9cb53a8f133c43efeaa4a6e8e46f9ddfa616f9d1f04c551a76" +checksum = "f35f22e54db7e766739656e74f89d4696783984ed3da38422a49473210550976" dependencies = [ "bincode", "byteorder", "libsecp256k1", "log", - "rand 0.7.3", + "scopeguard", "solana-measure", "solana-program-runtime", "solana-sdk", @@ -4707,16 +4765,17 @@ dependencies = [ [[package]] name = "solana-bucket-map" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d0f77fbc9836e4f87ebf9b92cc5083172bd7eadf050a5255b3276be925f6347" +checksum = "4388c335f11da12394f1f8c92db3ccbd19c67b826f7f3c343118a53a71e38b48" dependencies = [ "bv", + "bytemuck", "log", "memmap2", "modular-bitfield", "num_enum 0.6.1", - "rand 0.7.3", + "rand 0.8.5", "solana-measure", "solana-sdk", "tempfile", @@ -4724,14 +4783,13 @@ dependencies = [ [[package]] name = "solana-clap-utils" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe15843171a435eed014e7180f62c0d5e7e8178f7eaf4da0077ea21354506e2a" +checksum = "4b328f9ff32a16da21a89e4c2a6eb782ac120d25e7dbb6924a1e77680855b11d" dependencies = [ "chrono", "clap 2.34.0", "rpassword", - "solana-perf", "solana-remote-wallet", "solana-sdk", "thiserror", @@ -4742,9 +4800,9 @@ dependencies = [ [[package]] name = "solana-cli-config" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6430afcc4444bd3b7b16b9314f0ae533344d0cd9bbbd160fb47cb45f9689a801" +checksum = "7966a482996be4e320509ef1e342a6eacf5f98d48eabe4daed568b87bdc5ff4f" dependencies = [ "dirs-next", "lazy_static", @@ -4758,19 +4816,19 @@ dependencies = [ [[package]] name = "solana-client" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38917c4655a42881fd2998c5c7626fa4cee9f95d5877592b347b213782782145" +checksum = "a3857ad25163d3240280cbd64b54d64f49d0946d5f60047ecdeaef119fd1aed6" dependencies = [ "async-trait", "bincode", + "dashmap", "futures", "futures-util", - "indexmap 1.9.3", + "indexmap 2.1.0", "indicatif", "log", "quinn", - "rand 0.7.3", "rayon", "solana-connection-cache", "solana-measure", @@ -4791,9 +4849,9 @@ dependencies = [ [[package]] name = "solana-compute-budget-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14bddd710a43491be07ac493703617290e8781a9bd92fc33fcc9a8e4345928dd" +checksum = "bde3f674095ce0c20722cf32ff248d9448cb2d607dd9105bb51518c913596d41" dependencies = [ "solana-program-runtime", "solana-sdk", @@ -4801,9 +4859,9 @@ dependencies = [ [[package]] name = "solana-config-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8c2804d121a6d87f4b0cb861dc26e677e76953f4888a43292e34c5e6c5f2852" +checksum = "6672519beb874283076e34caa08cd3bf6557496b951a34efdfc10b328a72925e" dependencies = [ "bincode", "chrono", @@ -4815,16 +4873,17 @@ dependencies = [ [[package]] name = "solana-connection-cache" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fe0460a6005bb2d9ee1d4bce9379ff50c1b438f6f1c8dc867d8b74141f68349" +checksum = "e865c66c3701c37ef9419908a3628a618f69c5c3133dac0e2dbb7936ecf69b7c" dependencies = [ "async-trait", "bincode", + "crossbeam-channel", "futures-util", - "indexmap 1.9.3", + "indexmap 2.1.0", "log", - "rand 0.7.3", + "rand 0.8.5", "rayon", "rcgen", "solana-measure", @@ -4834,19 +4893,42 @@ dependencies = [ "tokio", ] +[[package]] +name = "solana-cost-model" +version = "1.17.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad9b18df91bf622d9ba47af2b61fbe2915d23d00706bd8214889f064a8f33139" +dependencies = [ + "lazy_static", + "log", + "rustc_version", + "solana-address-lookup-table-program", + "solana-bpf-loader-program", + "solana-compute-budget-program", + "solana-config-program", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-loader-v4-program", + "solana-metrics", + "solana-program-runtime", + "solana-sdk", + "solana-stake-program", + "solana-system-program", + "solana-vote-program", +] + [[package]] name = "solana-entry" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f17fddafc30edfc4369756c6aa237842ef7b1e75f476b565bcf980b2de1bdae" +checksum = "66238ae34987648611c5c101950bcfd179d8fff241abfcbe1092e3b6c15b0a9b" dependencies = [ "bincode", "crossbeam-channel", - "dlopen", - "dlopen_derive", + "dlopen2", "lazy_static", "log", - "rand 0.7.3", + "rand 0.8.5", "rayon", "serde", "solana-measure", @@ -4859,9 +4941,9 @@ dependencies = [ [[package]] name = "solana-frozen-abi" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a63aebf4beac713a1949216ae180355c044df9cc3db9a58ca153bb10bb5843b" +checksum = "9c9ac7bbff73e7f0e42f2453c2a514c1f7e1976617e655c5eea4c8d4f74d01d6" dependencies = [ "ahash 0.8.5", "blake3", @@ -4872,13 +4954,10 @@ dependencies = [ "cc", "either", "generic-array", - "getrandom 0.1.16", "im", "lazy_static", "log", "memmap2", - "once_cell", - "rand_core 0.6.4", "rustc_version", "serde", "serde_bytes", @@ -4892,9 +4971,9 @@ dependencies = [ [[package]] name = "solana-frozen-abi-macro" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bced1b3c0421605312fd7eae7ceb6850d3b1d2e939da349c928e6d46a945c829" +checksum = "4d6a65acf04814029dc7d8f34bf4d3e264183d1d0f2af528a6d28ce3343a22fd" dependencies = [ "proc-macro2 1.0.69", "quote 1.0.33", @@ -4904,13 +4983,13 @@ dependencies = [ [[package]] name = "solana-ledger" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "705cf53cb95e17b1e37d1b527234f64f7d631b15bc689c303179c6bbc515fee4" +checksum = "9e409b3a40272cbd29e5f3f1d473cd81970f6d985eec174181a57b2aedfb2257" dependencies = [ "assert_matches", "bincode", - "bitflags 1.3.2", + "bitflags 2.4.1", "byteorder", "chrono", "chrono-humanize", @@ -4926,8 +5005,8 @@ dependencies = [ "num_cpus", "num_enum 0.6.1", "prost", - "rand 0.7.3", - "rand_chacha 0.2.2", + "rand 0.8.5", + "rand_chacha 0.3.1", "rayon", "reed-solomon-erasure", "rocksdb", @@ -4937,7 +5016,9 @@ dependencies = [ "serde_bytes", "sha2 0.10.8", "solana-account-decoder", + "solana-accounts-db", "solana-bpf-loader-program", + "solana-cost-model", "solana-entry", "solana-frozen-abi", "solana-frozen-abi-macro", @@ -4952,10 +5033,13 @@ dependencies = [ "solana-storage-bigtable", "solana-storage-proto", "solana-transaction-status", + "solana-vote", "solana-vote-program", "spl-token", "spl-token-2022", "static_assertions", + "strum", + "strum_macros", "tempfile", "thiserror", "tokio", @@ -4965,12 +5049,11 @@ dependencies = [ [[package]] name = "solana-loader-v4-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5af55ee96c942cf4f3d088621c7a265b1a0a3558fafd0f5851c8637b7e1170a9" +checksum = "b477079d5d7ec032cf808a8c2b693b6ad2474c23be3824d02b8910a2eb59ce73" dependencies = [ "log", - "rand 0.7.3", "solana-measure", "solana-program-runtime", "solana-sdk", @@ -4979,9 +5062,9 @@ dependencies = [ [[package]] name = "solana-logger" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c95311f23906f0fa4a6d995f3c39593db18e4d943e4d3fbf082a510d0881d7af" +checksum = "d0ea479b76e53b869443fd1a46d3d678dfc4a3cdf1e76e777b7871276d4b71d4" dependencies = [ "env_logger 0.9.3", "lazy_static", @@ -4990,9 +5073,9 @@ dependencies = [ [[package]] name = "solana-measure" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "944244553c62855c57d05ac049140762f1e095188a0e5b973b859947ac1d00bf" +checksum = "b687234214e00da23702b0e5d7ac7761e712a955170afeb8b51cb38288d628c5" dependencies = [ "log", "solana-sdk", @@ -5000,20 +5083,19 @@ dependencies = [ [[package]] name = "solana-merkle-tree" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ad9c52bbb71a36f23dceaffb2b82cbfb50699743e03f57d6036bbb5f4004787" +checksum = "165854657b5d5644249a8726cac644a1bd04054d6e3b056127b8cb3900acb891" dependencies = [ "fast-math", - "matches", "solana-program", ] [[package]] name = "solana-metrics" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f02b2244ee93fd282f057146ce779987a96cdeba5615d43dc0b6347b96134772" +checksum = "9189752ea7948ca54d22a69263fc76292e9efa2cde34da3802a2cf892d9be7bf" dependencies = [ "crossbeam-channel", "gethostname", @@ -5021,23 +5103,24 @@ dependencies = [ "log", "reqwest", "solana-sdk", + "thiserror", ] [[package]] name = "solana-net-utils" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1dad26635fb41e948f56e1b896eab10e84cc62e00c59109a428a95c78fd6560" +checksum = "0c17cd6fd2421de609bbbf3cd7cf57aec7c90a2fa816dea31b1d8fd227834f73" dependencies = [ "bincode", "clap 3.2.25", "crossbeam-channel", "log", "nix", - "rand 0.7.3", + "rand 0.8.5", "serde", "serde_derive", - "socket2 0.4.10", + "socket2 0.5.5", "solana-logger", "solana-sdk", "solana-version", @@ -5047,25 +5130,27 @@ dependencies = [ [[package]] name = "solana-perf" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b03a0782c2b62c476c3fafd4e002ad8d91a2e36ca952df8e965d81dbf1dc158d" +checksum = "feb6c706acba52ea135de8643adb9339235c9ce6faefc4c9c725ba0a40029949" dependencies = [ "ahash 0.8.5", "bincode", "bv", "caps", "curve25519-dalek", - "dlopen", - "dlopen_derive", + "dlopen2", "fnv", "lazy_static", "libc", "log", "nix", - "rand 0.7.3", + "rand 0.8.5", "rayon", + "rustc_version", "serde", + "solana-frozen-abi", + "solana-frozen-abi-macro", "solana-metrics", "solana-rayon-threadlimit", "solana-sdk", @@ -5074,18 +5159,17 @@ dependencies = [ [[package]] name = "solana-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1f5c12cb15108734adae20be5e922c2db09d9623099541dcc61790703c6271c" +checksum = "4b8038b87341412d9a5dd5fd9a47501a13716bf22bd5f0e091089b2822eaea1e" dependencies = [ "ark-bn254", "ark-ec", "ark-ff", "ark-serialize", - "array-bytes", "base64 0.21.5", "bincode", - "bitflags 1.3.2", + "bitflags 2.4.1", "blake3", "borsh 0.10.3", "borsh 0.9.3", @@ -5102,14 +5186,14 @@ dependencies = [ "lazy_static", "libc", "libsecp256k1", + "light-poseidon", "log", "memoffset 0.9.0", "num-bigint 0.4.4", "num-derive 0.3.3", "num-traits", "parking_lot 0.12.1", - "rand 0.7.3", - "rand_chacha 0.2.2", + "rand 0.8.5", "rustc_version", "rustversion", "serde", @@ -5129,9 +5213,9 @@ dependencies = [ [[package]] name = "solana-program-runtime" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb7d1b8df43a93c410456be7d41c0dca9e2c460530a075243a98f556391d2bf9" +checksum = "c665fa881356492633725990cbcd3a47234edd63f57959951ece072d77c79f32" dependencies = [ "base64 0.21.5", "bincode", @@ -5143,7 +5227,7 @@ dependencies = [ "num-derive 0.3.3", "num-traits", "percentage", - "rand 0.7.3", + "rand 0.8.5", "rustc_version", "serde", "solana-frozen-abi", @@ -5157,9 +5241,9 @@ dependencies = [ [[package]] name = "solana-pubsub-client" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b06d8521ac6edf8e8080cb5411f3b831a400341274036528a6364d52f2a97a4" +checksum = "f4826b96343850c5acc086dc5cf0b91e815c948b4132b2e54edcbda86c578b22" dependencies = [ "crossbeam-channel", "futures-util", @@ -5175,16 +5259,16 @@ dependencies = [ "thiserror", "tokio", "tokio-stream", - "tokio-tungstenite 0.17.2", - "tungstenite 0.17.3", + "tokio-tungstenite", + "tungstenite", "url", ] [[package]] name = "solana-quic-client" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cba7522b79c889136f99aef825f874be07e94afef561b85a13e9ea3c012d778" +checksum = "6a5ee03454e501e8209c0c53e8b8954933d8a793c4929ec6518bc8babfe21e8d" dependencies = [ "async-mutex", "async-trait", @@ -5194,9 +5278,8 @@ dependencies = [ "log", "quinn", "quinn-proto", - "quinn-udp", "rcgen", - "rustls 0.20.9", + "rustls", "solana-connection-cache", "solana-measure", "solana-metrics", @@ -5210,9 +5293,9 @@ dependencies = [ [[package]] name = "solana-rayon-threadlimit" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd2081d1ed74301999e73e437c25c17dca82038e5472e104caf34b2657b3ba4a" +checksum = "3362b4db051b7070c2cd256aaf200a55db71820822fc46cb836792ffe4edf268" dependencies = [ "lazy_static", "num_cpus", @@ -5220,9 +5303,9 @@ dependencies = [ [[package]] name = "solana-remote-wallet" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a08a9c833b21fe9ec6ab74ea271de236cf7fd2602f34283752bba9c25d62304" +checksum = "a110da2c69e894c04bfb2dec11378b4f165e6d4f6268a81580e334ca0d6b98d6" dependencies = [ "console", "dialoguer", @@ -5239,9 +5322,9 @@ dependencies = [ [[package]] name = "solana-rpc-client" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1301ef82a9e87afb28bfccab1b3ebf8f10d6d2ee42c5b1d793ab989d70f83e27" +checksum = "0175232c8d617a134dd556831e4b2144afbe4e881e2f2b0d9d02f71135090fa0" dependencies = [ "async-trait", "base64 0.21.5", @@ -5265,9 +5348,9 @@ dependencies = [ [[package]] name = "solana-rpc-client-api" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ffdfe666315851d1a5c3d426a688dccfd2af19b46667140ea59b9ddf3988038" +checksum = "a3122f150402ce723f424e8892dc5b64781296541c8d6d67156fda8b3747ae9f" dependencies = [ "base64 0.21.5", "bs58 0.4.0", @@ -5287,9 +5370,9 @@ dependencies = [ [[package]] name = "solana-rpc-client-nonce-utils" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d45f9be345ea2d29eb2c43d4b9a4c5181513f0af3e366be8b5e478ef451177be" +checksum = "f01fb35991dda0ccaac8cae72fc63a78aca614edf42491f2dde5223d16bf2d8b" dependencies = [ "clap 2.34.0", "solana-clap-utils", @@ -5300,11 +5383,12 @@ dependencies = [ [[package]] name = "solana-runtime" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da45b4f58bb45ae1d92b5980ddf90bfabc52342eba4d0f5c1ecacab3a87fb2e" +checksum = "046d20a477aa3c57d1a6f370c0acde514df277bbfb4b461021ce29eae22645a1" dependencies = [ "arrayref", + "base64 0.21.5", "bincode", "blake3", "bv", @@ -5316,6 +5400,7 @@ dependencies = [ "dir-diff", "flate2", "fnv", + "fs-err", "im", "index_list", "itertools", @@ -5329,20 +5414,24 @@ dependencies = [ "num-traits", "num_cpus", "num_enum 0.6.1", - "once_cell", "ouroboros", "percentage", - "rand 0.7.3", + "qualifier_attr", + "rand 0.8.5", "rayon", "regex", "rustc_version", "serde", "serde_derive", + "serde_json", + "siphasher", + "solana-accounts-db", "solana-address-lookup-table-program", "solana-bpf-loader-program", "solana-bucket-map", "solana-compute-budget-program", "solana-config-program", + "solana-cost-model", "solana-frozen-abi", "solana-frozen-abi-macro", "solana-loader-v4-program", @@ -5354,6 +5443,8 @@ dependencies = [ "solana-sdk", "solana-stake-program", "solana-system-program", + "solana-version", + "solana-vote", "solana-vote-program", "solana-zk-token-proof-program", "solana-zk-token-sdk", @@ -5369,14 +5460,14 @@ dependencies = [ [[package]] name = "solana-sdk" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "051b93dc7737a7fb530c1e74f135a652bb69f5554c8804b2ebf55d6fb6a30f26" +checksum = "c4fa260b2ddae30b9e31574ea81a2b157dba991e3908b544ab9bc4436c19c891" dependencies = [ "assert_matches", "base64 0.21.5", "bincode", - "bitflags 1.3.2", + "bitflags 2.4.1", "borsh 0.10.3", "bs58 0.4.0", "bytemuck", @@ -5399,8 +5490,9 @@ dependencies = [ "num_enum 0.6.1", "pbkdf2 0.11.0", "qstring", + "qualifier_attr", "rand 0.7.3", - "rand_chacha 0.2.2", + "rand 0.8.5", "rustc_version", "rustversion", "serde", @@ -5422,9 +5514,9 @@ dependencies = [ [[package]] name = "solana-sdk-macro" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1fae2d1f62d655f88280a39711db401973d1bbe54fec9f795be80b9d76837ae" +checksum = "204ed709eac41f4d67417eaacc8c66b0435b0f2b07ec367c15f97a0624fa09ca" dependencies = [ "bs58 0.4.0", "proc-macro2 1.0.69", @@ -5441,9 +5533,9 @@ checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" [[package]] name = "solana-stake-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b127ba7a3419335051e84ed6d46c1597a6eeaa741831e25e6f0588c72a6e3cc2" +checksum = "26b696fefafb25c1ee4f4c5bf14314d31c1b02ff023db105e6b68a1d9c7ccfad" dependencies = [ "bincode", "log", @@ -5456,9 +5548,9 @@ dependencies = [ [[package]] name = "solana-storage-bigtable" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de309a680b4dba50bc873982672d9af2907cf51eafe34b128148537eff1ebb03" +checksum = "4312351f0b4c6262292fd50239dd90b20d7961f4a45ae3edb345ca730b9c6248" dependencies = [ "backoff", "bincode", @@ -5490,9 +5582,9 @@ dependencies = [ [[package]] name = "solana-storage-proto" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7aaf268a2e8b4705b666ae50f952fb7f115ea192d722f95fcb169f612ee898b4" +checksum = "bd007900c14f65cd22161a1fd58b1df59848989fe9abe35d2b96f189f205deeb" dependencies = [ "bincode", "bs58 0.4.0", @@ -5507,16 +5599,16 @@ dependencies = [ [[package]] name = "solana-streamer" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9cf11ed42da5fd14f4fd197d325951d2d7890aab8e25a7782f8b7540918d3a1" +checksum = "a9a9283d728685915c5ab45be86b1b579fef8b7abffb208c73e7557d5c2d3104" dependencies = [ "async-channel", "bytes", "crossbeam-channel", "futures-util", "histogram", - "indexmap 1.9.3", + "indexmap 2.1.0", "itertools", "libc", "log", @@ -5526,10 +5618,9 @@ dependencies = [ "pkcs8", "quinn", "quinn-proto", - "quinn-udp", - "rand 0.7.3", + "rand 0.8.5", "rcgen", - "rustls 0.20.9", + "rustls", "solana-metrics", "solana-perf", "solana-sdk", @@ -5540,9 +5631,9 @@ dependencies = [ [[package]] name = "solana-system-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "599877167e03e4da09e2eff42efed7720615d1f2f5e8b9c52a057dc1d7067ee4" +checksum = "239ee77e8212b4c8abde4f47b429eab8aeb957d126954a30dd425ea1dacb94b9" dependencies = [ "bincode", "log", @@ -5554,9 +5645,9 @@ dependencies = [ [[package]] name = "solana-thin-client" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bffbc01cdc316ff88398afbcd3befa78919049362bfe1a8a5794c942ce34bd96" +checksum = "ec8197089e87ef606d1a5fa98e4b0790d7094425b7f20a4d175ee7c61c8199d0" dependencies = [ "bincode", "log", @@ -5569,17 +5660,16 @@ dependencies = [ [[package]] name = "solana-tpu-client" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8209c111aff1fcf3028a8ee39c7c2171012fda5b31a72b2427d2c2d989dc6d3c" +checksum = "6dee856cb66adbbeebdac340533eaf6e77cde6fa37d10d9d9670aa6f0f7bc679" dependencies = [ "async-trait", "bincode", "futures-util", - "indexmap 1.9.3", + "indexmap 2.1.0", "indicatif", "log", - "rand 0.7.3", "rayon", "solana-connection-cache", "solana-measure", @@ -5594,9 +5684,9 @@ dependencies = [ [[package]] name = "solana-transaction-status" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdad82a1e22d7c3fc1e009eeec4e8841697f6cce1902b7a1d5b73baf2bcca2e5" +checksum = "527a268c187be16cd2e769550fdcaae84ac86d361544a9bf7dc9f968a54221b8" dependencies = [ "Inflector", "base64 0.21.5", @@ -5609,7 +5699,6 @@ dependencies = [ "serde_derive", "serde_json", "solana-account-decoder", - "solana-address-lookup-table-program", "solana-sdk", "spl-associated-token-account", "spl-memo", @@ -5620,9 +5709,9 @@ dependencies = [ [[package]] name = "solana-udp-client" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a48721c6347353071589e3fbade33079e7ebade6087bb5b10edc788ad41b1ae2" +checksum = "bd8f93366fff2d5d388aa6efc87d891c456cae933259852202b1bbab41115a8e" dependencies = [ "async-trait", "solana-connection-cache", @@ -5635,9 +5724,9 @@ dependencies = [ [[package]] name = "solana-version" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de7e99eb16bdc91861829bf0a6e361dd87ab898673b3708ebacf4ba27ca4d242" +checksum = "a7012ed11bf0f89f540244b0c1f69cd77f719453211a57e728fc7812844298eb" dependencies = [ "log", "rustc_version", @@ -5649,11 +5738,30 @@ dependencies = [ "solana-sdk", ] +[[package]] +name = "solana-vote" +version = "1.17.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c1a94603427c5cc443c85387290373c187db59932d4036660edf5a5d869ca7a" +dependencies = [ + "crossbeam-channel", + "itertools", + "log", + "rustc_version", + "serde", + "serde_derive", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-sdk", + "solana-vote-program", + "thiserror", +] + [[package]] name = "solana-vote-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22b1a3a2d9807a4141f0a550fdb3fa61a4aac4b4e7ea31694739509a43b9fa23" +checksum = "3e81bbd1aca23779c5c3b7f2fba40de473f9da54166df9e79ff7012b9b86b178" dependencies = [ "bincode", "log", @@ -5673,12 +5781,11 @@ dependencies = [ [[package]] name = "solana-zk-token-proof-program" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d3db5213b9dc063e95f94bc0b66748942786e48ed5e259bcf617897f1b86087" +checksum = "16a35d5c0d8dfc1b9376448365c1e4d665ec16bddacabacee4619ee08473d9b6" dependencies = [ "bytemuck", - "getrandom 0.1.16", "num-derive 0.3.3", "num-traits", "solana-program-runtime", @@ -5688,9 +5795,9 @@ dependencies = [ [[package]] name = "solana-zk-token-sdk" -version = "1.16.18" +version = "1.17.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad3cc2b931a39510b1c90dc876a93ae315b9712a8338296e4b60519d09e57be9" +checksum = "535c3af389866ddaac91a28df6bb351dcf3b73d489ee7f982e043ef10232877a" dependencies = [ "aes-gcm-siv", "base64 0.21.5", @@ -5717,9 +5824,9 @@ dependencies = [ [[package]] name = "solana_rbpf" -version = "0.6.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17d4ba1e58947346e360fabde0697029d36ba83c42f669199b16a8931313cf29" +checksum = "3d457cc2ba742c120492a64b7fa60e22c575e891f6b55039f4d736568fb112a3" dependencies = [ "byteorder", "combine", @@ -5758,9 +5865,9 @@ dependencies = [ [[package]] name = "spl-associated-token-account" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "385e31c29981488f2820b2022d8e731aae3b02e6e18e2fd854e4c9a94dc44fc3" +checksum = "992d9c64c2564cc8f63a4b508bf3ebcdf2254b0429b13cd1d31adb6162432a5f" dependencies = [ "assert_matches", "borsh 0.10.3", @@ -5856,9 +5963,9 @@ dependencies = [ [[package]] name = "spl-tlv-account-resolution" -version = "0.4.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062e148d3eab7b165582757453632ffeef490c02c86a48bfdb4988f63eefb3b9" +checksum = "56f335787add7fa711819f9e7c573f8145a5358a709446fe2d24bf2a88117c90" dependencies = [ "bytemuck", "solana-program", @@ -5885,9 +5992,9 @@ dependencies = [ [[package]] name = "spl-token-2022" -version = "0.9.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4abf34a65ba420584a0c35f3903f8d727d1f13ababbdc3f714c6b065a686e86" +checksum = "d697fac19fd74ff472dfcc13f0b442dd71403178ce1de7b5d16f83a33561c059" dependencies = [ "arrayref", "bytemuck", @@ -5895,16 +6002,31 @@ dependencies = [ "num-traits", "num_enum 0.7.1", "solana-program", + "solana-security-txt", "solana-zk-token-sdk", "spl-memo", "spl-pod", "spl-token", + "spl-token-group-interface", "spl-token-metadata-interface", "spl-transfer-hook-interface", "spl-type-length-value", "thiserror", ] +[[package]] +name = "spl-token-group-interface" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b889509d49fa74a4a033ca5dae6c2307e9e918122d97e58562f5c4ffa795c75d" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", +] + [[package]] name = "spl-token-metadata-interface" version = "0.2.0" @@ -5921,9 +6043,9 @@ dependencies = [ [[package]] name = "spl-transfer-hook-interface" -version = "0.3.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "051d31803f873cabe71aec3c1b849f35248beae5d19a347d93a5c9cccc5d5a9b" +checksum = "7aabdb7c471566f6ddcee724beb8618449ea24b399e58d464d6b5bc7db550259" dependencies = [ "arrayref", "bytemuck", @@ -6342,24 +6464,13 @@ dependencies = [ "whoami", ] -[[package]] -name = "tokio-rustls" -version = "0.23.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" -dependencies = [ - "rustls 0.20.9", - "tokio", - "webpki", -] - [[package]] name = "tokio-rustls" version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.8", + "rustls", "tokio", ] @@ -6374,22 +6485,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "tokio-tungstenite" -version = "0.17.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f714dd15bead90401d77e04243611caec13726c2408afd5b31901dfcdcb3b181" -dependencies = [ - "futures-util", - "log", - "rustls 0.20.9", - "tokio", - "tokio-rustls 0.23.4", - "tungstenite 0.17.3", - "webpki", - "webpki-roots 0.22.6", -] - [[package]] name = "tokio-tungstenite" version = "0.20.1" @@ -6398,8 +6493,11 @@ checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" dependencies = [ "futures-util", "log", + "rustls", "tokio", - "tungstenite 0.20.1", + "tokio-rustls", + "tungstenite", + "webpki-roots 0.25.2", ] [[package]] @@ -6466,14 +6564,14 @@ dependencies = [ [[package]] name = "tonic" -version = "0.8.3" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f219fad3b929bef19b1f86fbc0358d35daed8f2cac972037ac0dc10bbb8d5fb" +checksum = "3082666a3a6433f7f511c7192923fa1fe07c69332d3c6a2e6bb040b569199d5a" dependencies = [ "async-stream", "async-trait", "axum", - "base64 0.13.1", + "base64 0.21.5", "bytes", "futures-core", "futures-util", @@ -6485,24 +6583,21 @@ dependencies = [ "percent-encoding", "pin-project", "prost", - "prost-derive", "rustls-pemfile", "tokio", - "tokio-rustls 0.23.4", + "tokio-rustls", "tokio-stream", - "tokio-util", "tower", "tower-layer", "tower-service", "tracing", - "tracing-futures", ] [[package]] name = "tonic-build" -version = "0.8.4" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bf5e9b9c0f7e0a7c027dcfaba7b2c60816c7049171f679d99ee2ff65d0de8c4" +checksum = "a6fdaae4c2c638bb70fe42803a26fbd6fc6ac8c72f5c59f67ecc2a2dcabf4b07" dependencies = [ "prettyplease 0.1.25", "proc-macro2 1.0.69", @@ -6576,16 +6671,6 @@ dependencies = [ "valuable", ] -[[package]] -name = "tracing-futures" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" -dependencies = [ - "pin-project", - "tracing", -] - [[package]] name = "tracing-log" version = "0.1.4" @@ -6634,28 +6719,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" -[[package]] -name = "tungstenite" -version = "0.17.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e27992fd6a8c29ee7eef28fc78349aa244134e10ad447ce3b9f0ac0ed0fa4ce0" -dependencies = [ - "base64 0.13.1", - "byteorder", - "bytes", - "http", - "httparse", - "log", - "rand 0.8.5", - "rustls 0.20.9", - "sha-1", - "thiserror", - "url", - "utf-8", - "webpki", - "webpki-roots 0.22.6", -] - [[package]] name = "tungstenite" version = "0.20.1" @@ -6669,10 +6732,12 @@ dependencies = [ "httparse", "log", "rand 0.8.5", + "rustls", "sha1", "thiserror", "url", "utf-8", + "webpki-roots 0.24.0", ] [[package]] @@ -6954,7 +7019,7 @@ dependencies = [ "serde_urlencoded", "tokio", "tokio-stream", - "tokio-tungstenite 0.20.1", + "tokio-tungstenite", "tokio-util", "tower-service", "tracing", @@ -7048,23 +7113,13 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webpki" -version = "0.22.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" -dependencies = [ - "ring 0.17.5", - "untrusted 0.9.0", -] - [[package]] name = "webpki-roots" -version = "0.22.6" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" +checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888" dependencies = [ - "webpki", + "rustls-webpki", ] [[package]] @@ -7135,21 +7190,6 @@ dependencies = [ "windows-targets 0.48.5", ] -[[package]] -name = "windows-sys" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" -dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", -] - [[package]] name = "windows-sys" version = "0.45.0" diff --git a/api/src/handlers/bonds.rs b/api/src/handlers/bonds.rs index f738eda0..dd0bd5f3 100644 --- a/api/src/handlers/bonds.rs +++ b/api/src/handlers/bonds.rs @@ -14,13 +14,18 @@ pub struct BondsResponse { #[into_params(parameter_in = Query)] pub struct QueryParams {} -#[derive(Debug)] struct CustomError { message: String, } impl Reject for CustomError {} +impl std::fmt::Debug for CustomError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "CustomError: {}", self.message) + } +} + #[utoipa::path( get, tag = "Bonds", diff --git a/api/src/repositories/bond.rs b/api/src/repositories/bond.rs index 7712a61f..2691bc6a 100644 --- a/api/src/repositories/bond.rs +++ b/api/src/repositories/bond.rs @@ -26,7 +26,7 @@ pub async fn get_bonds(psql_client: &Client) -> anyhow::Result("epoch").try_into()?, - cpmpe: row.get::<_, Decimal>("cpmpe").try_into()?, + cpmpe: row.get::<_, Decimal>("cpmpe"), updated_at: row.get("updated_at"), }) } @@ -77,7 +77,7 @@ pub async fn store_bonds(options: CommonStoreOptions) -> anyhow::Result<()> { params.push(Box::new(&bond.authority)); params.push(Box::new(epoch)); params.push(Box::new(bond.updated_at)); - params.push(Box::new(Decimal::from(bond.cpmpe))); + params.push(Box::new(bond.cpmpe)); } insert_values.pop(); diff --git a/validator-bonds-cli/src/bin/cli.rs b/validator-bonds-cli/src/bin/cli.rs index 6e7fa4b1..b7e77262 100644 --- a/validator-bonds-cli/src/bin/cli.rs +++ b/validator-bonds-cli/src/bin/cli.rs @@ -47,7 +47,8 @@ async fn main() -> anyhow::Result<()> { std::process::exit(1); })); - Ok(match params.command { + match params.command { Command::CollectBonds(options) => collect_bonds(options).await?, - }) + }; + Ok(()) } diff --git a/validator-bonds-cli/src/commands/bonds.rs b/validator-bonds-cli/src/commands/bonds.rs index d4a9d40d..82db7448 100644 --- a/validator-bonds-cli/src/commands/bonds.rs +++ b/validator-bonds-cli/src/commands/bonds.rs @@ -44,7 +44,7 @@ pub async fn collect_bonds(options: CommonCollectOptions) -> anyhow::Result<()> vote_account: bond.vote_account.to_string(), authority: bond.authority.to_string(), cpmpe: bond.cpmpe.try_into().unwrap(), - epoch: epoch, + epoch, updated_at, }) }