diff --git a/.gitignore b/.gitignore index ea8c4bf..87dc239 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +keypair* diff --git a/Cargo.lock b/Cargo.lock index 4aa1770..79ca91e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,17 +1,380 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 + +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + +[[package]] +name = "addr2line" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" + +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "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 = "aes-gcm-siv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae0784134ba9375416d469ec31e7c5f9fa94405049cf08c5ce5b4698be673e0d" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "polyval", + "subtle", + "zeroize", +] + +[[package]] +name = "agave-feature-set" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "973a83d0d66d1f04647d1146a07736864f0742300b56bf2a5aadf5ce7b22fe47" +dependencies = [ + "ahash 0.8.11", + "solana-epoch-schedule", + "solana-feature-set-interface", + "solana-hash", + "solana-pubkey", + "solana-sha256-hasher", +] + +[[package]] +name = "agave-precompiles" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "591ddfc881b44f1eb740b5f6b64c953ba46b003cf0cd49d56268bc70594f655d" +dependencies = [ + "agave-feature-set", + "bincode", + "bytemuck", + "digest 0.10.7", + "ed25519-dalek", + "lazy_static", + "libsecp256k1", + "openssl", + "sha3", + "solana-ed25519-program", + "solana-message", + "solana-precompile-error", + "solana-pubkey", + "solana-sdk-ids", + "solana-secp256k1-program", + "solana-secp256r1-program", +] + +[[package]] +name = "agave-reserved-account-keys" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498ae700a5abcfe54d26333c3c1e58c729150d30166940e1f38eafbfe595237e" +dependencies = [ + "agave-feature-set", + "lazy_static", + "solana-pubkey", + "solana-sdk-ids", +] [[package]] name = "ahash" -version = "0.8.3" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +dependencies = [ + "getrandom 0.2.15", + "once_cell", + "version_check", +] + +[[package]] +name = "ahash" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", "const-random", + "getrandom 0.2.15", "once_cell", "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "anchor-attribute-access-control" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-syn", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-account" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-syn", + "bs58", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-constant" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-error" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-event" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-syn", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-program" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-lang-idl", + "anchor-syn", + "anyhow", + "bs58", + "heck 0.3.3", + "proc-macro2", + "quote", + "serde_json", + "syn 1.0.109", +] + +[[package]] +name = "anchor-client" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49b3e91b12501d37c8f07de9da8c7d22067998a7760a515231187afb47ded225" +dependencies = [ + "anchor-lang", + "anyhow", + "futures", + "regex", + "serde", + "solana-account-decoder", + "solana-client", + "solana-sdk", + "thiserror 1.0.68", + "tokio", + "url", +] + +[[package]] +name = "anchor-derive-accounts" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-serde" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-syn", + "borsh-derive-internal", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-space" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-lang" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-attribute-access-control", + "anchor-attribute-account", + "anchor-attribute-constant", + "anchor-attribute-error", + "anchor-attribute-event", + "anchor-attribute-program", + "anchor-derive-accounts", + "anchor-derive-serde", + "anchor-derive-space", + "anchor-lang-idl", + "base64 0.21.7", + "bincode", + "borsh 0.10.4", + "bytemuck", + "solana-program", + "thiserror 1.0.68", +] + +[[package]] +name = "anchor-lang-idl" +version = "0.1.2" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anchor-lang-idl-spec", + "anyhow", + "heck 0.3.3", + "regex", + "serde", + "serde_json", + "sha2 0.10.8", +] + +[[package]] +name = "anchor-lang-idl-spec" +version = "0.1.0" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anyhow", + "serde", +] + +[[package]] +name = "anchor-spl" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c08cb5d762c0694f74bd02c9a5b04ea53cefc496e2c27b3234acffca5cd076b" +dependencies = [ + "anchor-lang", + "spl-associated-token-account", + "spl-pod", + "spl-token", + "spl-token-2022 6.0.0", + "spl-token-group-interface", + "spl-token-metadata-interface", +] + +[[package]] +name = "anchor-syn" +version = "0.31.1" +source = "git+https://github.com/madninja/anchor.git?branch=madninja%2Fconst_pubkey#1dfe80386037379325c30095dcdb51e152c1e3c5" +dependencies = [ + "anyhow", + "bs58", + "cargo_toml", + "heck 0.3.3", + "proc-macro2", + "quote", + "serde", + "serde_json", + "sha2 0.10.8", + "syn 1.0.109", + "thiserror 1.0.68", +] + +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", ] [[package]] @@ -28,1735 +391,7317 @@ dependencies = [ [[package]] name = "anstream" -version = "0.3.2" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", - "is-terminal", + "is_terminal_polyfill", "utf8parse", ] [[package]] name = "anstyle" -version = "1.0.0" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.0" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.0.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.59.0", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" +dependencies = [ + "anstyle", + "windows-sys 0.59.0", +] + +[[package]] +name = "anyhow" +version = "1.0.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" + +[[package]] +name = "ark-bn254" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-std", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", + "itertools 0.10.5", + "num-traits", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm", + "ark-ff-macros", + "ark-serialize", + "ark-std", + "derivative", + "digest 0.10.7", + "itertools 0.10.5", + "num-bigint 0.4.6", + "num-traits", + "paste", + "rustc_version", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint 0.4.6", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-serialize-derive", + "ark-std", + "digest 0.10.7", + "num-bigint 0.4.6", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "ascii" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eab1c04a571841102f5345a8fc0f6bb3d31c315dec879b5c6e42e40ce7ffa34e" + +[[package]] +name = "asn1-rs" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 1.0.68", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "726535892e8eae7e70657b4c8ea93d26b8553afb1ce617caee529ef96d7dee6c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "synstructure 0.12.6", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2777730b2039ac0f95f093556e61b6d26cebed5393ca6f152717777cec3a42ed" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "async-channel" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +dependencies = [ + "concurrent-queue", + "event-listener 2.5.3", + "futures-core", +] + +[[package]] +name = "async-compression" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cb8f1d480b0ea3783ab015936d2a55c87e219676f0c0b7dec61494043f21857" +dependencies = [ + "brotli", + "flate2", + "futures-core", + "memchr", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "async-lock" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" +dependencies = [ + "event-listener 5.4.0", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-stream" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" +dependencies = [ + "async-stream-impl", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-stream-impl" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "async-trait" +version = "0.1.88" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "atomic" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d818003e740b63afc82337e3160717f4f63078720a810b7b903e70a5d1d2994" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "axum" +version = "0.6.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf" +dependencies = [ + "async-trait", + "axum-core", + "bitflags 1.3.2", + "bytes", + "futures-util", + "http", + "http-body", + "hyper", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "rustversion", + "serde", + "sync_wrapper", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "axum-core" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c" +dependencies = [ + "async-trait", + "bytes", + "futures-util", + "http", + "http-body", + "mime", + "rustversion", + "tower-layer", + "tower-service", +] + +[[package]] +name = "backtrace" +version = "0.3.74" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" +dependencies = [ + "addr2line", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", + "windows-targets 0.52.6", +] + +[[package]] +name = "base16ct" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" + +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" +dependencies = [ + "serde", +] + +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "tap", + "wyz", +] + +[[package]] +name = "blake3" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3888aaa89e4b2a40fca9848e400f6a658a5a3978de7be858e209cafa8be9a4a0" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "digest 0.10.7", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "borsh" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115e54d64eb62cdebad391c19efc9dce4981c690c85a33a12199d99bb9546fee" +dependencies = [ + "borsh-derive 0.10.4", + "hashbrown 0.13.2", +] + +[[package]] +name = "borsh" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8646f98db542e39fc66e68a20b2144f6a732636df7c2354e74645faaa433ce" +dependencies = [ + "borsh-derive 1.5.7", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831213f80d9423998dd696e2c5345aba6be7a0bd8cd19e31c5243e13df1cef89" +dependencies = [ + "borsh-derive-internal", + "borsh-schema-derive-internal", + "proc-macro-crate 0.1.5", + "proc-macro2", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdd1d3c0c2f5833f22386f252fe8ed005c7f59fdcddeef025c01b4c3b9fd9ac3" +dependencies = [ + "once_cell", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "borsh-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65d6ba50644c98714aa2a70d13d7df3cd75cd2b523a2b452bf010443800976b3" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-schema-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "276691d96f063427be83e6692b86148e488ebba9f48f77788724ca027ba3b6d4" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "brotli" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "4.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "sha2 0.10.8", + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" + +[[package]] +name = "bv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340" +dependencies = [ + "feature-probe", + "serde", +] + +[[package]] +name = "bytecheck" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" +dependencies = [ + "bytecheck_derive", + "ptr_meta", + "simdutf8", +] + +[[package]] +name = "bytecheck_derive" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "bytemuck" +version = "1.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9134a6ef01ce4b366b50689c94f82c14bc72bc5d0386829828a2e2752ef7958c" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" + +[[package]] +name = "caps" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "190baaad529bcfbde9e1a19022c42781bdb6ff9de25721abdb8fd98c0807730b" +dependencies = [ + "libc", + "thiserror 1.0.68", +] + +[[package]] +name = "cargo_toml" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a98356df42a2eb1bd8f1793ae4ee4de48e384dd974ce5eac8eee802edb7492be" +dependencies = [ + "serde", + "toml 0.8.19", +] + +[[package]] +name = "cc" +version = "1.1.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40545c26d092346d8a8dab71ee48e7685a7a9cba76e634790c215b41a4a7b4cf" +dependencies = [ + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "cfg_eval" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45565fc9416b9896014f5732ac776f810ee53a66730c17e4020c3ec064a8f88f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "chrono" +version = "0.4.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" +dependencies = [ + "android-tzdata", + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[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.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.5.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim 0.11.1", +] + +[[package]] +name = "clap_derive" +version = "4.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "clap_lex" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" + +[[package]] +name = "colorchoice" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" + +[[package]] +name = "combine" +version = "3.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3da6baa321ec19e1cc41d31bf599f00c783d0517095cdaf0332e3fe8d20680" +dependencies = [ + "ascii", + "byteorder", + "either", + "memchr", + "unreachable", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "console" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "unicode-width 0.1.14", + "windows-sys 0.52.0", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + +[[package]] +name = "console_log" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f" +dependencies = [ + "log", + "web-sys", +] + +[[package]] +name = "const-oid" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4c78c047431fee22c1a7bb92e00ad095a02a983affe4d8a72e2a2c62c1b94f3" + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "const-random" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" +dependencies = [ + "const-random-macro", +] + +[[package]] +name = "const-random-macro" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +dependencies = [ + "getrandom 0.2.15", + "once_cell", + "tiny-keccak", +] + +[[package]] +name = "constant_time_eq" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" + +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + +[[package]] +name = "crypto-bigint" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c6a1d5fa1de37e071642dfa44ec552ca5b299adb128fab16138e24b548fd21" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "typenum", +] + +[[package]] +name = "crypto-mac" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "crypto-mac" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25fab6889090c8133f3deb8f73ba3c65a7f456f66436fc012a1b1e272b1e103e" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "ct-codecs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "026ac6ceace6298d2c557ef5ed798894962296469ec7842288ea64674201a2d1" + +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher", +] + +[[package]] +name = "curve25519-dalek" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" +dependencies = [ + "byteorder", + "digest 0.9.0", + "rand_core 0.5.1", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rand_core 0.6.4", + "rustc_version", + "serde", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "darling" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c" +dependencies = [ + "darling_core 0.13.4", + "darling_macro 0.13.4", +] + +[[package]] +name = "darling" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" +dependencies = [ + "darling_core 0.20.10", + "darling_macro 0.20.10", +] + +[[package]] +name = "darling_core" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim 0.10.0", + "syn 1.0.109", +] + +[[package]] +name = "darling_core" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim 0.11.1", + "syn 2.0.87", +] + +[[package]] +name = "darling_macro" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835" +dependencies = [ + "darling_core 0.13.4", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "darling_macro" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" +dependencies = [ + "darling_core 0.20.10", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "dashmap" +version = "5.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" +dependencies = [ + "cfg-if", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", +] + +[[package]] +name = "data-encoding" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" + +[[package]] +name = "der" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6919815d73839e7ad218de758883aae3a257ba6759ce7a9992501efbb53d705c" +dependencies = [ + "const-oid 0.7.1", +] + +[[package]] +name = "der-parser" +version = "8.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom", + "num-bigint 0.4.6", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "deranged" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" +dependencies = [ + "powerfmt", +] + +[[package]] +name = "derivation-path" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "dialoguer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59c6f2989294b9a498d3ad5491a79c6deb604617378e1cdc4bfc1c1361fe2f87" +dependencies = [ + "console", + "shell-words", + "tempfile", + "zeroize", +] + +[[package]] +name = "diff" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "const-oid 0.9.6", + "crypto-common", + "subtle", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "dlopen2" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cbae11b3de8fce2a456e8ea3dada226b35fe791f0dc1d360c0941f0bb681f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "eager" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe71d579d1812060163dff96056261deb5bf6729b100fa2e36a68b9649ba3d3" + +[[package]] +name = "ecdsa" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d69ae62e0ce582d56380743515fefaf1a8c70cec685d9677636d7e30ae9dc9" +dependencies = [ + "der", + "elliptic-curve", + "rfc6979", + "signature 1.4.0", +] + +[[package]] +name = "ed25519" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +dependencies = [ + "signature 1.4.0", +] + +[[package]] +name = "ed25519" +version = "2.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60f6d271ca33075c88028be6f04d502853d63a5ece419d269c15315d4fc1cf1d" +dependencies = [ + "signature 2.2.0", +] + +[[package]] +name = "ed25519-compact" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9b3460f44bea8cd47f45a0c70892f1eff856d97cd55358b2f73f663789f6190" +dependencies = [ + "ct-codecs", + "ed25519 2.2.2", + "getrandom 0.2.15", +] + +[[package]] +name = "ed25519-dalek" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +dependencies = [ + "curve25519-dalek 3.2.0", + "ed25519 1.5.3", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "zeroize", +] + +[[package]] +name = "ed25519-dalek-bip32" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908" +dependencies = [ + "derivation-path", + "ed25519-dalek", + "hmac 0.12.1", + "sha2 0.10.8", +] + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + +[[package]] +name = "elliptic-curve" +version = "0.11.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25b477563c2bfed38a3b7a60964c49e058b2510ad3f12ba3483fd8f62c2306d6" +dependencies = [ + "base16ct", + "crypto-bigint", + "der", + "ff", + "generic-array", + "group", + "rand_core 0.6.4", + "sec1", + "subtle", + "zeroize", +] + +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "enum-iterator" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fd242f399be1da0a5354aa462d57b4ab2b4ee0683cc552f7c007d2d12d36e94" +dependencies = [ + "enum-iterator-derive", +] + +[[package]] +name = "enum-iterator-derive" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "env_logger" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "errno" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "event-listener" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" + +[[package]] +name = "event-listener" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener 5.4.0", + "pin-project-lite", +] + +[[package]] +name = "fast-math" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2465292146cdfc2011350fe3b1c616ac83cf0faeedb33463ba1c332ed8948d66" +dependencies = [ + "ieee754", +] + +[[package]] +name = "fastbloom" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27cea6e7f512d43b098939ff4d5a5d6fe3db07971e1d05176fe26c642d33f5b8" +dependencies = [ + "getrandom 0.3.3", + "rand 0.9.1", + "siphasher 1.0.1", + "wide", +] + +[[package]] +name = "fastrand" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" + +[[package]] +name = "feature-probe" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" + +[[package]] +name = "ff" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "131655483be284720a17d74ff97592b8e76576dc25563148601df2d7c9080924" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "five8_const" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26dec3da8bc3ef08f2c04f61eab298c3ab334523e55f076354d6d6f613799a7b" +dependencies = [ + "five8_core", +] + +[[package]] +name = "five8_core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2551bf44bc5f776c15044b9b94153a00198be06743e262afaaa61f11ac7523a5" + +[[package]] +name = "fixedbitset" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" + +[[package]] +name = "flate2" +version = "1.0.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "float_eq" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28a80e3145d8ad11ba0995949bbcf48b9df2be62772b3d351ef017dff6ecb853" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-timer" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "gethostname" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "wasi 0.14.2+wasi-0.2.4", + "wasm-bindgen", +] + +[[package]] +name = "gimli" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" + +[[package]] +name = "governor" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68a7f542ee6b35af73b06abc0dad1c1bae89964e4e253bc4b587b91c9637867b" +dependencies = [ + "cfg-if", + "dashmap", + "futures", + "futures-timer", + "no-std-compat", + "nonzero_ext", + "parking_lot", + "portable-atomic", + "quanta", + "rand 0.8.5", + "smallvec", + "spinning_top", +] + +[[package]] +name = "group" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc5ac374b108929de78460075f3dc439fa66df9d8fc77e8f12caa5165fcf0c89" +dependencies = [ + "ff", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "h2" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http", + "indexmap 2.9.0", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "h3o" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de3592e1f699692aa0525c42ff7879ec3ee7e36329af20967bc910a1cdc39c7" +dependencies = [ + "ahash 0.8.11", + "either", + "float_eq", + "h3o-bit", + "libm", + "serde", + "serde_repr", +] + +[[package]] +name = "h3o-bit" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fb45e8060378c0353781abf67e1917b545a6b710d0342d85b70c125af7ef320" + +[[package]] +name = "hash32" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" +dependencies = [ + "byteorder", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +dependencies = [ + "ahash 0.7.8", +] + +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash 0.8.11", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "helium-config-service-cli" +version = "0.1.0" +dependencies = [ + "angry-purple-tiger", + "anyhow", + "async-trait", + "clap", + "dialoguer", + "futures", + "h3o", + "helium-crypto", + "helium-lib", + "helium-proto", + "ipnet", + "pretty_assertions", + "prost", + "rand 0.8.5", + "serde", + "serde_json", + "serde_test", + "serde_with 1.14.0", + "temp-dir", + "thiserror 1.0.68", + "tokio", + "tokio-stream", + "tonic", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "helium-crypto" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "688f69ca15100f29ce9ab8ee7c5701afeabf8c8b003b0b85b06249159ffc953b" +dependencies = [ + "base64 0.22.1", + "bs58", + "byteorder", + "ed25519-compact", + "k256", + "lazy_static", + "p256", + "rand_core 0.6.4", + "rsa", + "serde", + "sha2 0.10.8", + "signature 1.4.0", + "thiserror 1.0.68", +] + +[[package]] +name = "helium-lib" +version = "0.1.1" +source = "git+https://github.com/helium/helium-wallet-rs?branch=master#82cf951e3fd552c72ad6ab3622658649cd17f50c" +dependencies = [ + "anchor-client", + "anchor-lang", + "anchor-spl", + "angry-purple-tiger", + "async-trait", + "base64 0.21.7", + "bincode", + "bytemuck", + "chrono", + "futures", + "h3o", + "helium-crypto", + "helium-proto", + "hex", + "itertools 0.14.0", + "jsonrpc_client", + "lazy_static", + "pyth-solana-receiver-sdk", + "reqwest", + "rust_decimal", + "serde", + "serde_json", + "sha2 0.10.8", + "solana-client", + "solana-program", + "solana-sdk", + "solana-transaction-status", + "solana-transaction-utils", + "spl-associated-token-account", + "spl-memo", + "thiserror 1.0.68", + "tonic", + "tracing", + "url", +] + +[[package]] +name = "helium-proto" +version = "0.1.0" +source = "git+https://github.com/helium/proto?branch=master#ddc23d5b19b56d4725f94005e6f89bf8fc516043" +dependencies = [ + "bytes", + "prost", + "prost-build", + "serde", + "serde_json", + "strum", + "strum_macros", + "tonic", + "tonic-build", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hermit-abi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +dependencies = [ + "serde", +] + +[[package]] +name = "histogram" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12cb882ccb290b8646e554b157ab0b71e64e8d5bef775cd66b6531e52d302669" + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac 0.8.0", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" +dependencies = [ + "crypto-mac 0.11.0", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "hmac-drbg" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" +dependencies = [ + "digest 0.9.0", + "generic-array", + "hmac 0.8.1", +] + +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "hyper" +version = "0.14.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c08302e8fa335b151b788c775ff56e7a03ae64ff85c548ee820fecb70356e85" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" +dependencies = [ + "futures-util", + "http", + "hyper", + "rustls 0.21.12", + "tokio", + "tokio-rustls", +] + +[[package]] +name = "hyper-timeout" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +dependencies = [ + "hyper", + "pin-project-lite", + "tokio", + "tokio-io-timeout", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "ieee754" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9007da9cacbd3e6343da136e98b0d2df013f553d35bdec8b518f07bea768e19c" + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", +] + +[[package]] +name = "indexmap" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" +dependencies = [ + "equivalent", + "hashbrown 0.15.1", +] + +[[package]] +name = "indicatif" +version = "0.17.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "183b3088984b400f4cfac3620d5e076c84da5364016b4f49473de574b2586235" +dependencies = [ + "console", + "number_prefix", + "portable-atomic", + "unicode-width 0.2.0", + "web-time", +] + +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "generic-array", +] + +[[package]] +name = "ipnet" +version = "2.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine 4.6.7", + "jni-sys", + "log", + "thiserror 1.0.68", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "jobserver" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" +dependencies = [ + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "jsonrpc-core" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb" +dependencies = [ + "futures", + "futures-executor", + "futures-util", + "log", + "serde", + "serde_derive", + "serde_json", +] + +[[package]] +name = "jsonrpc_client" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c1ec33c537dc1d5a8b597313db6d213fee54320f81ea0d19b0c3869b282e1a" +dependencies = [ + "async-trait", + "jsonrpc_client_macro", + "reqwest", + "serde", + "serde_json", + "url", +] + +[[package]] +name = "jsonrpc_client_macro" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97c11e429f0eaa41fe659013680b459d2368d8f0a3e69dccfb7a35800b0dc27b" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "k256" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19c3a5e0a0b8450278feda242592512e09f61c72e018b8cd5c859482802daf2d" +dependencies = [ + "cfg-if", + "ecdsa", + "elliptic-curve", + "sec1", + "sha2 0.9.9", +] + +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +dependencies = [ + "spin", +] + +[[package]] +name = "libc" +version = "0.2.172" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" + +[[package]] +name = "libm" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" + +[[package]] +name = "libsecp256k1" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" +dependencies = [ + "arrayref", + "base64 0.12.3", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core", + "libsecp256k1-gen-ecmult", + "libsecp256k1-gen-genmult", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "typenum", +] + +[[package]] +name = "libsecp256k1-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "linux-raw-sys" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" + +[[package]] +name = "litemap" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" + +[[package]] +name = "lock_api" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "matchit" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" + +[[package]] +name = "md5" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "memmap2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + +[[package]] +name = "miette" +version = "7.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7" +dependencies = [ + "cfg-if", + "miette-derive", + "unicode-width 0.1.14", +] + +[[package]] +name = "miette-derive" +version = "7.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" +dependencies = [ + "adler2", +] + +[[package]] +name = "mio" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" +dependencies = [ + "hermit-abi 0.3.9", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.52.0", +] + +[[package]] +name = "multimap" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags 2.9.1", + "cfg-if", + "cfg_aliases", + "libc", + "memoffset", +] + +[[package]] +name = "no-std-compat" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c" + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "nonzero_ext" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21" + +[[package]] +name = "nu-ansi-term" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +dependencies = [ + "overload", + "winapi", +] + +[[package]] +name = "num" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8536030f9fea7127f841b45bb6243b27255787fb4eb83958aa1ef9d2fdc0c36" +dependencies = [ + "num-bigint 0.2.6", + "num-complex 0.2.4", + "num-integer", + "num-iter", + "num-rational 0.2.4", + "num-traits", +] + +[[package]] +name = "num" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" +dependencies = [ + "num-bigint 0.4.6", + "num-complex 0.4.6", + "num-integer", + "num-iter", + "num-rational 0.4.2", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-bigint-dig" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9bc3e36fd683e004fd59c64a425e0e991616f5a8b617c3b9a933a93c168facc" +dependencies = [ + "byteorder", + "lazy_static", + "libm", + "num-integer", + "num-iter", + "num-traits", + "rand 0.8.5", + "smallvec", + "zeroize", +] + +[[package]] +name = "num-complex" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" +dependencies = [ + "autocfg", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" +dependencies = [ + "autocfg", + "num-bigint 0.2.6", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" +dependencies = [ + "num-bigint 0.4.6", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_cpus" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" +dependencies = [ + "hermit-abi 0.3.9", + "libc", +] + +[[package]] +name = "num_enum" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" +dependencies = [ + "num_enum_derive", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" +dependencies = [ + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "number_prefix" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" + +[[package]] +name = "object" +version = "0.36.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" +dependencies = [ + "memchr", +] + +[[package]] +name = "oid-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" +dependencies = [ + "asn1-rs", +] + +[[package]] +name = "once_cell" +version = "1.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "openssl" +version = "0.10.72" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da" +dependencies = [ + "bitflags 2.9.1", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "openssl-probe" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" + +[[package]] +name = "openssl-src" +version = "300.5.0+3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8ce546f549326b0e6052b649198487d91320875da901e7bd11a06d1ee3f9c2f" +dependencies = [ + "cc", +] + +[[package]] +name = "openssl-sys" +version = "0.9.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e145e1651e858e820e4860f7b9c5e169bc1d8ce1c86043be79fa7b7634821847" +dependencies = [ + "cc", + "libc", + "openssl-src", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" + +[[package]] +name = "p256" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19736d80675fbe9fe33426268150b951a3fb8f5cfca2a23a17c85ef3adb24e3b" +dependencies = [ + "ecdsa", + "elliptic-curve", + "sec1", + "sha2 0.9.9", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets 0.52.6", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pbkdf2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "pem" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56cbd21fea48d0c440b41cd69c589faacade08c992d9a54e471b79d0fd13eb" +dependencies = [ + "base64 0.13.1", + "once_cell", + "regex", +] + +[[package]] +name = "pem" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8835c273a76a90455d7344889b0964598e3316e2a79ede8e36f16bdcf2228b8" +dependencies = [ + "base64 0.13.1", +] + +[[package]] +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "percentage" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fd23b938276f14057220b707937bcb42fa76dda7560e57a2da30cb52d557937" +dependencies = [ + "num 0.2.1", +] + +[[package]] +name = "petgraph" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" +dependencies = [ + "fixedbitset", + "indexmap 2.9.0", +] + +[[package]] +name = "pin-project" +version = "1.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" + +[[package]] +name = "polyval" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" +dependencies = [ + "cfg-if", + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "portable-atomic" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "pretty_assertions" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d" +dependencies = [ + "diff", + "yansi", +] + +[[package]] +name = "prettyplease" +version = "0.2.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" +dependencies = [ + "proc-macro2", + "syn 2.0.87", +] + +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml 0.5.11", +] + +[[package]] +name = "proc-macro-crate" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prost" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" +dependencies = [ + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-build" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" +dependencies = [ + "bytes", + "heck 0.5.0", + "itertools 0.12.1", + "log", + "multimap", + "once_cell", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "regex", + "syn 2.0.87", + "tempfile", +] + +[[package]] +name = "prost-derive" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" +dependencies = [ + "anyhow", + "itertools 0.12.1", + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "prost-types" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" +dependencies = [ + "prost", +] + +[[package]] +name = "ptr_meta" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" +dependencies = [ + "ptr_meta_derive", +] + +[[package]] +name = "ptr_meta_derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "pyth-solana-receiver-sdk" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb47105ed00f2ac09d9a297b5e4e1879981324d8633a177c4d6b0958a5a63d7b" +dependencies = [ + "anchor-lang", + "bytemuck_derive", + "hex", + "pythnet-sdk", + "solana-program", +] + +[[package]] +name = "pythnet-sdk" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498d20fd330277697aaee92f341bdabdb4695b10e05f054157a18ad8b7746a17" +dependencies = [ + "anchor-lang", + "bincode", + "borsh 0.10.4", + "bytemuck", + "byteorder", + "fast-math", + "hex", + "rustc_version", + "serde", + "sha3", + "slow_primes", + "solana-program", + "thiserror 1.0.68", +] + +[[package]] +name = "qstring" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "quanta" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1fe6824cea6538803de3ff1bc0cf3949024db3d43c9643024bfb33a807c0e" +dependencies = [ + "crossbeam-utils", + "libc", + "once_cell", + "raw-cpuid", + "wasi 0.11.0+wasi-snapshot-preview1", + "web-sys", + "winapi", +] + +[[package]] +name = "quinn" +version = "0.11.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626214629cda6781b6dc1d316ba307189c85ba657213ce642d9c77670f8202c8" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls 0.23.27", + "socket2", + "thiserror 2.0.12", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49df843a9161c85bb8aae55f101bc0bac8bcafd637a620d9122fd7e0b2f7422e" +dependencies = [ + "bytes", + "fastbloom", + "getrandom 0.3.3", + "lru-slab", + "rand 0.9.1", + "ring", + "rustc-hash", + "rustls 0.23.27", + "rustls-pki-types", + "rustls-platform-verifier", + "slab", + "thiserror 2.0.12", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee4e529991f949c5e25755532370b8af5d114acae52326361d68d47af64aa842" +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 = "r-efi" +version = "5.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" + +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + +[[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" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.3", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.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_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.3", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.15", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom 0.3.3", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "raw-cpuid" +version = "11.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6df7ab838ed27997ba19a4664507e6f82b41fe6e20be42929332156e5e85146" +dependencies = [ + "bitflags 2.9.1", +] + +[[package]] +name = "rayon" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" +dependencies = [ + "bitflags 2.9.1", +] + +[[package]] +name = "regex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" + +[[package]] +name = "rend" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" +dependencies = [ + "bytecheck", +] + +[[package]] +name = "reqwest" +version = "0.11.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" +dependencies = [ + "async-compression", + "base64 0.21.7", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "hyper", + "hyper-rustls", + "ipnet", + "js-sys", + "log", + "mime", + "mime_guess", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls 0.21.12", + "rustls-pemfile", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "system-configuration", + "tokio", + "tokio-rustls", + "tokio-util", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots 0.25.4", + "winreg", +] + +[[package]] +name = "reqwest-middleware" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a735987236a8e238bf0296c7e351b999c188ccc11477f311b82b55c93984216" +dependencies = [ + "anyhow", + "async-trait", + "http", + "reqwest", + "serde", + "task-local-extensions", + "thiserror 1.0.68", +] + +[[package]] +name = "rfc6979" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96ef608575f6392792f9ecf7890c00086591d29a83910939d430753f7c050525" +dependencies = [ + "crypto-bigint", + "hmac 0.11.0", + "zeroize", +] + +[[package]] +name = "ring" +version = "0.17.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.15", + "libc", + "spin", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rkyv" +version = "0.7.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b" +dependencies = [ + "bitvec", + "bytecheck", + "bytes", + "hashbrown 0.12.3", + "ptr_meta", + "rend", + "rkyv_derive", + "seahash", + "tinyvec", + "uuid", +] + +[[package]] +name = "rkyv_derive" +version = "0.7.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "503d1d27590a2b0a3a4ca4c94755aa2875657196ecbf401a42eff41d7de532c0" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "rsa" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ef841a26fc5d040ced0417c6c6a64ee851f42489df11cdf0218e545b6f8d28" +dependencies = [ + "byteorder", + "digest 0.9.0", + "lazy_static", + "num-bigint-dig", + "num-integer", + "num-iter", + "num-traits", + "pem 0.8.3", + "rand 0.8.5", + "simple_asn1", + "subtle", + "zeroize", +] + +[[package]] +name = "rust_decimal" +version = "1.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b082d80e3e3cc52b2ed634388d436fe1f4de6af5786cc2de9ba9737527bdf555" +dependencies = [ + "arrayvec", + "borsh 1.5.7", + "bytes", + "num-traits", + "rand 0.8.5", + "rkyv", + "serde", + "serde_json", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" + +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom", +] + +[[package]] +name = "rustix" +version = "0.38.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "375116bee2be9ed569afe2154ea6a99dfdffd257f533f187498c2a8f5feaf4ee" +dependencies = [ + "bitflags 2.9.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustls" +version = "0.21.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" +dependencies = [ + "log", + "ring", + "rustls-webpki 0.101.7", + "sct", +] + +[[package]] +name = "rustls" +version = "0.23.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "730944ca083c1c233a75c09f199e973ca499344a2b7ba9e755c457e86fb4a321" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki 0.103.3", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" +dependencies = [ + "openssl-probe", + "rustls-pemfile", + "schannel", + "security-framework 2.11.1", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework 3.2.0", +] + +[[package]] +name = "rustls-pemfile" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +dependencies = [ + "base64 0.21.7", +] + +[[package]] +name = "rustls-pki-types" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19787cda76408ec5404443dc8b31795c87cd8fec49762dc75fa727740d34acc1" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls 0.23.27", + "rustls-native-certs 0.8.1", + "rustls-platform-verifier-android", + "rustls-webpki 0.103.3", + "security-framework 3.2.0", + "security-framework-sys", + "webpki-root-certs 0.26.11", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" + +[[package]] +name = "ryu" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" + +[[package]] +name = "safe_arch" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01227be5826fa0690321a2ba6c5cd57a19cf3f6a09e76973b58e61de6ab9d1c1" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sct" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "seahash" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" + +[[package]] +name = "sec1" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08da66b8b0965a5555b6bd6639e68ccba85e1e2506f5fbb089e93f8a04e1a2d1" +dependencies = [ + "der", + "generic-array", + "subtle", + "zeroize", +] + +[[package]] +name = "security-framework" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +dependencies = [ + "bitflags 2.9.1", + "core-foundation 0.9.4", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271720403f46ca04f7ba6f55d438f8bd878d6b8ca0a1046e8228c4145bcbb316" +dependencies = [ + "bitflags 2.9.1", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" + +[[package]] +name = "serde" +version = "1.0.219" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde-big-array" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11fc7cc2c76d73e0f27ee52abbd64eec84d46f370c88371120433196934e4b7f" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_bytes" +version = "0.11.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.219" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "serde_json" +version = "1.0.140" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", +] + +[[package]] +name = "serde_repr" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "serde_spanned" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_test" +version = "1.0.177" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f901ee573cab6b3060453d2d5f0bae4e6d628c23c0a962ff9b5f1d7c8d4f1ed" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "678b5a069e50bf00ecd22d0cd8ddf7c236f68581b03db652061ed5eb13a312ff" +dependencies = [ + "serde", + "serde_with_macros 1.5.2", +] + +[[package]] +name = "serde_with" +version = "3.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6b6f7f2fcb69f747921f79f3926bd1e203fce4fef62c268dd3abfb6d86029aa" +dependencies = [ + "serde", + "serde_derive", + "serde_with_macros 3.12.0", +] + +[[package]] +name = "serde_with_macros" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e182d6ec6f05393cc0e5ed1bf81ad6db3a8feedf8ee515ecdd369809bcce8082" +dependencies = [ + "darling 0.13.4", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "serde_with_macros" +version = "3.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d00caa5193a3c8362ac2b73be6b9e768aa5a4b2f721d8f4b339600c3cb51f8e" +dependencies = [ + "darling 0.20.10", + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures", + "digest 0.9.0", + "opaque-debug", +] + +[[package]] +name = "sha2" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest 0.10.7", + "keccak", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shell-words" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" +dependencies = [ + "libc", +] + +[[package]] +name = "signature" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02658e48d89f2bec991f9a78e69cfa4c316f8d6a6c4ec12fae1aeb263d486788" +dependencies = [ + "digest 0.9.0", + "rand_core 0.6.4", +] + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "simple_asn1" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eb4ea60fb301dc81dfc113df680571045d375ab7345d171c5dc7d7e13107a80" +dependencies = [ + "chrono", + "num-bigint 0.4.6", + "num-traits", + "thiserror 1.0.68", +] + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "siphasher" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" + +[[package]] +name = "slab" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] + +[[package]] +name = "slow_primes" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58267dd2fbaa6dceecba9e3e106d2d90a2b02497c0e8b01b8759beccf5113938" +dependencies = [ + "num 0.4.3", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "solana-account" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f949fe4edaeaea78c844023bfc1c898e0b1f5a100f8a8d2d0f85d0a7b090258" +dependencies = [ + "bincode", + "serde", + "serde_bytes", + "serde_derive", + "solana-account-info", + "solana-clock", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-sysvar", +] + +[[package]] +name = "solana-account-decoder" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc13737697fe2ab4475bcae71525e37abd2b357a12dc68fc3e0938dd1a0dcbfd" +dependencies = [ + "Inflector", + "base64 0.22.1", + "bincode", + "bs58", + "bv", + "lazy_static", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-account-decoder-client-types", + "solana-clock", + "solana-config-program", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-instruction", + "solana-nonce", + "solana-program", + "solana-program-pack", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-slot-hashes", + "solana-slot-history", + "solana-sysvar", + "spl-token", + "spl-token-2022 7.0.0", + "spl-token-group-interface", + "spl-token-metadata-interface", + "thiserror 2.0.12", + "zstd", +] + +[[package]] +name = "solana-account-decoder-client-types" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c5d7d0f1581d98a869f2569122ded67e0735f3780d787b3e7653bdcd1708a2" +dependencies = [ + "base64 0.22.1", + "bs58", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-pubkey", + "zstd", ] [[package]] -name = "anstyle-wincon" -version = "1.0.1" +name = "solana-account-info" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" +checksum = "e0c17d606a298a205fae325489fbed88ee6dc4463c111672172327e741c8905d" dependencies = [ - "anstyle", - "windows-sys 0.48.0", + "bincode", + "serde", + "solana-program-error", + "solana-program-memory", + "solana-pubkey", ] [[package]] -name = "anyhow" -version = "1.0.71" +name = "solana-address-lookup-table-interface" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" +checksum = "d1673f67efe870b64a65cb39e6194be5b26527691ce5922909939961a6e6b395" +dependencies = [ + "bincode", + "bytemuck", + "serde", + "serde_derive", + "solana-clock", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-slot-hashes", +] [[package]] -name = "async-stream" -version = "0.3.5" +name = "solana-atomic-u64" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" +checksum = "d52e52720efe60465b052b9e7445a01c17550666beec855cce66f44766697bc2" dependencies = [ - "async-stream-impl", - "futures-core", - "pin-project-lite", + "parking_lot", ] [[package]] -name = "async-stream-impl" -version = "0.3.5" +name = "solana-big-mod-exp" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" +checksum = "75db7f2bbac3e62cfd139065d15bcda9e2428883ba61fc8d27ccb251081e7567" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.15", + "num-bigint 0.4.6", + "num-traits", + "solana-define-syscall", ] [[package]] -name = "async-trait" -version = "0.1.68" +name = "solana-bincode" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" +checksum = "19a3787b8cf9c9fe3dd360800e8b70982b9e5a8af9e11c354b6665dd4a003adc" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.15", + "bincode", + "serde", + "solana-instruction", ] [[package]] -name = "auto_ops" -version = "0.3.0" +name = "solana-blake3-hasher" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7460f7dd8e100147b82a63afca1a20eb6c231ee36b90ba7272e14951cb58af59" +checksum = "a1a0801e25a1b31a14494fc80882a036be0ffd290efc4c2d640bfcca120a4672" +dependencies = [ + "blake3", + "solana-define-syscall", + "solana-hash", + "solana-sanitize", +] [[package]] -name = "autocfg" -version = "1.1.0" +name = "solana-bn254" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "4420f125118732833f36facf96a27e7b78314b2d642ba07fa9ffdacd8d79e243" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", + "bytemuck", + "solana-define-syscall", + "thiserror 2.0.12", +] [[package]] -name = "axum" -version = "0.6.18" +name = "solana-borsh" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8175979259124331c1d7bf6586ee7e0da434155e4b2d48ec2c8386281d8df39" +checksum = "718333bcd0a1a7aed6655aa66bef8d7fb047944922b2d3a18f49cbc13e73d004" dependencies = [ - "async-trait", - "axum-core", - "bitflags", - "bytes", - "futures-util", - "http", - "http-body", - "hyper", - "itoa", - "matchit", - "memchr", - "mime", - "percent-encoding", - "pin-project-lite", - "rustversion", - "serde", - "sync_wrapper", - "tower", - "tower-layer", - "tower-service", + "borsh 0.10.4", + "borsh 1.5.7", ] [[package]] -name = "axum-core" -version = "0.3.4" +name = "solana-client" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c" +checksum = "d32a6ae5a74f13425eb0f8503b9a2c0bf59581e98deeee2d0555dfe6f05502c9" dependencies = [ "async-trait", - "bytes", + "bincode", + "dashmap", + "futures", "futures-util", - "http", - "http-body", - "mime", - "rustversion", - "tower-layer", - "tower-service", + "indexmap 2.9.0", + "indicatif", + "log", + "quinn", + "rayon", + "solana-account", + "solana-client-traits", + "solana-commitment-config", + "solana-connection-cache", + "solana-epoch-info", + "solana-hash", + "solana-instruction", + "solana-keypair", + "solana-measure", + "solana-message", + "solana-pubkey", + "solana-pubsub-client", + "solana-quic-client", + "solana-quic-definitions", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-rpc-client-nonce-utils", + "solana-signature", + "solana-signer", + "solana-streamer", + "solana-thin-client", + "solana-time-utils", + "solana-tpu-client", + "solana-transaction", + "solana-transaction-error", + "solana-udp-client", + "thiserror 2.0.12", + "tokio", ] [[package]] -name = "base16ct" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" - -[[package]] -name = "base64" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" - -[[package]] -name = "bitflags" -version = "1.3.2" +name = "solana-client-traits" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +checksum = "83f0071874e629f29e0eb3dab8a863e98502ac7aba55b7e0df1803fc5cac72a7" +dependencies = [ + "solana-account", + "solana-commitment-config", + "solana-epoch-info", + "solana-hash", + "solana-instruction", + "solana-keypair", + "solana-message", + "solana-pubkey", + "solana-signature", + "solana-signer", + "solana-system-interface", + "solana-transaction", + "solana-transaction-error", +] [[package]] -name = "block-buffer" -version = "0.9.0" +name = "solana-clock" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +checksum = "67c2177a1b9fe8326004f1151a5acd124420b737811080b1035df31349e4d892" dependencies = [ - "generic-array", + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", ] [[package]] -name = "block-buffer" -version = "0.10.4" +name = "solana-cluster-type" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +checksum = "7ace9fea2daa28354d107ea879cff107181d85cd4e0f78a2bedb10e1a428c97e" dependencies = [ - "generic-array", + "serde", + "serde_derive", + "solana-hash", ] [[package]] -name = "bs58" -version = "0.4.0" +name = "solana-commitment-config" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" +checksum = "ac49c4dde3edfa832de1697e9bcdb7c3b3f7cb7a1981b7c62526c8bb6700fb73" dependencies = [ - "sha2 0.9.9", + "serde", + "serde_derive", ] [[package]] -name = "bumpalo" -version = "3.12.1" +name = "solana-compute-budget" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1ce199063694f33ffb7dd4e0ee620741495c32833cde5aa08f02a0bf96f0c8" +checksum = "a7da7ab5302549d9c6bf399c69a7072abeca78d252d9b7a146be34bf6f8b51e6" +dependencies = [ + "solana-fee-structure", + "solana-program-entrypoint", +] [[package]] -name = "bytes" -version = "1.4.0" +name = "solana-compute-budget-interface" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" +checksum = "8432d2c4c22d0499aa06d62e4f7e333f81777b3d7c96050ae9e5cb71a8c3aee4" +dependencies = [ + "borsh 1.5.7", + "serde", + "serde_derive", + "solana-instruction", + "solana-sdk-ids", +] [[package]] -name = "cc" -version = "1.0.79" +name = "solana-config-program" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "4072ff53d982deb87be1c15136b0aa9ead472f15eaefdd23d8174d49371e0112" +dependencies = [ + "bincode", + "chrono", + "serde", + "serde_derive", + "solana-account", + "solana-bincode", + "solana-instruction", + "solana-log-collector", + "solana-packet", + "solana-program-runtime", + "solana-pubkey", + "solana-sdk-ids", + "solana-short-vec", + "solana-stake-interface", + "solana-system-interface", + "solana-transaction-context", +] [[package]] -name = "cfg-if" -version = "1.0.0" +name = "solana-connection-cache" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +checksum = "240bc217ca05f3e1d1d88f1cfda14b785a02288a630419e4a0ecd6b4fa5094b7" +dependencies = [ + "async-trait", + "bincode", + "crossbeam-channel", + "futures-util", + "indexmap 2.9.0", + "log", + "rand 0.8.5", + "rayon", + "solana-keypair", + "solana-measure", + "solana-metrics", + "solana-net-utils", + "solana-time-utils", + "solana-transaction-error", + "thiserror 2.0.12", + "tokio", +] [[package]] -name = "clap" -version = "4.2.7" +name = "solana-cpi" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34d21f9bf1b425d2968943631ec91202fe5e837264063503708b83013f8fc938" +checksum = "8dc71126edddc2ba014622fc32d0f5e2e78ec6c5a1e0eb511b85618c09e9ea11" dependencies = [ - "clap_builder", - "clap_derive", - "once_cell", + "solana-account-info", + "solana-define-syscall", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-stable-layout", ] [[package]] -name = "clap_builder" -version = "4.2.7" +name = "solana-curve25519" +version = "2.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "914c8c79fb560f238ef6429439a30023c862f7a28e688c58f7203f12b29970bd" +checksum = "87c69c23233a6dce77422fe4fb00ca3a5888f1ed58e6f5e3fa4c2402c953e105" dependencies = [ - "anstream", - "anstyle", - "bitflags", - "clap_lex", - "strsim", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "solana-define-syscall", + "subtle", + "thiserror 2.0.12", ] [[package]] -name = "clap_derive" -version = "4.2.0" +name = "solana-decode-error" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9644cd56d6b87dbe899ef8b053e331c0637664e9e21a33dfcdc36093f5c5c4" +checksum = "8c781686a18db2f942e70913f7ca15dc120ec38dcab42ff7557db2c70c625a35" dependencies = [ - "heck", - "proc-macro2", - "quote", - "syn 2.0.15", + "num-traits", ] [[package]] -name = "clap_lex" -version = "0.4.1" +name = "solana-define-syscall" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a2dd5a6fe8c6e3502f568a6353e5273bbb15193ad9a89e457b9970798efbea1" +checksum = "2ae3e2abcf541c8122eafe9a625d4d194b4023c20adde1e251f94e056bb1aee2" [[package]] -name = "colorchoice" -version = "1.0.0" +name = "solana-derivation-path" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" +checksum = "939756d798b25c5ec3cca10e06212bdca3b1443cb9bb740a38124f58b258737b" +dependencies = [ + "derivation-path", + "qstring", + "uriparse", +] [[package]] -name = "console" -version = "0.15.5" +name = "solana-ed25519-program" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d79fbe8970a77e3e34151cc13d3b3e248aa0faaecb9f6091fa07ebefe5ad60" +checksum = "9d0fc717048fdbe5d2ee7d673d73e6a30a094002f4a29ca7630ac01b6bddec04" dependencies = [ - "encode_unicode", - "lazy_static", - "libc", - "unicode-width", - "windows-sys 0.42.0", + "bytemuck", + "bytemuck_derive", + "ed25519-dalek", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-sdk-ids", ] [[package]] -name = "const-oid" -version = "0.9.2" +name = "solana-epoch-info" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913" +checksum = "90ef6f0b449290b0b9f32973eefd95af35b01c5c0c34c569f936c34c5b20d77b" +dependencies = [ + "serde", + "serde_derive", +] [[package]] -name = "const-random" -version = "0.1.15" +name = "solana-epoch-rewards" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368a7a772ead6ce7e1de82bfb04c485f3db8ec744f72925af5735e29a22cc18e" +checksum = "86b575d3dd323b9ea10bb6fe89bf6bf93e249b215ba8ed7f68f1a3633f384db7" dependencies = [ - "const-random-macro", - "proc-macro-hack", + "serde", + "serde_derive", + "solana-hash", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", ] [[package]] -name = "const-random-macro" -version = "0.1.15" +name = "solana-epoch-rewards-hasher" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d7d6ab3c3a2282db210df5f02c4dab6e0a7057af0fb7ebd4070f30fe05c0ddb" +checksum = "96c5fd2662ae7574810904585fd443545ed2b568dbd304b25a31e79ccc76e81b" dependencies = [ - "getrandom", - "once_cell", - "proc-macro-hack", - "tiny-keccak", + "siphasher 0.3.11", + "solana-hash", + "solana-pubkey", ] [[package]] -name = "const_panic" -version = "0.2.8" +name = "solana-epoch-schedule" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6051f239ecec86fde3410901ab7860d458d160371533842974fc61f96d15879b" +checksum = "3fce071fbddecc55d727b1d7ed16a629afe4f6e4c217bc8d00af3b785f6f67ed" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", +] [[package]] -name = "core-foundation" -version = "0.9.3" +name = "solana-example-mocks" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" +checksum = "84461d56cbb8bb8d539347151e0525b53910102e4bced875d49d5139708e39d3" dependencies = [ - "core-foundation-sys", - "libc", + "serde", + "serde_derive", + "solana-address-lookup-table-interface", + "solana-clock", + "solana-hash", + "solana-instruction", + "solana-keccak-hasher", + "solana-message", + "solana-nonce", + "solana-pubkey", + "solana-sdk-ids", + "solana-system-interface", + "thiserror 2.0.12", ] [[package]] -name = "core-foundation-sys" -version = "0.8.4" +name = "solana-feature-gate-interface" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" +checksum = "0f9c7fbf3e58b64a667c5f35e90af580538a95daea7001ff7806c0662d301bdf" +dependencies = [ + "bincode", + "serde", + "serde_derive", + "solana-account", + "solana-account-info", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-system-interface", +] [[package]] -name = "cpufeatures" -version = "0.2.7" +name = "solana-feature-set" +version = "2.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e4c1eaa2012c47becbbad2ab175484c2a84d1185b566fb2cc5b8707343dfe58" +checksum = "93b93971e289d6425f88e6e3cb6668c4b05df78b3c518c249be55ced8efd6b6d" dependencies = [ - "libc", + "ahash 0.8.11", + "lazy_static", + "solana-epoch-schedule", + "solana-hash", + "solana-pubkey", + "solana-sha256-hasher", ] [[package]] -name = "crunchy" -version = "0.2.2" +name = "solana-feature-set-interface" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +checksum = "02007757246e40f10aa936dae4fa27efbf8dbd6a59575a12ccc802c1aea6e708" +dependencies = [ + "ahash 0.8.11", + "solana-pubkey", +] [[package]] -name = "crypto-bigint" -version = "0.5.2" +name = "solana-fee-calculator" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4c2f4e1afd912bc40bfd6fed5d9dc1f288e0ba01bfcc835cc5bc3eb13efe15" +checksum = "d89bc408da0fb3812bc3008189d148b4d3e08252c79ad810b245482a3f70cd8d" dependencies = [ - "generic-array", - "rand_core", - "subtle", - "zeroize", + "log", + "serde", + "serde_derive", ] [[package]] -name = "crypto-common" -version = "0.1.6" +name = "solana-fee-structure" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +checksum = "f45f94a88efdb512805563181dfa1c85c60a21b6e6d602bf24a2ea88f9399d6e" dependencies = [ - "generic-array", - "typenum", + "serde", + "serde_derive", + "solana-message", + "solana-native-token", ] [[package]] -name = "ct-codecs" -version = "1.1.1" +name = "solana-genesis-config" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3b7eb4404b8195a9abb6356f4ac07d8ba267045c8d6d220ac4dc992e6cc75df" - -[[package]] -name = "ctor" -version = "0.1.26" +checksum = "968dabd2b92d57131473eddbd475339da530e14f54397386abf303de3a2595a2" +dependencies = [ + "bincode", + "chrono", + "memmap2", + "serde", + "serde_derive", + "solana-account", + "solana-clock", + "solana-cluster-type", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-hash", + "solana-inflation", + "solana-keypair", + "solana-logger", + "solana-native-token", + "solana-poh-config", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-sha256-hasher", + "solana-shred-version", + "solana-signer", + "solana-time-utils", +] + +[[package]] +name = "solana-hard-forks" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" +checksum = "b6c28371f878e2ead55611d8ba1b5fb879847156d04edea13693700ad1a28baf" dependencies = [ - "quote", - "syn 1.0.109", + "serde", + "serde_derive", ] [[package]] -name = "der" -version = "0.7.5" +name = "solana-hash" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05e58dffcdcc8ee7b22f0c1f71a69243d7c2d9ad87b5a14361f2424a1565c219" +checksum = "cf7bcb14392900fe02e4e34e90234fbf0c673d4e327888410ba99fa2ba0f4e99" dependencies = [ - "const-oid", - "zeroize", + "borsh 1.5.7", + "bs58", + "bytemuck", + "bytemuck_derive", + "js-sys", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-sanitize", + "wasm-bindgen", ] [[package]] -name = "dialoguer" -version = "0.10.4" +name = "solana-inflation" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59c6f2989294b9a498d3ad5491a79c6deb604617378e1cdc4bfc1c1361fe2f87" +checksum = "23eef6a09eb8e568ce6839573e4966850e85e9ce71e6ae1a6c930c1c43947de3" dependencies = [ - "console", - "shell-words", - "tempfile", - "zeroize", + "serde", + "serde_derive", ] [[package]] -name = "diff" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" - -[[package]] -name = "digest" -version = "0.9.0" +name = "solana-inline-spl" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +checksum = "eaac98c150932bba4bfbef5b52fae9ef445f767d66ded2f1398382149bc94f69" dependencies = [ - "generic-array", + "bytemuck", + "solana-pubkey", ] -[[package]] -name = "digest" -version = "0.10.6" +[[package]] +name = "solana-instruction" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +checksum = "9ce496a475e5062ba5de97215ab39d9c358f9c9df4bb7f3a45a1f1a8bd9065ed" dependencies = [ - "block-buffer 0.10.4", - "const-oid", - "crypto-common", - "subtle", + "bincode", + "borsh 1.5.7", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-define-syscall", + "solana-pubkey", + "wasm-bindgen", ] [[package]] -name = "ecdsa" -version = "0.16.6" +name = "solana-instructions-sysvar" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a48e5d537b8a30c0b023116d981b16334be1485af7ca68db3a2b7024cbc957fd" +checksum = "e0e85a6fad5c2d0c4f5b91d34b8ca47118fc593af706e523cdbedf846a954f57" dependencies = [ - "der", - "digest 0.10.6", - "elliptic-curve", - "rfc6979", - "signature 2.1.0", + "bitflags 2.9.1", + "solana-account-info", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-sanitize", + "solana-sdk-ids", + "solana-serialize-utils", + "solana-sysvar-id", ] [[package]] -name = "ed25519" -version = "1.5.3" +name = "solana-keccak-hasher" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +checksum = "c7aeb957fbd42a451b99235df4942d96db7ef678e8d5061ef34c9b34cae12f79" dependencies = [ - "signature 1.6.4", + "sha3", + "solana-define-syscall", + "solana-hash", + "solana-sanitize", ] [[package]] -name = "ed25519" +name = "solana-keypair" version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fb04eee5d9d907f29e80ee6b0e78f7e2c82342c63e3580d8c4f69d9d5aad963" +checksum = "3dbb7042c2e0c561afa07242b2099d55c57bd1b1da3b6476932197d84e15e3e4" dependencies = [ - "signature 2.1.0", + "bs58", + "ed25519-dalek", + "ed25519-dalek-bip32", + "rand 0.7.3", + "solana-derivation-path", + "solana-pubkey", + "solana-seed-derivable", + "solana-seed-phrase", + "solana-signature", + "solana-signer", + "wasm-bindgen", ] [[package]] -name = "ed25519-compact" -version = "2.0.4" +name = "solana-last-restart-slot" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a3d382e8464107391c8706b4c14b087808ecb909f6c15c34114bc42e53a9e4c" +checksum = "4a6360ac2fdc72e7463565cd256eedcf10d7ef0c28a1249d261ec168c1b55cdd" dependencies = [ - "ct-codecs", - "ed25519 1.5.3", - "getrandom", + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", ] [[package]] -name = "either" -version = "1.8.1" +name = "solana-loader-v2-interface" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "d8ab08006dad78ae7cd30df8eea0539e207d08d91eaefb3e1d49a446e1c49654" +dependencies = [ + "serde", + "serde_bytes", + "serde_derive", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", +] [[package]] -name = "elliptic-curve" -version = "0.13.4" +name = "solana-loader-v3-interface" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75c71eaa367f2e5d556414a8eea812bc62985c879748d6403edabd9cb03f16e7" +checksum = "fa4be76cfa9afd84ca2f35ebc09f0da0f0092935ccdac0595d98447f259538c2" dependencies = [ - "base16ct", - "crypto-bigint", - "digest 0.10.6", - "ff", - "generic-array", - "group", - "hkdf", - "rand_core", - "sec1", - "subtle", - "zeroize", + "serde", + "serde_bytes", + "serde_derive", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-system-interface", ] [[package]] -name = "encode_unicode" -version = "0.3.6" +name = "solana-loader-v4-interface" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" +checksum = "706a777242f1f39a83e2a96a2a6cb034cb41169c6ecbee2cf09cb873d9659e7e" +dependencies = [ + "serde", + "serde_bytes", + "serde_derive", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-system-interface", +] [[package]] -name = "errno" -version = "0.3.1" +name = "solana-log-collector" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" +checksum = "45d5713845622a6059a172ea390c2a7f7eb50355cfb0cfa18a38a18ecb39c2f1" dependencies = [ - "errno-dragonfly", - "libc", - "windows-sys 0.48.0", + "log", ] [[package]] -name = "errno-dragonfly" -version = "0.1.2" +name = "solana-logger" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +checksum = "db8e777ec1afd733939b532a42492d888ec7c88d8b4127a5d867eb45c6eb5cd5" dependencies = [ - "cc", + "env_logger", + "lazy_static", "libc", + "log", + "signal-hook", ] [[package]] -name = "fastrand" -version = "1.9.0" +name = "solana-measure" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] +checksum = "9566e754d9b9bcdee7b4aae38e425d47abf8e4f00057208868cb3ab9bee7feae" [[package]] -name = "ff" -version = "0.13.0" +name = "solana-message" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" +checksum = "268486ba8a294ed22a4d7c1ec05f540c3dbe71cfa7c6c54b6d4d13668d895678" dependencies = [ - "rand_core", - "subtle", + "bincode", + "blake3", + "lazy_static", + "serde", + "serde_derive", + "solana-bincode", + "solana-hash", + "solana-instruction", + "solana-pubkey", + "solana-sanitize", + "solana-sdk-ids", + "solana-short-vec", + "solana-system-interface", + "solana-transaction-error", + "wasm-bindgen", ] [[package]] -name = "fixedbitset" -version = "0.4.2" +name = "solana-metrics" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" +checksum = "02311660a407de41df2d5ef4e4118dac7b51cfe81a52362314ea51b091ee4150" +dependencies = [ + "crossbeam-channel", + "gethostname", + "lazy_static", + "log", + "reqwest", + "solana-clock", + "solana-cluster-type", + "solana-sha256-hasher", + "solana-time-utils", + "thiserror 2.0.12", +] [[package]] -name = "float_eq" -version = "1.0.1" +name = "solana-msg" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28a80e3145d8ad11ba0995949bbcf48b9df2be62772b3d351ef017dff6ecb853" +checksum = "f36a1a14399afaabc2781a1db09cb14ee4cc4ee5c7a5a3cfcc601811379a8092" +dependencies = [ + "solana-define-syscall", +] [[package]] -name = "fnv" -version = "1.0.7" +name = "solana-native-token" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +checksum = "307fb2f78060995979e9b4f68f833623565ed4e55d3725f100454ce78a99a1a3" [[package]] -name = "futures" -version = "0.3.28" +name = "solana-net-utils" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" +checksum = "c27f0e0bbb972456ed255f81135378ecff3a380252ced7274fa965461ab99977" dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", + "anyhow", + "bincode", + "bytes", + "crossbeam-channel", + "itertools 0.12.1", + "log", + "nix", + "rand 0.8.5", + "serde", + "serde_derive", + "socket2", + "solana-serde", + "tokio", + "url", ] [[package]] -name = "futures-channel" -version = "0.3.28" +name = "solana-nonce" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +checksum = "703e22eb185537e06204a5bd9d509b948f0066f2d1d814a6f475dafb3ddf1325" dependencies = [ - "futures-core", - "futures-sink", + "serde", + "serde_derive", + "solana-fee-calculator", + "solana-hash", + "solana-pubkey", + "solana-sha256-hasher", ] [[package]] -name = "futures-core" -version = "0.3.28" +name = "solana-nonce-account" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" +checksum = "cde971a20b8dbf60144d6a84439dda86b5466e00e2843091fe731083cda614da" +dependencies = [ + "solana-account", + "solana-hash", + "solana-nonce", + "solana-sdk-ids", +] [[package]] -name = "futures-executor" -version = "0.3.28" +name = "solana-offchain-message" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" +checksum = "b526398ade5dea37f1f147ce55dae49aa017a5d7326606359b0445ca8d946581" dependencies = [ - "futures-core", - "futures-task", - "futures-util", + "num_enum", + "solana-hash", + "solana-packet", + "solana-pubkey", + "solana-sanitize", + "solana-sha256-hasher", + "solana-signature", + "solana-signer", ] [[package]] -name = "futures-io" -version = "0.3.28" +name = "solana-packet" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" +checksum = "004f2d2daf407b3ec1a1ca5ec34b3ccdfd6866dd2d3c7d0715004a96e4b6d127" +dependencies = [ + "bincode", + "bitflags 2.9.1", + "cfg_eval", + "serde", + "serde_derive", + "serde_with 3.12.0", +] [[package]] -name = "futures-macro" -version = "0.3.28" +name = "solana-perf" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" +checksum = "97222a3fda48570754ce114e43ca56af34741098c357cb8d3cb6695751e60330" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.15", + "ahash 0.8.11", + "bincode", + "bv", + "caps", + "curve25519-dalek 4.1.3", + "dlopen2", + "fnv", + "lazy_static", + "libc", + "log", + "nix", + "rand 0.8.5", + "rayon", + "serde", + "solana-hash", + "solana-message", + "solana-metrics", + "solana-packet", + "solana-pubkey", + "solana-rayon-threadlimit", + "solana-sdk-ids", + "solana-short-vec", + "solana-signature", + "solana-time-utils", ] [[package]] -name = "futures-sink" -version = "0.3.28" +name = "solana-poh-config" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" +checksum = "d650c3b4b9060082ac6b0efbbb66865089c58405bfb45de449f3f2b91eccee75" +dependencies = [ + "serde", + "serde_derive", +] [[package]] -name = "futures-task" -version = "0.3.28" +name = "solana-precompile-error" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" +checksum = "4ff64daa2933c22982b323d88d0cdf693201ef56ac381ae16737fd5f579e07d6" +dependencies = [ + "num-traits", + "solana-decode-error", +] [[package]] -name = "futures-util" -version = "0.3.28" +name = "solana-precompiles" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +checksum = "36e92768a57c652edb0f5d1b30a7d0bc64192139c517967c18600debe9ae3832" dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite", - "pin-utils", - "slab", + "lazy_static", + "solana-ed25519-program", + "solana-feature-set", + "solana-message", + "solana-precompile-error", + "solana-pubkey", + "solana-sdk-ids", + "solana-secp256k1-program", + "solana-secp256r1-program", ] [[package]] -name = "generic-array" -version = "0.14.7" +name = "solana-presigner" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +checksum = "81a57a24e6a4125fc69510b6774cd93402b943191b6cddad05de7281491c90fe" dependencies = [ - "typenum", - "version_check", - "zeroize", + "solana-pubkey", + "solana-signature", + "solana-signer", ] [[package]] -name = "getrandom" -version = "0.2.9" +name = "solana-program" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" +checksum = "586469467e93ceb79048f8d8e3a619bf61d05396ee7de95cb40280301a589d05" dependencies = [ - "cfg-if", - "libc", - "wasi", + "bincode", + "blake3", + "borsh 0.10.4", + "borsh 1.5.7", + "bs58", + "bytemuck", + "console_error_panic_hook", + "console_log", + "getrandom 0.2.15", + "lazy_static", + "log", + "memoffset", + "num-bigint 0.4.6", + "num-derive", + "num-traits", + "rand 0.8.5", + "serde", + "serde_bytes", + "serde_derive", + "solana-account-info", + "solana-address-lookup-table-interface", + "solana-atomic-u64", + "solana-big-mod-exp", + "solana-bincode", + "solana-blake3-hasher", + "solana-borsh", + "solana-clock", + "solana-cpi", + "solana-decode-error", + "solana-define-syscall", + "solana-epoch-rewards", + "solana-epoch-schedule", + "solana-example-mocks", + "solana-feature-gate-interface", + "solana-fee-calculator", + "solana-hash", + "solana-instruction", + "solana-instructions-sysvar", + "solana-keccak-hasher", + "solana-last-restart-slot", + "solana-loader-v2-interface", + "solana-loader-v3-interface", + "solana-loader-v4-interface", + "solana-message", + "solana-msg", + "solana-native-token", + "solana-nonce", + "solana-program-entrypoint", + "solana-program-error", + "solana-program-memory", + "solana-program-option", + "solana-program-pack", + "solana-pubkey", + "solana-rent", + "solana-sanitize", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-secp256k1-recover", + "solana-serde-varint", + "solana-serialize-utils", + "solana-sha256-hasher", + "solana-short-vec", + "solana-slot-hashes", + "solana-slot-history", + "solana-stable-layout", + "solana-stake-interface", + "solana-system-interface", + "solana-sysvar", + "solana-sysvar-id", + "solana-vote-interface", + "thiserror 2.0.12", + "wasm-bindgen", ] [[package]] -name = "group" -version = "0.13.0" +name = "solana-program-entrypoint" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +checksum = "473ffe73c68d93e9f2aa726ad2985fe52760052709aaab188100a42c618060ec" dependencies = [ - "ff", - "rand_core", - "subtle", + "solana-account-info", + "solana-msg", + "solana-program-error", + "solana-pubkey", ] [[package]] -name = "h2" -version = "0.3.18" +name = "solana-program-error" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f8a914c2987b688368b5138aa05321db91f4090cf26118185672ad588bce21" +checksum = "9ee2e0217d642e2ea4bee237f37bd61bb02aec60da3647c48ff88f6556ade775" dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", + "borsh 1.5.7", + "num-traits", + "serde", + "serde_derive", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-pubkey", ] [[package]] -name = "h3o" -version = "0.3.2" +name = "solana-program-memory" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9737e42c2668c384e26178566e39061672833d57a8a703d7b046f1383d310da5" +checksum = "1b0268f6c89825fb634a34bd0c3b8fdaeaecfc3728be1d622a8ee6dd577b60d4" dependencies = [ - "ahash", - "auto_ops", - "either", - "float_eq", - "konst", + "num-traits", + "solana-define-syscall", ] [[package]] -name = "hashbrown" -version = "0.12.3" +name = "solana-program-option" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +checksum = "dc677a2e9bc616eda6dbdab834d463372b92848b2bfe4a1ed4e4b4adba3397d0" [[package]] -name = "heck" -version = "0.4.1" +name = "solana-program-pack" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - -[[package]] -name = "helium-config-service-cli" -version = "0.1.0" +checksum = "319f0ef15e6e12dc37c597faccb7d62525a509fec5f6975ecb9419efddeb277b" dependencies = [ - "angry-purple-tiger", - "anyhow", - "clap", - "dialoguer", - "futures", - "h3o", - "helium-crypto", - "helium-proto", - "ipnet", - "pretty_assertions", - "prost", - "rand", - "serde", - "serde_json", - "serde_test", - "temp-dir", - "tokio", - "tokio-stream", - "tonic", - "tracing", - "tracing-subscriber", + "solana-program-error", ] [[package]] -name = "helium-crypto" -version = "0.6.9" +name = "solana-program-runtime" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138416a642e7228796b191795035ca5e4aad8a0b3628706caf73198dd8b44ff6" +checksum = "fbbde7b061921dcff2bf8e0f1af120fa94f2fb0e3a1c2ec1e7900432bb72cbcd" dependencies = [ - "base64", + "agave-feature-set", + "agave-precompiles", + "base64 0.22.1", + "bincode", + "enum-iterator", + "itertools 0.12.1", + "log", + "percentage", + "rand 0.8.5", + "serde", + "solana-account", + "solana-clock", + "solana-compute-budget", + "solana-epoch-rewards", + "solana-epoch-schedule", + "solana-hash", + "solana-instruction", + "solana-last-restart-slot", + "solana-log-collector", + "solana-measure", + "solana-pubkey", + "solana-rent", + "solana-sbpf", + "solana-sdk-ids", + "solana-slot-hashes", + "solana-stable-layout", + "solana-sysvar", + "solana-sysvar-id", + "solana-timings", + "solana-transaction-context", + "solana-type-overrides", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-pubkey" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40db1ff5a0f8aea2c158d78ab5f2cf897848964251d1df42fef78efd3c85b863" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.7", "bs58", - "ed25519 2.2.1", - "ed25519-compact", - "k256", - "lazy_static", - "p256", - "rand_core", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "rand 0.8.5", "serde", - "sha2 0.10.6", - "signature 2.1.0", - "thiserror", + "serde_derive", + "solana-atomic-u64", + "solana-decode-error", + "solana-define-syscall", + "solana-sanitize", + "solana-sha256-hasher", + "wasm-bindgen", ] [[package]] -name = "helium-proto" -version = "0.1.0" -source = "git+https://github.com/helium/proto?branch=master#a497164af27b41db389937736ce56fd9a1917e77" +name = "solana-pubsub-client" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9633402b60b93f903d37c940a8ce0c1afc790b5a8678aaa8304f9099adf108b" dependencies = [ - "bytes", - "prost", - "prost-build", + "crossbeam-channel", + "futures-util", + "log", + "reqwest", + "semver", "serde", - "serde_json", - "tonic", - "tonic-build", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-clock", + "solana-pubkey", + "solana-rpc-client-api", + "solana-signature", + "thiserror 2.0.12", + "tokio", + "tokio-stream", + "tokio-tungstenite", + "tungstenite", + "url", ] [[package]] -name = "hermit-abi" -version = "0.2.6" +name = "solana-quic-client" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" +checksum = "826ec34b8d4181f0c46efaa84c6b7992a459ca129f21506656d79a1e62633d4b" dependencies = [ - "libc", + "async-lock", + "async-trait", + "futures", + "itertools 0.12.1", + "lazy_static", + "log", + "quinn", + "quinn-proto", + "rustls 0.23.27", + "solana-connection-cache", + "solana-keypair", + "solana-measure", + "solana-metrics", + "solana-net-utils", + "solana-pubkey", + "solana-quic-definitions", + "solana-rpc-client-api", + "solana-signer", + "solana-streamer", + "solana-tls-utils", + "solana-transaction-error", + "thiserror 2.0.12", + "tokio", ] [[package]] -name = "hermit-abi" -version = "0.3.1" +name = "solana-quic-definitions" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "e606feac5110eb5d8afaa43ccaeea3ec49ccec36773387930b5ba545e745aea2" +dependencies = [ + "solana-keypair", +] [[package]] -name = "hkdf" -version = "0.12.3" +name = "solana-rayon-threadlimit" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791a029f6b9fc27657f6f188ec6e5e43f6911f6f878e0dc5501396e09809d437" +checksum = "423c912a1a68455fe4ed5175cf94eb8965e061cd257973c9a5659e2bf4ea8371" dependencies = [ - "hmac", + "lazy_static", + "num_cpus", ] [[package]] -name = "hmac" -version = "0.12.1" +name = "solana-rent" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +checksum = "d1aea8fdea9de98ca6e8c2da5827707fb3842833521b528a713810ca685d2480" dependencies = [ - "digest 0.10.6", + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", ] [[package]] -name = "http" -version = "0.2.9" +name = "solana-rent-collector" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" +checksum = "7c1e19f5d5108b0d824244425e43bc78bbb9476e2199e979b0230c9f632d3bf4" dependencies = [ - "bytes", - "fnv", - "itoa", + "serde", + "serde_derive", + "solana-account", + "solana-clock", + "solana-epoch-schedule", + "solana-genesis-config", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", ] [[package]] -name = "http-body" -version = "0.4.5" +name = "solana-rent-debits" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +checksum = "4f6f9113c6003492e74438d1288e30cffa8ccfdc2ef7b49b9e816d8034da18cd" dependencies = [ - "bytes", - "http", - "pin-project-lite", + "solana-pubkey", + "solana-reward-info", ] [[package]] -name = "httparse" -version = "1.8.0" +name = "solana-reserved-account-keys" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" +checksum = "e4b22ea19ca2a3f28af7cd047c914abf833486bf7a7c4a10fc652fff09b385b1" +dependencies = [ + "lazy_static", + "solana-feature-set", + "solana-pubkey", + "solana-sdk-ids", +] [[package]] -name = "httpdate" -version = "1.0.2" +name = "solana-reward-info" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" +checksum = "18205b69139b1ae0ab8f6e11cdcb627328c0814422ad2482000fa2ca54ae4a2f" +dependencies = [ + "serde", + "serde_derive", +] [[package]] -name = "hyper" -version = "0.14.26" +name = "solana-rpc-client" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab302d72a6f11a3b910431ff93aae7e773078c769f0a3ef15fb9ec692ed147d4" +checksum = "3313bc969e1a8681f19a74181d301e5f91e5cc5a60975fb42e793caa9768f22e" dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2", - "http", - "http-body", - "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "socket2", + "async-trait", + "base64 0.22.1", + "bincode", + "bs58", + "indicatif", + "log", + "reqwest", + "reqwest-middleware", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-account-decoder-client-types", + "solana-clock", + "solana-commitment-config", + "solana-epoch-info", + "solana-epoch-schedule", + "solana-feature-gate-interface", + "solana-hash", + "solana-instruction", + "solana-message", + "solana-pubkey", + "solana-rpc-client-api", + "solana-signature", + "solana-transaction", + "solana-transaction-error", + "solana-transaction-status-client-types", + "solana-version", "tokio", - "tower-service", - "tracing", - "want", ] [[package]] -name = "hyper-timeout" -version = "0.4.1" +name = "solana-rpc-client-api" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +checksum = "2dc3276b526100d0f55a7d1db2366781acdc75ce9fe4a9d1bc9c85a885a503f8" dependencies = [ - "hyper", - "pin-project-lite", - "tokio", - "tokio-io-timeout", + "anyhow", + "base64 0.22.1", + "bs58", + "jsonrpc-core", + "reqwest", + "reqwest-middleware", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-account-decoder-client-types", + "solana-clock", + "solana-commitment-config", + "solana-fee-calculator", + "solana-inflation", + "solana-inline-spl", + "solana-pubkey", + "solana-signer", + "solana-transaction-error", + "solana-transaction-status-client-types", + "solana-version", + "thiserror 2.0.12", ] [[package]] -name = "indexmap" -version = "1.9.3" +name = "solana-rpc-client-nonce-utils" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +checksum = "294874298fb4e52729bb0229e0cdda326d4393b7122b92823aa46e99960cb920" dependencies = [ - "autocfg", - "hashbrown", + "solana-account", + "solana-commitment-config", + "solana-hash", + "solana-message", + "solana-nonce", + "solana-pubkey", + "solana-rpc-client", + "solana-sdk-ids", + "thiserror 2.0.12", ] [[package]] -name = "instant" -version = "0.1.12" +name = "solana-sanitize" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" -dependencies = [ - "cfg-if", -] +checksum = "61f1bc1357b8188d9c4a3af3fc55276e56987265eb7ad073ae6f8180ee54cecf" [[package]] -name = "io-lifetimes" -version = "1.0.10" +name = "solana-sbpf" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c66c74d2ae7e79a5a8f7ac924adbe38ee42a859c6539ad869eb51f0b52dc220" +checksum = "66a3ce7a0f4d6830124ceb2c263c36d1ee39444ec70146eb49b939e557e72b96" dependencies = [ - "hermit-abi 0.3.1", + "byteorder", + "combine 3.8.1", + "hash32", "libc", - "windows-sys 0.48.0", + "log", + "rand 0.8.5", + "rustc-demangle", + "thiserror 1.0.68", + "winapi", ] [[package]] -name = "ipnet" -version = "2.7.2" +name = "solana-sdk" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12b6ee2129af8d4fb011108c73d99a1b83a85977f23b82460c0ae2e25bb4b57f" +checksum = "e8af90d2ce445440e0548fa4a5f96fe8b265c22041a68c942012ffadd029667d" +dependencies = [ + "bincode", + "bs58", + "getrandom 0.1.16", + "js-sys", + "serde", + "serde_json", + "solana-account", + "solana-bn254", + "solana-client-traits", + "solana-cluster-type", + "solana-commitment-config", + "solana-compute-budget-interface", + "solana-decode-error", + "solana-derivation-path", + "solana-ed25519-program", + "solana-epoch-info", + "solana-epoch-rewards-hasher", + "solana-feature-set", + "solana-fee-structure", + "solana-genesis-config", + "solana-hard-forks", + "solana-inflation", + "solana-instruction", + "solana-keypair", + "solana-message", + "solana-native-token", + "solana-nonce-account", + "solana-offchain-message", + "solana-packet", + "solana-poh-config", + "solana-precompile-error", + "solana-precompiles", + "solana-presigner", + "solana-program", + "solana-program-memory", + "solana-pubkey", + "solana-quic-definitions", + "solana-rent-collector", + "solana-rent-debits", + "solana-reserved-account-keys", + "solana-reward-info", + "solana-sanitize", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-secp256k1-program", + "solana-secp256k1-recover", + "solana-secp256r1-program", + "solana-seed-derivable", + "solana-seed-phrase", + "solana-serde", + "solana-serde-varint", + "solana-short-vec", + "solana-shred-version", + "solana-signature", + "solana-signer", + "solana-system-transaction", + "solana-time-utils", + "solana-transaction", + "solana-transaction-context", + "solana-transaction-error", + "solana-validator-exit", + "thiserror 2.0.12", + "wasm-bindgen", +] [[package]] -name = "is-terminal" -version = "0.4.7" +name = "solana-sdk-ids" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" +checksum = "5c5d8b9cc68d5c88b062a33e23a6466722467dde0035152d8fb1afbcdf350a5f" dependencies = [ - "hermit-abi 0.3.1", - "io-lifetimes", - "rustix", - "windows-sys 0.48.0", + "solana-pubkey", ] [[package]] -name = "itertools" -version = "0.10.5" +name = "solana-sdk-macro" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +checksum = "86280da8b99d03560f6ab5aca9de2e38805681df34e0bb8f238e69b29433b9df" dependencies = [ - "either", + "bs58", + "proc-macro2", + "quote", + "syn 2.0.87", ] [[package]] -name = "itoa" -version = "1.0.6" +name = "solana-secp256k1-program" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" +checksum = "a0a1caa972414cc78122c32bdae65ac5fe89df7db598585a5cde19d16a20280a" +dependencies = [ + "bincode", + "digest 0.10.7", + "libsecp256k1", + "serde", + "serde_derive", + "sha3", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-sdk-ids", +] [[package]] -name = "js-sys" -version = "0.3.61" +name = "solana-secp256k1-recover" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" +checksum = "baa3120b6cdaa270f39444f5093a90a7b03d296d362878f7a6991d6de3bbe496" dependencies = [ - "wasm-bindgen", + "borsh 1.5.7", + "libsecp256k1", + "solana-define-syscall", + "thiserror 2.0.12", ] [[package]] -name = "k256" -version = "0.13.1" +name = "solana-secp256r1-program" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" +checksum = "5cda2aa1bbaceda14763c4f142a00b486f2f262cfd901bd0410649ad0404d5f7" dependencies = [ - "cfg-if", - "ecdsa", - "elliptic-curve", - "sha2 0.10.6", + "bytemuck", + "openssl", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-sdk-ids", ] [[package]] -name = "konst" -version = "0.3.5" +name = "solana-security-txt" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d9a8bb6c7c71d151b25936b03e012a4c00daea99e3a3797c6ead66b0a0d55e2" -dependencies = [ - "const_panic", - "konst_kernel", - "typewit", -] +checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" [[package]] -name = "konst_kernel" -version = "0.3.5" +name = "solana-seed-derivable" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55d2ab266022e7309df89ed712bddc753e3a3c395c3ced1bb2e4470ec2a8146d" +checksum = "3beb82b5adb266c6ea90e5cf3967235644848eac476c5a1f2f9283a143b7c97f" dependencies = [ - "typewit", + "solana-derivation-path", ] [[package]] -name = "lazy_static" -version = "1.4.0" +name = "solana-seed-phrase" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "36187af2324f079f65a675ec22b31c24919cb4ac22c79472e85d819db9bbbc15" +dependencies = [ + "hmac 0.12.1", + "pbkdf2", + "sha2 0.10.8", +] [[package]] -name = "libc" -version = "0.2.142" +name = "solana-serde" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317" +checksum = "1931484a408af466e14171556a47adaa215953c7f48b24e5f6b0282763818b04" +dependencies = [ + "serde", +] [[package]] -name = "linux-raw-sys" -version = "0.3.7" +name = "solana-serde-varint" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ece97ea872ece730aed82664c424eb4c8291e1ff2480247ccf7409044bc6479f" +checksum = "bcc07d00200d82e6def2f7f7a45738e3406b17fe54a18adcf0defa16a97ccadb" +dependencies = [ + "serde", +] [[package]] -name = "log" -version = "0.4.17" +name = "solana-serialize-utils" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +checksum = "817a284b63197d2b27afdba829c5ab34231da4a9b4e763466a003c40ca4f535e" dependencies = [ - "cfg-if", + "solana-instruction", + "solana-pubkey", + "solana-sanitize", ] [[package]] -name = "matchit" -version = "0.7.0" +name = "solana-sha256-hasher" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b87248edafb776e59e6ee64a79086f65890d3510f2c656c000bf2a7e8a0aea40" +checksum = "0037386961c0d633421f53560ad7c80675c0447cba4d1bb66d60974dd486c7ea" +dependencies = [ + "sha2 0.10.8", + "solana-define-syscall", + "solana-hash", +] [[package]] -name = "md5" -version = "0.7.0" +name = "solana-short-vec" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" +checksum = "5c54c66f19b9766a56fa0057d060de8378676cb64987533fa088861858fc5a69" +dependencies = [ + "serde", +] [[package]] -name = "memchr" -version = "2.5.0" +name = "solana-shred-version" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "afd3db0461089d1ad1a78d9ba3f15b563899ca2386351d38428faa5350c60a98" +dependencies = [ + "solana-hard-forks", + "solana-hash", + "solana-sha256-hasher", +] [[package]] -name = "mime" -version = "0.3.17" +name = "solana-signature" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +checksum = "47d251c8f3dc015f320b4161daac7f108156c837428e5a8cc61136d25beb11d6" +dependencies = [ + "bs58", + "ed25519-dalek", + "rand 0.8.5", + "serde", + "serde-big-array", + "serde_derive", + "solana-sanitize", +] [[package]] -name = "mio" -version = "0.8.6" +name = "solana-signer" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +checksum = "7c41991508a4b02f021c1342ba00bcfa098630b213726ceadc7cb032e051975b" dependencies = [ - "libc", - "log", - "wasi", - "windows-sys 0.45.0", + "solana-pubkey", + "solana-signature", + "solana-transaction-error", ] [[package]] -name = "multimap" -version = "0.8.3" +name = "solana-slot-hashes" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" +checksum = "0c8691982114513763e88d04094c9caa0376b867a29577939011331134c301ce" +dependencies = [ + "serde", + "serde_derive", + "solana-hash", + "solana-sdk-ids", + "solana-sysvar-id", +] [[package]] -name = "nu-ansi-term" -version = "0.46.0" +name = "solana-slot-history" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +checksum = "97ccc1b2067ca22754d5283afb2b0126d61eae734fc616d23871b0943b0d935e" dependencies = [ - "overload", - "winapi", + "bv", + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sysvar-id", ] [[package]] -name = "num_cpus" -version = "1.15.0" +name = "solana-stable-layout" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "9f14f7d02af8f2bc1b5efeeae71bc1c2b7f0f65cd75bcc7d8180f2c762a57f54" dependencies = [ - "hermit-abi 0.2.6", - "libc", + "solana-instruction", + "solana-pubkey", ] [[package]] -name = "once_cell" -version = "1.17.1" +name = "solana-stake-interface" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "5269e89fde216b4d7e1d1739cf5303f8398a1ff372a81232abbee80e554a838c" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.7", + "num-traits", + "serde", + "serde_derive", + "solana-clock", + "solana-cpi", + "solana-decode-error", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-system-interface", + "solana-sysvar-id", +] [[package]] -name = "opaque-debug" -version = "0.3.0" +name = "solana-streamer" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" +checksum = "1eaf5b216717d1d551716f3190878d028c689dabac40c8889767cead7e447481" +dependencies = [ + "async-channel", + "bytes", + "crossbeam-channel", + "dashmap", + "futures", + "futures-util", + "governor", + "histogram", + "indexmap 2.9.0", + "itertools 0.12.1", + "libc", + "log", + "nix", + "pem 1.1.1", + "percentage", + "quinn", + "quinn-proto", + "rand 0.8.5", + "rustls 0.23.27", + "smallvec", + "socket2", + "solana-keypair", + "solana-measure", + "solana-metrics", + "solana-net-utils", + "solana-packet", + "solana-perf", + "solana-pubkey", + "solana-quic-definitions", + "solana-signature", + "solana-signer", + "solana-time-utils", + "solana-tls-utils", + "solana-transaction-error", + "solana-transaction-metrics-tracker", + "thiserror 2.0.12", + "tokio", + "tokio-util", + "x509-parser", +] [[package]] -name = "openssl-probe" -version = "0.1.5" +name = "solana-system-interface" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +checksum = "94d7c18cb1a91c6be5f5a8ac9276a1d7c737e39a21beba9ea710ab4b9c63bc90" +dependencies = [ + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-decode-error", + "solana-instruction", + "solana-pubkey", + "wasm-bindgen", +] [[package]] -name = "output_vt100" -version = "0.1.3" +name = "solana-system-transaction" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628223faebab4e3e40667ee0b2336d34a5b960ff60ea743ddfdbcf7770bcfb66" +checksum = "5bd98a25e5bcba8b6be8bcbb7b84b24c2a6a8178d7fb0e3077a916855ceba91a" dependencies = [ - "winapi", + "solana-hash", + "solana-keypair", + "solana-message", + "solana-pubkey", + "solana-signer", + "solana-system-interface", + "solana-transaction", ] [[package]] -name = "overload" -version = "0.1.1" +name = "solana-sysvar" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" - -[[package]] -name = "p256" -version = "0.13.2" +checksum = "bf6b44740d7f0c9f375d045c165bc0aab4a90658f92d6835aeb0649afaeaff9a" +dependencies = [ + "base64 0.22.1", + "bincode", + "bytemuck", + "bytemuck_derive", + "lazy_static", + "serde", + "serde_derive", + "solana-account-info", + "solana-clock", + "solana-define-syscall", + "solana-epoch-rewards", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-hash", + "solana-instruction", + "solana-instructions-sysvar", + "solana-last-restart-slot", + "solana-program-entrypoint", + "solana-program-error", + "solana-program-memory", + "solana-pubkey", + "solana-rent", + "solana-sanitize", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-slot-hashes", + "solana-slot-history", + "solana-stake-interface", + "solana-sysvar-id", +] + +[[package]] +name = "solana-sysvar-id" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" +checksum = "5762b273d3325b047cfda250787f8d796d781746860d5d0a746ee29f3e8812c1" dependencies = [ - "ecdsa", - "elliptic-curve", - "primeorder", - "sha2 0.10.6", + "solana-pubkey", + "solana-sdk-ids", ] [[package]] -name = "percent-encoding" -version = "2.2.0" +name = "solana-thin-client" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "255bda447fbff4526b6b19b16b3652281ec2b7c4952d019b369a5f4a9dba4e5c" +dependencies = [ + "bincode", + "log", + "rayon", + "solana-account", + "solana-client-traits", + "solana-clock", + "solana-commitment-config", + "solana-connection-cache", + "solana-epoch-info", + "solana-hash", + "solana-instruction", + "solana-keypair", + "solana-message", + "solana-pubkey", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-signature", + "solana-signer", + "solana-system-interface", + "solana-transaction", + "solana-transaction-error", +] + +[[package]] +name = "solana-time-utils" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" +checksum = "6af261afb0e8c39252a04d026e3ea9c405342b08c871a2ad8aa5448e068c784c" [[package]] -name = "petgraph" -version = "0.6.3" +name = "solana-timings" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" +checksum = "d08862987485af7e3864b0ab9d4febeccaa34f1e982f08af9fa0460782d10773" dependencies = [ - "fixedbitset", - "indexmap", + "eager", + "enum-iterator", + "solana-pubkey", ] [[package]] -name = "pin-project" -version = "1.0.12" +name = "solana-tls-utils" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc" +checksum = "b6f227b3813b6c26c8ed38910b90a0b641baedb2ad075ea51ccfbff1992ee394" dependencies = [ - "pin-project-internal", + "rustls 0.23.27", + "solana-keypair", + "solana-pubkey", + "solana-signer", + "x509-parser", ] [[package]] -name = "pin-project-internal" -version = "1.0.12" +name = "solana-tpu-client" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" +checksum = "bcc74ecb664add683a18bb9f484a30ca8c9d71f3addcd3a771eaaaaec12125fd" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "async-trait", + "bincode", + "futures-util", + "indexmap 2.9.0", + "indicatif", + "log", + "rayon", + "solana-client-traits", + "solana-clock", + "solana-commitment-config", + "solana-connection-cache", + "solana-epoch-info", + "solana-measure", + "solana-message", + "solana-net-utils", + "solana-pubkey", + "solana-pubsub-client", + "solana-quic-definitions", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-signature", + "solana-signer", + "solana-transaction", + "solana-transaction-error", + "thiserror 2.0.12", + "tokio", ] [[package]] -name = "pin-project-lite" -version = "0.2.9" +name = "solana-transaction" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" +checksum = "abec848d081beb15a324c633cd0e0ab33033318063230389895cae503ec9b544" +dependencies = [ + "bincode", + "serde", + "serde_derive", + "solana-bincode", + "solana-feature-set", + "solana-hash", + "solana-instruction", + "solana-keypair", + "solana-message", + "solana-precompiles", + "solana-pubkey", + "solana-sanitize", + "solana-sdk-ids", + "solana-short-vec", + "solana-signature", + "solana-signer", + "solana-system-interface", + "solana-transaction-error", + "wasm-bindgen", +] [[package]] -name = "pin-utils" -version = "0.1.0" +name = "solana-transaction-context" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +checksum = "5022de04cbba05377f68bf848c8c1322ead733f88a657bf792bb40f3257b8218" +dependencies = [ + "bincode", + "serde", + "serde_derive", + "solana-account", + "solana-instruction", + "solana-pubkey", + "solana-rent", + "solana-signature", +] [[package]] -name = "ppv-lite86" -version = "0.2.17" +name = "solana-transaction-error" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "222a9dc8fdb61c6088baab34fc3a8b8473a03a7a5fd404ed8dd502fa79b67cb1" +dependencies = [ + "serde", + "serde_derive", + "solana-instruction", + "solana-sanitize", +] [[package]] -name = "pretty_assertions" -version = "1.3.0" +name = "solana-transaction-metrics-tracker" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a25e9bcb20aa780fd0bb16b72403a9064d6b3f22f026946029acb941a50af755" +checksum = "c4c03abfcb923aaf71c228e81b54a804aa224a48577477d8e1096c3a1429d21b" dependencies = [ - "ctor", - "diff", - "output_vt100", - "yansi", + "base64 0.22.1", + "bincode", + "lazy_static", + "log", + "rand 0.8.5", + "solana-packet", + "solana-perf", + "solana-short-vec", + "solana-signature", ] [[package]] -name = "prettyplease" -version = "0.1.25" +name = "solana-transaction-status" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86" +checksum = "c3f43457f2a9bfe6e625af7e37c6c46de152f20f9cc9657f8b26321da36826ea" dependencies = [ - "proc-macro2", - "syn 1.0.109", + "Inflector", + "agave-reserved-account-keys", + "base64 0.22.1", + "bincode", + "borsh 1.5.7", + "bs58", + "lazy_static", + "log", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-clock", + "solana-hash", + "solana-instruction", + "solana-loader-v2-interface", + "solana-message", + "solana-program", + "solana-pubkey", + "solana-reward-info", + "solana-sdk-ids", + "solana-signature", + "solana-system-interface", + "solana-transaction", + "solana-transaction-error", + "solana-transaction-status-client-types", + "spl-associated-token-account", + "spl-memo", + "spl-token", + "spl-token-2022 7.0.0", + "spl-token-group-interface", + "spl-token-metadata-interface", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-transaction-status-client-types" +version = "2.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aaef59e8a54fc3a2dabfd85c32e35493c5e228f9d1efbcdcdc3c0819dddf7fd" +dependencies = [ + "base64 0.22.1", + "bincode", + "bs58", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-commitment-config", + "solana-message", + "solana-reward-info", + "solana-signature", + "solana-transaction", + "solana-transaction-context", + "solana-transaction-error", + "thiserror 2.0.12", ] [[package]] -name = "primeorder" -version = "0.13.1" +name = "solana-transaction-utils" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf8d3875361e28f7753baefef104386e7aa47642c93023356d97fdef4003bfb5" +checksum = "7fbed85bba4b4210edfe9de2c766d7935e7375faa76d3a93b34a220413b37eeb" dependencies = [ - "elliptic-curve", + "bincode", + "dashmap", + "futures", + "futures-core", + "futures-util", + "indicatif", + "itertools 0.13.0", + "solana-client", + "solana-program", + "solana-quic-client", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-sdk", + "solana-tpu-client", + "solana-transaction-status", + "thiserror 1.0.68", + "tokio", + "tokio-graceful-shutdown", + "tracing", ] [[package]] -name = "proc-macro-hack" -version = "0.5.20+deprecated" +name = "solana-type-overrides" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" +checksum = "72735ae2d80d5556400b8fbb552688b3ac1413cd6c29e85db83d24ffe825a7f9" +dependencies = [ + "lazy_static", + "rand 0.8.5", +] [[package]] -name = "proc-macro2" -version = "1.0.56" +name = "solana-udp-client" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435" +checksum = "6d3e085a6adf81d51f678624934ffe266bd45a1c105849992b1af933c80bbf19" dependencies = [ - "unicode-ident", + "async-trait", + "solana-connection-cache", + "solana-keypair", + "solana-net-utils", + "solana-streamer", + "solana-transaction-error", + "thiserror 2.0.12", + "tokio", ] [[package]] -name = "prost" -version = "0.11.9" +name = "solana-validator-exit" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" -dependencies = [ - "bytes", - "prost-derive", -] +checksum = "7bbf6d7a3c0b28dd5335c52c0e9eae49d0ae489a8f324917faf0ded65a812c1d" [[package]] -name = "prost-build" -version = "0.11.9" +name = "solana-version" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270" +checksum = "2a58e01912dc3d5ff4391fe49476461b3b9ebc4215f3713d2fe3ffcfeda7f8e2" dependencies = [ - "bytes", - "heck", - "itertools", - "lazy_static", - "log", - "multimap", - "petgraph", - "prettyplease", - "prost", - "prost-types", - "regex", - "syn 1.0.109", - "tempfile", - "which", + "agave-feature-set", + "semver", + "serde", + "serde_derive", + "solana-sanitize", + "solana-serde-varint", ] [[package]] -name = "prost-derive" -version = "0.11.9" +name = "solana-vote-interface" +version = "2.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4" +checksum = "ef4f08746f154458f28b98330c0d55cb431e2de64ee4b8efc98dcbe292e0672b" dependencies = [ - "anyhow", - "itertools", - "proc-macro2", - "quote", - "syn 1.0.109", + "bincode", + "num-derive", + "num-traits", + "serde", + "serde_derive", + "solana-clock", + "solana-decode-error", + "solana-hash", + "solana-instruction", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-serde-varint", + "solana-serialize-utils", + "solana-short-vec", + "solana-system-interface", +] + +[[package]] +name = "solana-zk-sdk" +version = "2.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd14204c32f51f4ddf52ac24904417db13e54bd3b518e839e2e6ad9cca8ffef8" +dependencies = [ + "aes-gcm-siv", + "base64 0.22.1", + "bincode", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "itertools 0.12.1", + "js-sys", + "lazy_static", + "merlin", + "num-derive", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "serde_json", + "sha3", + "solana-derivation-path", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-seed-derivable", + "solana-seed-phrase", + "solana-signature", + "solana-signer", + "subtle", + "thiserror 2.0.12", + "wasm-bindgen", + "zeroize", ] [[package]] -name = "prost-types" -version = "0.11.9" +name = "spin" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13" -dependencies = [ - "prost", -] +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] -name = "quote" -version = "1.0.26" +name = "spinning_top" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" +checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" dependencies = [ - "proc-macro2", + "lock_api", ] [[package]] -name = "rand" -version = "0.8.5" +name = "spl-associated-token-account" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "76fee7d65013667032d499adc3c895e286197a35a0d3a4643c80e7fd3e9969e3" dependencies = [ - "libc", - "rand_chacha", - "rand_core", + "borsh 1.5.7", + "num-derive", + "num-traits", + "solana-program", + "spl-associated-token-account-client", + "spl-token", + "spl-token-2022 6.0.0", + "thiserror 1.0.68", ] [[package]] -name = "rand_chacha" -version = "0.3.1" +name = "spl-associated-token-account-client" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +checksum = "d6f8349dbcbe575f354f9a533a21f272f3eb3808a49e2fdc1c34393b88ba76cb" dependencies = [ - "ppv-lite86", - "rand_core", + "solana-instruction", + "solana-pubkey", ] [[package]] -name = "rand_core" -version = "0.6.4" +name = "spl-discriminator" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +checksum = "a7398da23554a31660f17718164e31d31900956054f54f52d5ec1be51cb4f4b3" dependencies = [ - "getrandom", + "bytemuck", + "solana-program-error", + "solana-sha256-hasher", + "spl-discriminator-derive", ] [[package]] -name = "redox_syscall" -version = "0.3.5" +name = "spl-discriminator-derive" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" +checksum = "d9e8418ea6269dcfb01c712f0444d2c75542c04448b480e87de59d2865edc750" dependencies = [ - "bitflags", + "quote", + "spl-discriminator-syn", + "syn 2.0.87", ] [[package]] -name = "regex" -version = "1.8.1" +name = "spl-discriminator-syn" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af83e617f331cc6ae2da5443c602dfa5af81e517212d9d611a5b3ba1777b5370" +checksum = "8c1f05593b7ca9eac7caca309720f2eafb96355e037e6d373b909a80fe7b69b9" dependencies = [ - "regex-syntax", + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.87", + "thiserror 1.0.68", ] [[package]] -name = "regex-syntax" -version = "0.7.1" +name = "spl-elgamal-registry" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5996294f19bd3aae0453a862ad728f60e6600695733dd5df01da90c54363a3c" +checksum = "ce0f668975d2b0536e8a8fd60e56a05c467f06021dae037f1d0cfed0de2e231d" +dependencies = [ + "bytemuck", + "solana-program", + "solana-zk-sdk", + "spl-pod", + "spl-token-confidential-transfer-proof-extraction", +] [[package]] -name = "rfc6979" -version = "0.4.0" +name = "spl-memo" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +checksum = "9f09647c0974e33366efeb83b8e2daebb329f0420149e74d3a4bd2c08cf9f7cb" dependencies = [ - "hmac", - "subtle", + "solana-account-info", + "solana-instruction", + "solana-msg", + "solana-program-entrypoint", + "solana-program-error", + "solana-pubkey", ] [[package]] -name = "ring" -version = "0.16.20" +name = "spl-pod" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +checksum = "d994afaf86b779104b4a95ba9ca75b8ced3fdb17ee934e38cb69e72afbe17799" dependencies = [ - "cc", - "libc", - "once_cell", - "spin", - "untrusted", - "web-sys", - "winapi", + "borsh 1.5.7", + "bytemuck", + "bytemuck_derive", + "num-derive", + "num-traits", + "solana-decode-error", + "solana-msg", + "solana-program-error", + "solana-program-option", + "solana-pubkey", + "solana-zk-sdk", + "thiserror 2.0.12", ] [[package]] -name = "rustix" -version = "0.37.19" +name = "spl-program-error" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" +checksum = "9d39b5186f42b2b50168029d81e58e800b690877ef0b30580d107659250da1d1" dependencies = [ - "bitflags", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys", - "windows-sys 0.48.0", + "num-derive", + "num-traits", + "solana-program", + "spl-program-error-derive", + "thiserror 1.0.68", ] [[package]] -name = "rustls" -version = "0.21.1" +name = "spl-program-error-derive" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c911ba11bc8433e811ce56fde130ccf32f5127cab0e0194e9c68c5a5b671791e" +checksum = "e6d375dd76c517836353e093c2dbb490938ff72821ab568b545fd30ab3256b3e" dependencies = [ - "log", - "ring", - "rustls-webpki", - "sct", + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.87", ] [[package]] -name = "rustls-native-certs" -version = "0.6.2" +name = "spl-tlv-account-resolution" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" +checksum = "cd99ff1e9ed2ab86e3fd582850d47a739fec1be9f4661cba1782d3a0f26805f3" +dependencies = [ + "bytemuck", + "num-derive", + "num-traits", + "solana-account-info", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator", + "spl-pod", + "spl-program-error", + "spl-type-length-value", + "thiserror 1.0.68", +] + +[[package]] +name = "spl-token" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed320a6c934128d4f7e54fe00e16b8aeaecf215799d060ae14f93378da6dc834" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program", + "thiserror 1.0.68", +] + +[[package]] +name = "spl-token-2022" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b27f7405010ef816587c944536b0eafbcc35206ab6ba0f2ca79f1d28e488f4f" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program", + "solana-security-txt", + "solana-zk-sdk", + "spl-elgamal-registry", + "spl-memo", + "spl-pod", + "spl-token", + "spl-token-confidential-transfer-ciphertext-arithmetic", + "spl-token-confidential-transfer-proof-extraction", + "spl-token-confidential-transfer-proof-generation 0.2.0", + "spl-token-group-interface", + "spl-token-metadata-interface", + "spl-transfer-hook-interface", + "spl-type-length-value", + "thiserror 1.0.68", +] + +[[package]] +name = "spl-token-2022" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9048b26b0df0290f929ff91317c83db28b3ef99af2b3493dd35baa146774924c" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program", + "solana-security-txt", + "solana-zk-sdk", + "spl-elgamal-registry", + "spl-memo", + "spl-pod", + "spl-token", + "spl-token-confidential-transfer-ciphertext-arithmetic", + "spl-token-confidential-transfer-proof-extraction", + "spl-token-confidential-transfer-proof-generation 0.3.0", + "spl-token-group-interface", + "spl-token-metadata-interface", + "spl-transfer-hook-interface", + "spl-type-length-value", + "thiserror 2.0.12", +] + +[[package]] +name = "spl-token-confidential-transfer-ciphertext-arithmetic" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170378693c5516090f6d37ae9bad2b9b6125069be68d9acd4865bbe9fc8499fd" dependencies = [ - "openssl-probe", - "rustls-pemfile", - "schannel", - "security-framework", + "base64 0.22.1", + "bytemuck", + "solana-curve25519", + "solana-zk-sdk", ] [[package]] -name = "rustls-pemfile" -version = "1.0.2" +name = "spl-token-confidential-transfer-proof-extraction" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" +checksum = "eff2d6a445a147c9d6dd77b8301b1e116c8299601794b558eafa409b342faf96" dependencies = [ - "base64", + "bytemuck", + "solana-curve25519", + "solana-program", + "solana-zk-sdk", + "spl-pod", + "thiserror 2.0.12", ] [[package]] -name = "rustls-webpki" -version = "0.100.1" +name = "spl-token-confidential-transfer-proof-generation" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6207cd5ed3d8dca7816f8f3725513a34609c0c765bf652b8c3cb4cfd87db46b" +checksum = "8627184782eec1894de8ea26129c61303f1f0adeed65c20e0b10bc584f09356d" dependencies = [ - "ring", - "untrusted", + "curve25519-dalek 4.1.3", + "solana-zk-sdk", + "thiserror 1.0.68", ] [[package]] -name = "rustversion" -version = "1.0.12" +name = "spl-token-confidential-transfer-proof-generation" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" +checksum = "0e3597628b0d2fe94e7900fd17cdb4cfbb31ee35c66f82809d27d86e44b2848b" +dependencies = [ + "curve25519-dalek 4.1.3", + "solana-zk-sdk", + "thiserror 2.0.12", +] [[package]] -name = "ryu" -version = "1.0.13" +name = "spl-token-group-interface" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" +checksum = "d595667ed72dbfed8c251708f406d7c2814a3fa6879893b323d56a10bedfc799" +dependencies = [ + "bytemuck", + "num-derive", + "num-traits", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator", + "spl-pod", + "thiserror 1.0.68", +] [[package]] -name = "schannel" -version = "0.1.21" +name = "spl-token-metadata-interface" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713cfb06c7059f3588fb8044c0fad1d09e3c01d225e25b9220dbfdcf16dbb1b3" +checksum = "dfb9c89dbc877abd735f05547dcf9e6e12c00c11d6d74d8817506cab4c99fdbb" dependencies = [ - "windows-sys 0.42.0", + "borsh 1.5.7", + "num-derive", + "num-traits", + "solana-borsh", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator", + "spl-pod", + "spl-type-length-value", + "thiserror 1.0.68", ] [[package]] -name = "sct" +name = "spl-transfer-hook-interface" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aa7503d52107c33c88e845e1351565050362c2314036ddf19a36cd25137c043" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "solana-account-info", + "solana-cpi", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator", + "spl-pod", + "spl-program-error", + "spl-tlv-account-resolution", + "spl-type-length-value", + "thiserror 1.0.68", +] + +[[package]] +name = "spl-type-length-value" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +checksum = "ba70ef09b13af616a4c987797870122863cba03acc4284f226a4473b043923f9" dependencies = [ - "ring", - "untrusted", + "bytemuck", + "num-derive", + "num-traits", + "solana-account-info", + "solana-decode-error", + "solana-msg", + "solana-program-error", + "spl-discriminator", + "spl-pod", + "thiserror 1.0.68", ] [[package]] -name = "sec1" -version = "0.7.2" +name = "stable_deref_trait" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0aec48e813d6b90b15f0b8948af3c63483992dee44c03e9930b3eebdabe046e" -dependencies = [ - "base16ct", - "der", - "generic-array", - "subtle", - "zeroize", -] +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] -name = "security-framework" -version = "2.8.2" +name = "strsim" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a332be01508d814fed64bf28f798a146d73792121129962fdf335bb3c49a4254" -dependencies = [ - "bitflags", - "core-foundation", - "core-foundation-sys", - "libc", - "security-framework-sys", -] +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] -name = "security-framework-sys" -version = "2.8.0" +name = "strsim" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31c9bb296072e961fcbd8853511dd39c2d8be2deb1e17c6860b1d30732b323b4" -dependencies = [ - "core-foundation-sys", - "libc", -] +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] -name = "serde" -version = "1.0.162" +name = "strum" +version = "0.26.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71b2f6e1ab5c2b98c05f0f35b236b22e8df7ead6ffbf51d7808da7f8817e7ab6" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" dependencies = [ - "serde_derive", + "strum_macros", ] [[package]] -name = "serde_derive" -version = "1.0.162" +name = "strum_macros" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2a0814352fd64b58489904a44ea8d90cb1a91dcb6b4f5ebabc32c8318e93cb6" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" dependencies = [ + "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.15", + "rustversion", + "syn 2.0.87", ] [[package]] -name = "serde_json" -version = "1.0.96" +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ - "itoa", - "ryu", - "serde", + "proc-macro2", + "quote", + "unicode-ident", ] [[package]] -name = "serde_test" -version = "1.0.162" +name = "syn" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b2931818f5d80d6bbe619cc30edd53b822fac51e1f6833cd4659072d701721b" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ - "serde", + "proc-macro2", + "quote", + "unicode-ident", ] [[package]] -name = "sha2" -version = "0.9.9" +name = "sync_wrapper" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + +[[package]] +name = "synstructure" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" dependencies = [ - "block-buffer 0.9.0", - "cfg-if", - "cpufeatures", - "digest 0.9.0", - "opaque-debug", + "proc-macro2", + "quote", + "syn 1.0.109", + "unicode-xid", ] [[package]] -name = "sha2" -version = "0.10.6" +name = "synstructure" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ - "cfg-if", - "cpufeatures", - "digest 0.10.6", + "proc-macro2", + "quote", + "syn 2.0.87", ] [[package]] -name = "sharded-slab" -version = "0.1.4" +name = "system-configuration" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ - "lazy_static", + "bitflags 1.3.2", + "core-foundation 0.9.4", + "system-configuration-sys", ] [[package]] -name = "shell-words" -version = "1.1.0" +name = "system-configuration-sys" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] [[package]] -name = "signature" -version = "1.6.4" +name = "tap" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] -name = "signature" -version = "2.1.0" +name = "task-local-extensions" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" +checksum = "ba323866e5d033818e3240feeb9f7db2c4296674e4d9e16b97b7bf8f490434e8" dependencies = [ - "digest 0.10.6", - "rand_core", + "pin-utils", ] [[package]] -name = "slab" -version = "0.4.8" +name = "temp-dir" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" -dependencies = [ - "autocfg", -] +checksum = "bc1ee6eef34f12f765cb94725905c6312b6610ab2b0940889cfe58dae7bc3c72" [[package]] -name = "smallvec" -version = "1.10.0" +name = "tempfile" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" +dependencies = [ + "cfg-if", + "fastrand", + "once_cell", + "rustix", + "windows-sys 0.59.0", +] [[package]] -name = "socket2" -version = "0.4.9" +name = "termcolor" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" dependencies = [ - "libc", - "winapi", + "winapi-util", ] [[package]] -name = "spin" -version = "0.5.2" +name = "thiserror" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +checksum = "02dd99dc800bbb97186339685293e1cc5d9df1f8fae2d0aecd9ff1c77efea892" +dependencies = [ + "thiserror-impl 1.0.68", +] [[package]] -name = "strsim" -version = "0.10.0" +name = "thiserror" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" +dependencies = [ + "thiserror-impl 2.0.12", +] [[package]] -name = "subtle" -version = "2.4.1" +name = "thiserror-impl" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "a7c61ec9a6f64d2793d8a45faba21efbe3ced62a886d44c36a009b2b519b4c7e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] [[package]] -name = "syn" -version = "1.0.109" +name = "thiserror-impl" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" dependencies = [ "proc-macro2", "quote", - "unicode-ident", + "syn 2.0.87", ] [[package]] -name = "syn" -version = "2.0.15" +name = "thread_local" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a34fcf3e8b60f57e6a14301a2e916d323af98b0ea63c599441eec8558660c822" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "cfg-if", + "once_cell", ] [[package]] -name = "sync_wrapper" -version = "0.1.2" +name = "time" +version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde", + "time-core", + "time-macros", +] [[package]] -name = "temp-dir" -version = "0.1.11" +name = "time-core" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af547b166dd1ea4b472165569fc456cfb6818116f854690b0ff205e636523dab" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] -name = "tempfile" -version = "3.5.0" +name = "time-macros" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998" +checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" dependencies = [ - "cfg-if", - "fastrand", - "redox_syscall", - "rustix", - "windows-sys 0.45.0", + "num-conv", + "time-core", ] [[package]] -name = "thiserror" -version = "1.0.40" +name = "tiny-keccak" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" dependencies = [ - "thiserror-impl", + "crunchy", ] [[package]] -name = "thiserror-impl" -version = "1.0.40" +name = "tinystr" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.15", + "displaydoc", + "zerovec", ] [[package]] -name = "thread_local" -version = "1.1.7" +name = "tinyvec" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" +checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" dependencies = [ - "cfg-if", - "once_cell", + "tinyvec_macros", ] [[package]] -name = "tiny-keccak" -version = "2.0.2" +name = "tinyvec_macros" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" -dependencies = [ - "crunchy", -] +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.28.0" +version = "1.45.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3c786bf8134e5a3a166db9b29ab8f48134739014a3eca7bc6bfa95d673b136f" +checksum = "75ef51a33ef1da925cea3e4eb122833cb377c61439ca401b770f54902b806779" dependencies = [ - "autocfg", + "backtrace", "bytes", "libc", "mio", - "num_cpus", + "parking_lot", "pin-project-lite", + "signal-hook-registry", "socket2", "tokio-macros", - "windows-sys 0.48.0", + "windows-sys 0.52.0", +] + +[[package]] +name = "tokio-graceful-shutdown" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd7f403d0d4d3a3e1688c5650e733789ab8473d5fa53adc0b65d20096c2ae3c1" +dependencies = [ + "async-trait", + "atomic", + "bytemuck", + "miette", + "pin-project-lite", + "thiserror 2.0.12", + "tokio", + "tokio-util", + "tracing", ] [[package]] @@ -1771,63 +7716,118 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.1.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.15", + "syn 2.0.87", ] [[package]] name = "tokio-rustls" -version = "0.24.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0d409377ff5b1e3ca6437aa86c1eb7d40c134bfec254e44c830defa92669db5" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls", + "rustls 0.21.12", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.14" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" dependencies = [ "futures-core", "pin-project-lite", "tokio", ] +[[package]] +name = "tokio-tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" +dependencies = [ + "futures-util", + "log", + "rustls 0.21.12", + "tokio", + "tokio-rustls", + "tungstenite", + "webpki-roots 0.25.4", +] + [[package]] name = "tokio-util" -version = "0.7.8" +version = "0.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" +checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", - "tracing", +] + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[package]] +name = "toml" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + +[[package]] +name = "toml_datetime" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.22.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +dependencies = [ + "indexmap 2.9.0", + "serde", + "serde_spanned", + "toml_datetime", + "winnow", ] [[package]] name = "tonic" -version = "0.9.2" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3082666a3a6433f7f511c7192923fa1fe07c69332d3c6a2e6bb040b569199d5a" +checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e" dependencies = [ "async-stream", "async-trait", "axum", - "base64", + "base64 0.21.7", "bytes", - "futures-core", - "futures-util", "h2", "http", "http-body", @@ -1836,7 +7836,8 @@ dependencies = [ "percent-encoding", "pin-project", "prost", - "rustls-native-certs", + "rustls 0.21.12", + "rustls-native-certs 0.6.3", "rustls-pemfile", "tokio", "tokio-rustls", @@ -1849,15 +7850,15 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.9.2" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6fdaae4c2c638bb70fe42803a26fbd6fc6ac8c72f5c59f67ecc2a2dcabf4b07" +checksum = "9d021fc044c18582b9a2408cd0dd05b1596e3ecdb5c4df822bb0183545683889" dependencies = [ "prettyplease", "proc-macro2", "prost-build", "quote", - "syn 1.0.109", + "syn 2.0.87", ] [[package]] @@ -1868,10 +7869,10 @@ checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" dependencies = [ "futures-core", "futures-util", - "indexmap", + "indexmap 1.9.3", "pin-project", "pin-project-lite", - "rand", + "rand 0.8.5", "slab", "tokio", "tokio-util", @@ -1882,23 +7883,23 @@ dependencies = [ [[package]] name = "tower-layer" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] name = "tower-service" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.37" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "cfg-if", + "log", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -1906,20 +7907,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.24" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f57e3ca2a01450b1a921183a9c9cbfda207fd822cef4ccb00a65402cbba7a74" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.15", + "syn 2.0.87", ] [[package]] name = "tracing-core" -version = "0.1.30" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ "once_cell", "valuable", @@ -1927,20 +7928,20 @@ dependencies = [ [[package]] name = "tracing-log" -version = "0.1.3" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" dependencies = [ - "lazy_static", "log", + "once_cell", "tracing-core", ] [[package]] name = "tracing-subscriber" -version = "0.3.17" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a651bc37f915e81f087d86e62a18eec5f79550c7faff886f7090b4ea757c77" +checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" dependencies = [ "nu-ansi-term", "sharded-slab", @@ -1952,45 +7953,149 @@ dependencies = [ [[package]] name = "try-lock" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9" +dependencies = [ + "byteorder", + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand 0.8.5", + "rustls 0.21.12", + "sha1", + "thiserror 1.0.68", + "url", + "utf-8", + "webpki-roots 0.24.0", +] [[package]] name = "typenum" -version = "1.16.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] -name = "typewit" -version = "1.4.0" +name = "unicase" +version = "2.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4061a10d4d8f3081a8ccc025182afd8434302d8d4b4503ec6d8510d09df08c2d" +checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" [[package]] name = "unicode-ident" -version = "1.0.8" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "unicode-width" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "unicode-width" -version = "0.1.10" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", + "subtle", +] + +[[package]] +name = "unreachable" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" +checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" +dependencies = [ + "void", +] [[package]] name = "untrusted" -version = "0.7.1" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "uriparse" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff" +dependencies = [ + "fnv", + "lazy_static", +] + +[[package]] +name = "url" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" [[package]] name = "utf8parse" -version = "0.2.1" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" +checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" [[package]] name = "valuable" @@ -1998,58 +8103,107 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "void" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" + +[[package]] +name = "walkdir" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] [[package]] name = "want" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ - "log", "try-lock", ] +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.14.2+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +dependencies = [ + "wit-bindgen-rt", +] + [[package]] name = "wasm-bindgen" -version = "0.2.84" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", + "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.84" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.87", "wasm-bindgen-shared", ] +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" +dependencies = [ + "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "wasm-bindgen-macro" -version = "0.2.84" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2057,42 +8211,87 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.84" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.87", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.84" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "web-sys" -version = "0.3.61" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" +checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" dependencies = [ "js-sys", "wasm-bindgen", ] [[package]] -name = "which" -version = "4.4.0" +name = "web-time" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2441c784c52b289a054b7201fc93253e288f094e2f4be9058343127c4226a269" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ - "either", - "libc", - "once_cell", + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-root-certs" +version = "0.26.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75c7f0ef91146ebfb530314f5f1d24528d7f0767efbfd31dce919275413e393e" +dependencies = [ + "webpki-root-certs 1.0.0", +] + +[[package]] +name = "webpki-root-certs" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01a83f7e1a9f8712695c03eabe9ed3fbca0feff0152f33f12593e5a6303cb1a4" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webpki-roots" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888" +dependencies = [ + "rustls-webpki 0.101.7", +] + +[[package]] +name = "webpki-roots" +version = "0.25.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" + +[[package]] +name = "wide" +version = "0.7.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41b5576b9a81633f3e8df296ce0063042a73507636cbe956c61133dd7034ab22" +dependencies = [ + "bytemuck", + "safe_arch", ] [[package]] @@ -2111,6 +8310,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys 0.59.0", +] + [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" @@ -2118,20 +8326,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] -name = "windows-sys" -version = "0.42.0" +name = "windows-core" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" 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", + "windows-targets 0.52.6", ] +[[package]] +name = "windows-link" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" + [[package]] name = "windows-sys" version = "0.45.0" @@ -2147,7 +8355,25 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.0", + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -2167,17 +8393,33 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", ] [[package]] @@ -2188,9 +8430,15 @@ checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" @@ -2200,9 +8448,15 @@ checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" @@ -2212,9 +8466,21 @@ checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" @@ -2224,9 +8490,15 @@ checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" @@ -2236,9 +8508,15 @@ checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" @@ -2248,9 +8526,15 @@ checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" @@ -2260,18 +8544,221 @@ checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] -name = "yansi" +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.6.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + +[[package]] +name = "wit-bindgen-rt" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" +dependencies = [ + "bitflags 2.9.1", +] + +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + +[[package]] +name = "wyz" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + +[[package]] +name = "x509-parser" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8" +dependencies = [ + "asn1-rs", + "base64 0.13.1", + "data-encoding", + "der-parser", + "lazy_static", + "nom", + "oid-registry", + "rusticata-macros", + "thiserror 1.0.68", + "time", +] + +[[package]] +name = "yansi" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" + +[[package]] +name = "yoke" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure 0.13.1", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "zerofrom" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure 0.13.1", +] [[package]] name = "zeroize" -version = "1.6.0" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "zstd" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" +checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.15+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb81183ddd97d0c74cedf1d50d85c8d08c1b8b68ee863bdee9e706eedba1a237" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/Cargo.toml b/Cargo.toml index 3184a6c..5b3684a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,24 +8,41 @@ edition = "2021" [dependencies] angry-purple-tiger = { version = "1", features = ["helium_crypto"]} anyhow = "1.0.71" +async-trait = "0.1" dialoguer = "0.10.2" clap = { version = "4.2.7", features = ["derive", "env"] } futures = "0.3.28" -helium-crypto = "0.6.9" +helium-crypto = { version = "0.9" } helium-proto = { git = "https://github.com/helium/proto", branch="master", features=["services"]} +helium-lib = { git = "https://github.com/helium/helium-wallet-rs", branch = "master" } h3o = "0" ipnet = "2.7.2" -prost = "0.11.9" rand = "0.8.5" serde = { version = "1.0.162", features = ["derive"] } serde_json = "1.0.96" serde_test = "1.0.162" +serde_with = "1.14" +thiserror = "1.0" tokio = { version = "1.28.0", features = ["macros", "rt-multi-thread"] } tokio-stream = "0.1.14" -tonic = { version = "0.9.2", features = ["tls", "tls-roots"] } +tonic = { version = "0.10", features = ["tls", "tls-roots"] } +prost = "0.12" tracing = "0.1.37" tracing-subscriber = "0.3.17" [dev-dependencies] pretty_assertions = "1.3.0" temp-dir = "0.1.11" + +[patch.crates-io] +anchor-lang = { git = "https://github.com/madninja/anchor.git", branch = "madninja/const_pubkey" } + +# When attempting to test lcoal changes without needing to push a branch you can +# patch the github url to point to your local repo. +# +# +# [patch.'https://github.com/helium/proto'] +# helium-proto = { path = "../proto" } + +# [patch.'https://github.com/helium/helium-wallet-rs'] +# helium-lib = { path = "../helium-wallet-rs/helium-lib" } diff --git a/README.md b/README.md index b44e79b..acbd307 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,126 @@ Cli tool to interact with [Helium Config Service](https://github.com/helium/orac ## Installation +### From Binary Download the latest binary for your platform here from [Releases](https://github.com/helium/helium-config-service-cli/releases/latest). Unpack the zip file and place the `helium-config-service-cli` binary in your `$PATH` somewhere. + +## Usage + +At any time use `-h` or `--help` to get more help for a command. + +### Create a keypair + +If you dont already have a helium keypair for interacting with this cli then lets generate one + +``` + helium-config-service-cli env generate-keypair +``` + +### Init the env + +``` + helium-config-service-cli env init + ----- Leave blank to ignore... + Config Service Host: http://0.0.0.0:8000 + Solana RPC URL: http://127.0.0.1:8999 + Keypair Location: ./keypair.bin + ----- Enter all zeros to ignore... + Net ID: 000000 + ----- Enter zero to ignore... + Assigned OUI: 0 + Default Max Copies: 0 + + Put these in your environment + ------------------------------------ + HELIUM_CONFIG_HOST=http://0.0.0.0:8080 + SOLANA_URL=http://127.0.0.1:8899 + HELIUM_KEYPAIR_BIN=./keypair.bin +``` + +### Displaying + +Lets display the information about your env + +``` + HELIUM_CONFIG_HOST= HELIUM_KEYPAIR_BIN=<./keypairn.bin> SOLANA_URL= helium-config-service-cli env info + { + "arguments": { + "config_host": "http://0.0.0.0:8080", + "helium_public_key_from_keypair": "14VeYhArVg1P6jN5pX4Czq61gjtAHZ2fz6Gh14ms1F4TNf1NQro", + "key_type_from_keypair": "ed25519", + "keypair": "./keypair2.bin", + "max_copies": null, + "net_id": null, + "oui": null, + "solana_public_key_from_keypair": "EjrsaU42xeuMqACKuseU3FFHRZyCmfeFATNmMAae9HTp", + "solana_url": "http://127.0.0.1:8899" + }, + "environment": { + "HELIUM_CONFIG_HOST": "http://0.0.0.0:8080", + "HELIUM_KEYPAIR_BIN": "./keypair2.bin", + "HELIUM_MAX_COPIES": "unset", + "HELIUM_NET_ID": "unset", + "HELIUM_OUI": "unset", + "SOLANA_URL": "http://127.0.0.1:8899", + "helium_public_key_from_keypair": "14VeYhArVg1P6jN5pX4Czq61gjtAHZ2fz6Gh14ms1F4TNf1NQro", + "key_type_from_keypair": "ed25519", + "solana_public_key_from_keypair": "EjrsaU42xeuMqACKuseU3FFHRZyCmfeFATNmMAae9HTp" + } + } +``` + +Here you'll notice all the info about your env and your keypair. + +### Org commands + +Going forward im ommiting the env vars from the commands for simplicity sake. If you want to include all the requried ones they should be `HELIUM_CONFIG_HOST`, `HELIUM_KEYPAIR_BIN`, `HELIUM_CONFIG_PUBKEY`, `SOLANA_URL`. + +Commands that interact direclty with solana require the account to have [SOL](https://docs.helium.com/tokens/sol-token) for executing the transactions. Certain commands also require [DC](https://docs.helium.com/tokens/data-credit) to be present in the account. + +``` + helium-config-service-cli org create-helium --owner --net-id --commit + == Helium Organization Created: 2242 == + == Call `org get --oui 2242 to see its details` == +``` + +``` + helium-config-service-cli org approve --oui 2242 --commit + == Organization Approved: 2242 == +``` + +``` + helium-config-service-cli org enable --oui 2242 --commit + OUI 2242 enabled +``` + +``` + helium-config-service-cli org update devaddr-constraint-add --oui 2245 --num-blocks 3 --commit + == Organization Updated == + == Call `org get --oui 2242 to see its details == + + helium-config-service-cli org get --oui 2242 + { + "org": { + "oui": 2242, + "address": , + "owner": , + "escrow_key": "OUI_2242", + "delegate_keys": [ + + ], + "approved": true, + "locked": false + }, + "net_id": "00003C", + "devaddr_constraints": [ + { + "start_addr": "780001B9", + "end_addr": "780001D1" + } + ] + } +``` diff --git a/src/clients/admin.rs b/src/clients/admin.rs new file mode 100644 index 0000000..5c501a3 --- /dev/null +++ b/src/clients/admin.rs @@ -0,0 +1,93 @@ +use crate::{ + clients::utils::{MsgSign, MsgVerify}, + impl_sign, impl_verify, + region::Region, + region_params::RegionParams, + KeyType, Result, +}; +use helium_crypto::{Keypair, PublicKey}; +use helium_proto::{ + services::iot_config::{ + admin_client, AdminAddKeyReqV1, AdminKeyResV1, AdminLoadRegionReqV1, AdminLoadRegionResV1, + AdminRemoveKeyReqV1, + }, + Message, +}; +use std::str::FromStr; + +pub struct AdminClient { + client: admin_client::AdminClient, + server_pubkey: PublicKey, +} + +impl AdminClient { + pub async fn new(host: &str, server_pubkey: &str) -> Result { + Ok(Self { + client: admin_client::AdminClient::connect(host.to_owned()).await?, + server_pubkey: helium_crypto::PublicKey::from_str(server_pubkey)?, + }) + } + + pub async fn add_key( + &mut self, + pubkey: &PublicKey, + key_type: KeyType, + keypair: &Keypair, + ) -> Result { + let mut request = AdminAddKeyReqV1 { + pubkey: pubkey.into(), + key_type: key_type.into(), + signer: keypair.public_key().into(), + signature: vec![], + }; + request.signature = request.sign(keypair)?; + self.client + .add_key(request) + .await? + .into_inner() + .verify(&self.server_pubkey) + } + + pub async fn remove_key(&mut self, pubkey: &PublicKey, keypair: &Keypair) -> Result { + let mut request = AdminRemoveKeyReqV1 { + pubkey: pubkey.into(), + signer: keypair.public_key().into(), + signature: vec![], + }; + request.signature = request.sign(keypair)?; + self.client + .remove_key(request) + .await? + .into_inner() + .verify(&self.server_pubkey) + } + + pub async fn load_region( + &mut self, + region: Region, + params: RegionParams, + indexes: Vec, + keypair: &Keypair, + ) -> Result { + let mut request = AdminLoadRegionReqV1 { + region: region.into(), + params: Some(params.into()), + hex_indexes: indexes, + signer: keypair.public_key().into(), + signature: vec![], + }; + request.signature = request.sign(keypair)?; + self.client + .load_region(request) + .await? + .into_inner() + .verify(&self.server_pubkey) + } +} + +impl_sign!(AdminAddKeyReqV1, signature); +impl_sign!(AdminRemoveKeyReqV1, signature); +impl_sign!(AdminLoadRegionReqV1, signature); + +impl_verify!(AdminKeyResV1, signature); +impl_verify!(AdminLoadRegionResV1, signature); diff --git a/src/clients/gateway.rs b/src/clients/gateway.rs new file mode 100644 index 0000000..e5751d8 --- /dev/null +++ b/src/clients/gateway.rs @@ -0,0 +1,64 @@ +use crate::{ + clients::utils::{MsgSign, MsgVerify}, + cmds::gateway::GatewayInfo, + impl_sign, impl_verify, Result, +}; +use anyhow::anyhow; +use helium_crypto::{Keypair, PublicKey}; +use helium_proto::{ + services::iot_config::{ + gateway_client, GatewayInfoReqV1, GatewayInfoResV1, GatewayLocationReqV1, + GatewayLocationResV1, + }, + Message, +}; +use std::str::FromStr; + +pub struct GatewayClient { + client: gateway_client::GatewayClient, + server_pubkey: PublicKey, +} + +impl GatewayClient { + pub async fn new(host: &str, server_pubkey: &str) -> Result { + Ok(Self { + client: gateway_client::GatewayClient::connect(host.to_owned()).await?, + server_pubkey: helium_crypto::PublicKey::from_str(server_pubkey)?, + }) + } + + pub async fn location( + &mut self, + hotspot: &PublicKey, + keypair: &Keypair, + ) -> Result { + let mut request = GatewayLocationReqV1 { + gateway: hotspot.into(), + signer: keypair.public_key().into(), + signature: vec![], + }; + request.signature = request.sign(keypair)?; + let response = self.client.location(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + Ok(response) + } + + pub async fn info(&mut self, hotspot: &PublicKey, keypair: &Keypair) -> Result { + let mut request = GatewayInfoReqV1 { + address: hotspot.into(), + signer: keypair.public_key().into(), + signature: vec![], + }; + request.signature = request.sign(keypair)?; + let response = self.client.info(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + let info = response.info.ok_or_else(|| anyhow!("No hotspot found"))?; + info.try_into() + } +} + +impl_sign!(GatewayLocationReqV1, signature); +impl_sign!(GatewayInfoReqV1, signature); + +impl_verify!(GatewayLocationResV1, signature); +impl_verify!(GatewayInfoResV1, signature); diff --git a/src/clients/mod.rs b/src/clients/mod.rs new file mode 100644 index 0000000..f965027 --- /dev/null +++ b/src/clients/mod.rs @@ -0,0 +1,11 @@ +mod admin; +mod gateway; +mod org; +mod route; +mod utils; + +pub use admin::AdminClient; +pub use gateway::GatewayClient; +pub use helium_lib::client::SolanaClient; +pub use org::*; +pub use route::*; diff --git a/src/clients/org.rs b/src/clients/org.rs new file mode 100644 index 0000000..6fa9fdb --- /dev/null +++ b/src/clients/org.rs @@ -0,0 +1,260 @@ +use helium_crypto::{Keypair, PublicKey}; +use helium_lib::{ + dao, + error::Error, + iot::{ + self, devaddr_constraint, + net_id::{self, NetIdIdentifier}, + net_id_key, + organization::{self, OrgIdentifier}, + organization_delegate, routing_manager_key, + }, + iot_routing_manager::{self}, + keypair::to_pubkey, + solana_sdk::{instruction::Instruction, pubkey::Pubkey}, +}; +use helium_proto::{ + services::iot_config::{ + org_client, OrgDisableReqV1, OrgDisableResV1, OrgEnableReqV1, OrgEnableResV1, OrgGetReqV2, + OrgListReqV2, OrgListResV2, OrgResV2, + }, + Message, +}; +use std::str::FromStr; + +use crate::{ + clients::{ + utils::{current_timestamp, MsgSign, MsgVerify}, + SolanaClient, + }, + helium_netids::HeliumNetId, + impl_sign, impl_verify, NetId, OrgList, OrgResponse, Oui, Result, +}; + +pub struct OrgClient { + client: org_client::OrgClient, + server_pubkey: PublicKey, +} + +impl OrgClient { + pub async fn new(host: &str, server_pubkey: &str) -> Result { + Ok(Self { + client: org_client::OrgClient::connect(host.to_owned()).await?, + server_pubkey: helium_crypto::PublicKey::from_str(server_pubkey)?, + }) + } + + pub async fn list(&mut self) -> Result { + let request = OrgListReqV2 {}; + let response = self.client.list_v2(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + Ok(response.into()) + } + + pub async fn get(&mut self, oui: Oui) -> Result { + let request = OrgGetReqV2 { oui }; + let response = self.client.get_v2(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + Ok(response.into()) + } + + pub async fn enable(&mut self, oui: u64, keypair: Keypair) -> Result<()> { + let mut request = OrgEnableReqV1 { + oui, + timestamp: current_timestamp()?, + signer: keypair.public_key().into(), + signature: vec![], + }; + request.signature = request.sign(&keypair)?; + let response = self.client.enable(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + Ok(()) + } + + pub async fn disable(&mut self, oui: u64, keypair: Keypair) -> Result<()> { + let mut request = OrgDisableReqV1 { + oui, + timestamp: current_timestamp()?, + signer: keypair.public_key().into(), + signature: vec![], + }; + request.signature = request.sign(&keypair)?; + let response = self.client.disable(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + Ok(()) + } +} + +pub struct OrgSolanaOperations; + +pub enum OrgType { + Helium(HeliumNetId), + Roamer(NetId), +} + +impl OrgSolanaOperations { + pub async fn create_net_id( + client: &SolanaClient, + net_id: NetId, + ) -> Result<(Pubkey, Instruction), Error> { + let payer = client.pubkey()?; + let (net_id_key, create_net_id_ix) = net_id::create( + client, + payer, + iot_routing_manager::types::InitializeNetIdArgsV0 { net_id }, + Some(payer), + ) + .await?; + + Ok((net_id_key, create_net_id_ix)) + } + + pub async fn create_org( + client: &SolanaClient, + owner: Option, + recipient: Option, + org_type: OrgType, + ) -> Result<(Pubkey, Instruction), Error> { + let payer = client.pubkey()?; + let sub_dao_key = dao::SubDao::Iot.key(); + let routing_manager_key = routing_manager_key(&sub_dao_key); + let authority = match owner { + Some(owner_key) => to_pubkey(&owner_key)?, + None => payer, + }; + + let recipient = match recipient { + Some(recipient_key) => to_pubkey(&recipient_key)?, + None => payer, + }; + + let net_id_key = match org_type { + OrgType::Helium(net_id) => net_id_key(&routing_manager_key, u32::from(net_id.id())), + OrgType::Roamer(net_id) => iot::net_id_key(&routing_manager_key, net_id), + }; + + let (organization_key, create_org_ix) = + iot::organization::create(client, payer, net_id_key, Some(authority), Some(recipient)) + .await?; + + Ok((organization_key, create_org_ix)) + } + + pub async fn approve(client: &SolanaClient, oui: u64) -> Result { + let authority = client.pubkey()?; + let (organization_key, organization) = + organization::ensure_exists(client, OrgIdentifier::Oui(oui)).await?; + let approve_org_ix = + iot::organization::approve(client, authority, organization_key, organization.net_id) + .await?; + + Ok(approve_org_ix) + } + + pub async fn update_owner( + client: &SolanaClient, + oui: u64, + authority: PublicKey, + ) -> Result<(Pubkey, Instruction), Error> { + let current_authority = client.pubkey()?; + let (organization_key, _organization) = + organization::ensure_exists(client, OrgIdentifier::Oui(oui)).await?; + let ix = organization::update( + client, + current_authority, + organization_key, + iot_routing_manager::types::UpdateOrganizationArgsV0 { + authority: Some(to_pubkey(&authority)?), + }, + ) + .await?; + + Ok((organization_key, ix)) + } + + pub async fn add_delegate_key( + client: &SolanaClient, + oui: u64, + delegate_key: PublicKey, + ) -> Result { + let payer = client.pubkey()?; + let (organization_key, _organization) = + organization::ensure_exists(client, OrgIdentifier::Oui(oui)).await?; + + Ok(organization_delegate::create( + client, + payer, + to_pubkey(&delegate_key)?, + organization_key, + None, + ) + .await? + .1) + } + + pub async fn remove_delegate_key( + client: &SolanaClient, + oui: u64, + delegate_key: PublicKey, + ) -> Result { + let authority = client.pubkey()?; + let (organization_key, _organization) = + organization::ensure_exists(client, OrgIdentifier::Oui(oui)).await?; + + Ok(organization_delegate::remove( + client, + authority, + to_pubkey(&delegate_key)?, + organization_key, + ) + .await?) + } + + pub async fn add_devaddr_constraint( + client: &SolanaClient, + oui: u64, + num_blocks: u32, + ) -> Result { + let payer = client.pubkey()?; + let (organization_key, organization) = + organization::ensure_exists(client, OrgIdentifier::Oui(oui)).await?; + + let (net_id_key, net_id) = + net_id::ensure_exists(client, NetIdIdentifier::Pubkey(organization.net_id)).await?; + + net_id + .current_addr_offset + .checked_add(num_blocks as u64 * 8) + .ok_or(Error::other("No Available Addrs".to_string()))?; + + Ok(devaddr_constraint::create( + client, + payer, + iot_routing_manager::types::InitializeDevaddrConstraintArgsV0 { num_blocks }, + organization_key, + net_id_key, + None, + ) + .await? + .1) + } + + pub async fn remove_devaddr_constraint( + client: &SolanaClient, + devaddr_constraint_key: PublicKey, + ) -> Result { + let authority = client.pubkey()?; + Ok( + devaddr_constraint::remove(client, authority, to_pubkey(&devaddr_constraint_key)?) + .await?, + ) + } +} + +impl_sign!(OrgEnableReqV1, signature); +impl_sign!(OrgDisableReqV1, signature); + +impl_verify!(OrgListResV2, signature); +impl_verify!(OrgResV2, signature); +impl_verify!(OrgEnableResV1, signature); +impl_verify!(OrgDisableResV1, signature); diff --git a/src/client.rs b/src/clients/route.rs similarity index 53% rename from src/client.rs rename to src/clients/route.rs index aa7da61..faee961 100644 --- a/src/client.rs +++ b/src/clients/route.rs @@ -1,291 +1,192 @@ use crate::{ - cmds::gateway::GatewayInfo, hex_field, region::Region, region_params::RegionParams, - route::Route, DevaddrConstraint, DevaddrRange, Eui, HeliumNetId, KeyType, NetId, OrgList, - OrgResponse, Oui, Result, RouteList, Skf, SkfUpdate, + clients::utils::{current_timestamp, MsgSign, MsgVerify}, + hex_field, impl_sign, impl_verify, + route::Route, + DevaddrRange, Eui, Oui, Result, RouteList, Skf, SkfUpdate, }; use anyhow::anyhow; -use helium_crypto::{Keypair, PublicKey, Sign, Verify}; +use helium_crypto::{Keypair, PublicKey}; use helium_proto::{ services::iot_config::{ - admin_client, gateway_client, org_client, - org_update_req_v1::{ - update_v1::Update, DelegateKeyUpdateV1, DevaddrConstraintUpdateV1, UpdateV1, - }, - route_client, - route_skf_update_req_v1::RouteSkfUpdateV1, - ActionV1, AdminAddKeyReqV1, AdminKeyResV1, AdminLoadRegionReqV1, AdminLoadRegionResV1, - AdminRemoveKeyReqV1, GatewayInfoReqV1, GatewayInfoResV1, GatewayLocationReqV1, - GatewayLocationResV1, OrgCreateHeliumReqV1, OrgCreateRoamerReqV1, OrgEnableReqV1, - OrgEnableResV1, OrgGetReqV1, OrgListReqV1, OrgListResV1, OrgResV1, OrgUpdateReqV1, - RouteCreateReqV1, RouteDeleteReqV1, RouteDevaddrRangesResV1, RouteEuisResV1, - RouteGetDevaddrRangesReqV1, RouteGetEuisReqV1, RouteGetReqV1, RouteListReqV1, - RouteListResV1, RouteResV1, RouteSkfGetReqV1, RouteSkfListReqV1, RouteSkfUpdateReqV1, - RouteSkfUpdateResV1, RouteUpdateDevaddrRangesReqV1, RouteUpdateEuisReqV1, RouteUpdateReqV1, + route_client, route_skf_update_req_v1::RouteSkfUpdateV1, ActionV1, RouteCreateReqV1, + RouteDeleteReqV1, RouteDevaddrRangesResV1, RouteEuisResV1, RouteGetDevaddrRangesReqV1, + RouteGetEuisReqV1, RouteGetReqV1, RouteListReqV1, RouteListResV1, RouteResV1, + RouteSkfGetReqV1, RouteSkfListReqV1, RouteSkfUpdateReqV1, RouteSkfUpdateResV1, + RouteUpdateDevaddrRangesReqV1, RouteUpdateEuisReqV1, RouteUpdateReqV1, }, Message, }; -use std::{ - str::FromStr, - time::{SystemTime, UNIX_EPOCH}, -}; +use std::str::FromStr; + +pub type EuiClient = RouteClient; +pub type DevaddrClient = RouteClient; +pub type SkfClient = RouteClient; -pub struct OrgClient { - client: org_client::OrgClient, - server_pubkey: PublicKey, -} pub struct RouteClient { client: route_client::RouteClient, server_pubkey: PublicKey, } -pub struct AdminClient { - client: admin_client::AdminClient, - server_pubkey: PublicKey, -} - -pub struct GatewayClient { - client: gateway_client::GatewayClient, - server_pubkey: PublicKey, -} - -pub type EuiClient = RouteClient; -pub type DevaddrClient = RouteClient; -pub type SkfClient = RouteClient; - -impl GatewayClient { +impl RouteClient { pub async fn new(host: &str, server_pubkey: &str) -> Result { Ok(Self { - client: gateway_client::GatewayClient::connect(host.to_owned()).await?, + client: route_client::RouteClient::connect(host.to_owned()).await?, server_pubkey: helium_crypto::PublicKey::from_str(server_pubkey)?, }) } - pub async fn location( - &mut self, - hotspot: &PublicKey, - keypair: &Keypair, - ) -> Result { - let mut request = GatewayLocationReqV1 { - gateway: hotspot.into(), + pub async fn list(&mut self, oui: Oui, keypair: &Keypair) -> Result { + let mut request = RouteListReqV1 { + oui, + timestamp: current_timestamp()?, signer: keypair.public_key().into(), signature: vec![], }; request.signature = request.sign(keypair)?; - let response = self.client.location(request).await?.into_inner(); + let response = self.client.list(request).await?.into_inner(); response.verify(&self.server_pubkey)?; - Ok(response) + Ok(response.into()) } - pub async fn info(&mut self, hotspot: &PublicKey, keypair: &Keypair) -> Result { - let mut request = GatewayInfoReqV1 { - address: hotspot.into(), - signer: keypair.public_key().into(), + pub async fn get(&mut self, id: &str, keypair: &Keypair) -> Result { + let mut request = RouteGetReqV1 { + id: id.into(), signature: vec![], + signer: keypair.public_key().into(), + timestamp: current_timestamp()?, }; request.signature = request.sign(keypair)?; - let response = self.client.info(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - let info = response.info.ok_or_else(|| anyhow!("No hotspot found"))?; - info.try_into() - } -} - -impl OrgClient { - pub async fn new(host: &str, server_pubkey: &str) -> Result { - Ok(Self { - client: org_client::OrgClient::connect(host.to_owned()).await?, - server_pubkey: helium_crypto::PublicKey::from_str(server_pubkey)?, - }) - } - - pub async fn list(&mut self) -> Result { - let request = OrgListReqV1 {}; - let response = self.client.list(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - Ok(response.into()) - } - - pub async fn get(&mut self, oui: Oui) -> Result { - let request = OrgGetReqV1 { oui }; let response = self.client.get(request).await?.into_inner(); response.verify(&self.server_pubkey)?; - Ok(response.into()) + response + .route + .map(Route::from) + .ok_or(anyhow!("Route get failed")) } - pub async fn create_helium( - &mut self, - owner: &PublicKey, - payer: &PublicKey, - delegates: Vec, - devaddr_count: u64, - net_id: HeliumNetId, - keypair: &Keypair, - ) -> Result { - let mut request = OrgCreateHeliumReqV1 { - owner: owner.into(), - payer: payer.into(), - net_id: net_id as i32, - devaddrs: devaddr_count, + pub async fn create_route(&mut self, route: Route, keypair: &Keypair) -> Result { + let mut request = RouteCreateReqV1 { + oui: route.oui, + route: Some(route.into()), timestamp: current_timestamp()?, - delegate_keys: delegates.iter().map(|key| key.into()).collect(), signer: keypair.public_key().into(), signature: vec![], }; request.signature = request.sign(keypair)?; - let response = self.client.create_helium(request).await?.into_inner(); + let response = self.client.create(request).await?.into_inner(); response.verify(&self.server_pubkey)?; - Ok(response.into()) + response + .route + .map(Route::from) + .ok_or(anyhow!("Route create failed")) } - pub async fn create_roamer( - &mut self, - owner: &PublicKey, - payer: &PublicKey, - delegates: Vec, - net_id: NetId, - keypair: Keypair, - ) -> Result { - let mut request = OrgCreateRoamerReqV1 { - owner: owner.into(), - payer: payer.into(), - net_id, + pub async fn delete(&mut self, id: &str, keypair: &Keypair) -> Result { + let mut request = RouteDeleteReqV1 { + id: id.into(), timestamp: current_timestamp()?, - delegate_keys: delegates.iter().map(|key| key.into()).collect(), signer: keypair.public_key().into(), signature: vec![], }; - request.signature = request.sign(&keypair)?; - let response = self.client.create_roamer(request).await?.into_inner(); + request.signature = request.sign(keypair)?; + let response = self.client.delete(request).await?.into_inner(); response.verify(&self.server_pubkey)?; - Ok(response.into()) + response + .route + .map(Route::from) + .ok_or(anyhow!("Route delete failed")) } - pub async fn enable(&mut self, oui: u64, keypair: Keypair) -> Result<()> { - let mut request = OrgEnableReqV1 { - oui, + pub async fn push(&mut self, route: Route, keypair: &Keypair) -> Result { + let mut request = RouteUpdateReqV1 { + route: Some(route.into()), timestamp: current_timestamp()?, signer: keypair.public_key().into(), signature: vec![], }; - request.signature = request.sign(&keypair)?; - let response = self.client.enable(request).await?.into_inner(); + request.signature = request.sign(keypair)?; + let response = self.client.update(request).await?.into_inner(); response.verify(&self.server_pubkey)?; - Ok(()) + response + .route + .map(Route::from) + .ok_or(anyhow!("Route update push failed")) } +} - async fn request_update( - &mut self, - oui: u64, - update: UpdateV1, - keypair: Keypair, - ) -> Result { - let mut request = OrgUpdateReqV1 { - oui, - updates: vec![update], +impl EuiClient { + pub async fn get_euis(&mut self, route_id: &str, keypair: &Keypair) -> Result> { + let mut request = RouteGetEuisReqV1 { + route_id: route_id.to_string(), timestamp: current_timestamp()?, signer: keypair.public_key().into(), signature: vec![], }; - request.signature = request.sign(&keypair)?; - let response = self.client.update(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - Ok(response.into()) - } - - pub async fn update_owner( - &mut self, - oui: u64, - owner: &PublicKey, - keypair: Keypair, - ) -> Result { - let update = UpdateV1 { - update: Some(Update::Owner(owner.into())), - }; - self.request_update(oui, update, keypair).await - } - - pub async fn update_payer( - &mut self, - oui: u64, - payer: &PublicKey, - keypair: Keypair, - ) -> Result { - let update = UpdateV1 { - update: Some(Update::Payer(payer.into())), - }; - self.request_update(oui, update, keypair).await - } + request.signature = request.sign(keypair)?; + let mut stream = self.client.get_euis(request).await?.into_inner(); - pub async fn add_delegate_key( - &mut self, - oui: u64, - delegate_key: &PublicKey, - keypair: Keypair, - ) -> Result { - let update = UpdateV1 { - update: Some(Update::DelegateKey(DelegateKeyUpdateV1 { - delegate_key: delegate_key.into(), - action: ActionV1::Add as i32, - })), - }; - self.request_update(oui, update, keypair).await - } + let mut pairs = vec![]; + while let Some(pair) = stream.message().await? { + pairs.push(pair.into()); + } - pub async fn remove_delegate_key( - &mut self, - oui: u64, - delegate_key: &PublicKey, - keypair: Keypair, - ) -> Result { - let update = UpdateV1 { - update: Some(Update::DelegateKey(DelegateKeyUpdateV1 { - delegate_key: delegate_key.into(), - action: ActionV1::Remove as i32, - })), - }; - self.request_update(oui, update, keypair).await + Ok(pairs) } - pub async fn add_devaddr_constraint( - &mut self, - oui: u64, - constraint: DevaddrConstraint, - keypair: Keypair, - ) -> Result { - let update = UpdateV1 { - update: Some(Update::Constraint(DevaddrConstraintUpdateV1 { - constraint: Some(constraint.into()), - action: ActionV1::Add as i32, - })), - }; - self.request_update(oui, update, keypair).await + pub async fn add_euis(&mut self, euis: Vec, keypair: &Keypair) -> Result { + let timestamp = current_timestamp()?; + let signer: Vec = keypair.public_key().into(); + let route_euis: Vec = euis + .into_iter() + .flat_map(|eui| -> Result { + let mut request = RouteUpdateEuisReqV1 { + action: ActionV1::Add.into(), + timestamp, + signature: vec![], + signer: signer.clone(), + eui_pair: Some(eui.into()), + }; + request.signature = request.sign(keypair)?; + Ok(request) + }) + .collect(); + let request = futures::stream::iter(route_euis); + let response = self.client.update_euis(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + Ok(response) } - pub async fn remove_devaddr_constraint( + pub async fn remove_euis( &mut self, - oui: u64, - constraint: DevaddrConstraint, - keypair: Keypair, - ) -> Result { - let update = UpdateV1 { - update: Some(Update::Constraint(DevaddrConstraintUpdateV1 { - constraint: Some(constraint.into()), - action: ActionV1::Remove as i32, - })), - }; - self.request_update(oui, update, keypair).await + euis: Vec, + keypair: &Keypair, + ) -> Result { + let timestamp = current_timestamp()?; + let signer: Vec = keypair.public_key().into(); + let route_euis: Vec = euis + .into_iter() + .flat_map(|eui| -> Result { + let mut request = RouteUpdateEuisReqV1 { + action: ActionV1::Remove.into(), + timestamp, + signature: vec![], + signer: signer.clone(), + eui_pair: Some(eui.into()), + }; + request.signature = request.sign(keypair)?; + Ok(request) + }) + .collect(); + let request = futures::stream::iter(route_euis); + let response = self.client.update_euis(request).await?.into_inner(); + response.verify(&self.server_pubkey)?; + Ok(response) } - pub async fn add_devaddr_slab( - &mut self, - oui: u64, - slab_count: u64, - keypair: Keypair, - ) -> Result { - let update = UpdateV1 { - update: Some(Update::Devaddrs(slab_count)), - }; - self.request_update(oui, update, keypair).await + pub async fn delete_euis(&mut self, route_id: String, keypair: &Keypair) -> Result { + let euis = self.get_euis(&route_id, keypair).await?; + self.remove_euis(euis, keypair).await?; + Ok(()) } } @@ -381,169 +282,6 @@ impl DevaddrClient { } } -impl EuiClient { - pub async fn get_euis(&mut self, route_id: &str, keypair: &Keypair) -> Result> { - let mut request = RouteGetEuisReqV1 { - route_id: route_id.to_string(), - timestamp: current_timestamp()?, - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - let mut stream = self.client.get_euis(request).await?.into_inner(); - - let mut pairs = vec![]; - while let Some(pair) = stream.message().await? { - pairs.push(pair.into()); - } - - Ok(pairs) - } - - pub async fn add_euis(&mut self, euis: Vec, keypair: &Keypair) -> Result { - let timestamp = current_timestamp()?; - let signer: Vec = keypair.public_key().into(); - let route_euis: Vec = euis - .into_iter() - .flat_map(|eui| -> Result { - let mut request = RouteUpdateEuisReqV1 { - action: ActionV1::Add.into(), - timestamp, - signature: vec![], - signer: signer.clone(), - eui_pair: Some(eui.into()), - }; - request.signature = request.sign(keypair)?; - Ok(request) - }) - .collect(); - let request = futures::stream::iter(route_euis); - let response = self.client.update_euis(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - Ok(response) - } - - pub async fn remove_euis( - &mut self, - euis: Vec, - keypair: &Keypair, - ) -> Result { - let timestamp = current_timestamp()?; - let signer: Vec = keypair.public_key().into(); - let route_euis: Vec = euis - .into_iter() - .flat_map(|eui| -> Result { - let mut request = RouteUpdateEuisReqV1 { - action: ActionV1::Remove.into(), - timestamp, - signature: vec![], - signer: signer.clone(), - eui_pair: Some(eui.into()), - }; - request.signature = request.sign(keypair)?; - Ok(request) - }) - .collect(); - let request = futures::stream::iter(route_euis); - let response = self.client.update_euis(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - Ok(response) - } - - pub async fn delete_euis(&mut self, route_id: String, keypair: &Keypair) -> Result { - let euis = self.get_euis(&route_id, keypair).await?; - self.remove_euis(euis, keypair).await?; - Ok(()) - } -} - -impl RouteClient { - pub async fn new(host: &str, server_pubkey: &str) -> Result { - Ok(Self { - client: route_client::RouteClient::connect(host.to_owned()).await?, - server_pubkey: helium_crypto::PublicKey::from_str(server_pubkey)?, - }) - } - - pub async fn list(&mut self, oui: Oui, keypair: &Keypair) -> Result { - let mut request = RouteListReqV1 { - oui, - timestamp: current_timestamp()?, - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - let response = self.client.list(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - Ok(response.into()) - } - - pub async fn get(&mut self, id: &str, keypair: &Keypair) -> Result { - let mut request = RouteGetReqV1 { - id: id.into(), - signature: vec![], - signer: keypair.public_key().into(), - timestamp: current_timestamp()?, - }; - request.signature = request.sign(keypair)?; - let response = self.client.get(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - response - .route - .map(Route::from) - .ok_or(anyhow!("Route get failed")) - } - - pub async fn create_route(&mut self, route: Route, keypair: &Keypair) -> Result { - let mut request = RouteCreateReqV1 { - oui: route.oui, - route: Some(route.into()), - timestamp: current_timestamp()?, - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - let response = self.client.create(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - response - .route - .map(Route::from) - .ok_or(anyhow!("Route create failed")) - } - - pub async fn delete(&mut self, id: &str, keypair: &Keypair) -> Result { - let mut request = RouteDeleteReqV1 { - id: id.into(), - timestamp: current_timestamp()?, - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - let response = self.client.delete(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - response - .route - .map(Route::from) - .ok_or(anyhow!("Route delete failed")) - } - - pub async fn push(&mut self, route: Route, keypair: &Keypair) -> Result { - let mut request = RouteUpdateReqV1 { - route: Some(route.into()), - timestamp: current_timestamp()?, - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - let response = self.client.update(request).await?.into_inner(); - response.verify(&self.server_pubkey)?; - response - .route - .map(Route::from) - .ok_or(anyhow!("Route update push failed")) - } -} - impl SkfClient { pub async fn list_filters(&mut self, route_id: &str, keypair: &Keypair) -> Result> { let mut request = RouteSkfListReqV1 { @@ -650,7 +388,7 @@ impl SkfClient { devaddr: skf.devaddr.into(), session_key: skf.session_key.to_owned(), action: ActionV1::Remove.into(), - max_copies: 0 + max_copies: 0, }) .collect(), timestamp: current_timestamp()?, @@ -688,93 +426,6 @@ impl SkfClient { } } -impl AdminClient { - pub async fn new(host: &str, server_pubkey: &str) -> Result { - Ok(Self { - client: admin_client::AdminClient::connect(host.to_owned()).await?, - server_pubkey: helium_crypto::PublicKey::from_str(server_pubkey)?, - }) - } - - pub async fn add_key( - &mut self, - pubkey: &PublicKey, - key_type: KeyType, - keypair: &Keypair, - ) -> Result { - let mut request = AdminAddKeyReqV1 { - pubkey: pubkey.into(), - key_type: key_type.into(), - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - self.client - .add_key(request) - .await? - .into_inner() - .verify(&self.server_pubkey) - } - - pub async fn remove_key(&mut self, pubkey: &PublicKey, keypair: &Keypair) -> Result { - let mut request = AdminRemoveKeyReqV1 { - pubkey: pubkey.into(), - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - self.client - .remove_key(request) - .await? - .into_inner() - .verify(&self.server_pubkey) - } - - pub async fn load_region( - &mut self, - region: Region, - params: RegionParams, - indexes: Vec, - keypair: &Keypair, - ) -> Result { - let mut request = AdminLoadRegionReqV1 { - region: region.into(), - params: Some(params.into()), - hex_indexes: indexes, - signer: keypair.public_key().into(), - signature: vec![], - }; - request.signature = request.sign(keypair)?; - self.client - .load_region(request) - .await? - .into_inner() - .verify(&self.server_pubkey) - } -} - -fn current_timestamp() -> Result { - Ok(SystemTime::now().duration_since(UNIX_EPOCH)?.as_millis() as u64) -} - -pub trait MsgSign: Message + std::clone::Clone { - fn sign(&self, keypair: &Keypair) -> Result> - where - Self: std::marker::Sized; -} - -macro_rules! impl_sign { - ($msg_type:ty, $( $sig: ident ),+ ) => { - impl MsgSign for $msg_type { - fn sign(&self, keypair: &Keypair) -> Result> { - let mut msg = self.clone(); - $(msg.$sig = vec![];)+ - Ok(keypair.sign(&msg.encode_to_vec())?) - } - } - } -} - impl_sign!(RouteListReqV1, signature); impl_sign!(RouteGetReqV1, signature); impl_sign!(RouteCreateReqV1, signature); @@ -787,47 +438,9 @@ impl_sign!(RouteGetDevaddrRangesReqV1, signature); impl_sign!(RouteSkfListReqV1, signature); impl_sign!(RouteSkfGetReqV1, signature); impl_sign!(RouteSkfUpdateReqV1, signature); -impl_sign!(OrgCreateHeliumReqV1, signature); -impl_sign!(OrgCreateRoamerReqV1, signature); -impl_sign!(OrgEnableReqV1, signature); -impl_sign!(OrgUpdateReqV1, signature); -impl_sign!(AdminLoadRegionReqV1, signature); -impl_sign!(AdminAddKeyReqV1, signature); -impl_sign!(AdminRemoveKeyReqV1, signature); -impl_sign!(GatewayLocationReqV1, signature); -impl_sign!(GatewayInfoReqV1, signature); - -pub trait MsgVerify: Message + std::clone::Clone { - fn verify(&self, verifier: &PublicKey) -> Result - where - Self: std::marker::Sized; -} - -macro_rules! impl_verify { - ($msg_type:ty, $sig: ident) => { - impl MsgVerify for $msg_type { - fn verify(&self, verifier: &PublicKey) -> Result { - let mut buf = vec![]; - let mut msg = self.clone(); - msg.$sig = vec![]; - msg.encode(&mut buf)?; - verifier - .verify(&buf, &self.$sig) - .map_err(anyhow::Error::from) - } - } - }; -} -impl_verify!(OrgListResV1, signature); -impl_verify!(OrgResV1, signature); -impl_verify!(OrgEnableResV1, signature); impl_verify!(RouteDevaddrRangesResV1, signature); impl_verify!(RouteEuisResV1, signature); impl_verify!(RouteListResV1, signature); impl_verify!(RouteResV1, signature); impl_verify!(RouteSkfUpdateResV1, signature); -impl_verify!(AdminKeyResV1, signature); -impl_verify!(AdminLoadRegionResV1, signature); -impl_verify!(GatewayLocationResV1, signature); -impl_verify!(GatewayInfoResV1, signature); diff --git a/src/clients/utils.rs b/src/clients/utils.rs new file mode 100644 index 0000000..e352a68 --- /dev/null +++ b/src/clients/utils.rs @@ -0,0 +1,49 @@ +use anyhow::Result; +use helium_crypto::{Keypair, PublicKey}; +use helium_proto::Message; +use std::time::{SystemTime, UNIX_EPOCH}; + +pub fn current_timestamp() -> Result { + Ok(SystemTime::now().duration_since(UNIX_EPOCH)?.as_millis() as u64) +} + +pub trait MsgSign: Message + std::clone::Clone { + fn sign(&self, keypair: &Keypair) -> Result> + where + Self: std::marker::Sized; +} + +#[macro_export] +macro_rules! impl_sign { + ($msg_type:ty, $( $sig: ident ),+ ) => { + impl crate::clients::utils::MsgSign for $msg_type { + fn sign(&self, keypair: &Keypair) -> Result> { + let mut msg = self.clone(); + $(msg.$sig = vec![];)+ + Ok(helium_crypto::Sign::sign(keypair, &msg.encode_to_vec())?) + } + } + } +} + +pub trait MsgVerify: Message + std::clone::Clone { + fn verify(&self, verifier: &PublicKey) -> Result<()> + where + Self: std::marker::Sized; +} + +#[macro_export] +macro_rules! impl_verify { + ($msg_type:ty, $sig: ident) => { + impl crate::clients::utils::MsgVerify for $msg_type { + fn verify(&self, verifier: &PublicKey) -> Result<()> { + let mut buf = vec![]; + let mut msg = self.clone(); + msg.$sig = vec![]; + msg.encode(&mut buf)?; + helium_crypto::Verify::verify(verifier, &buf, &self.$sig) + .map_err(anyhow::Error::from) + } + } + }; +} diff --git a/src/cmds/admin.rs b/src/cmds/admin.rs index 51c6ea7..05a630a 100644 --- a/src/cmds/admin.rs +++ b/src/cmds/admin.rs @@ -1,4 +1,4 @@ -use crate::{client, cmds::PathBufKeypair, region_params::RegionParams, Msg, Result}; +use crate::{clients, cmds::PathBufKeypair, region_params::RegionParams, Msg, Result}; use anyhow::Context; use helium_proto::Region as ProtoRegion; use std::{ @@ -10,7 +10,7 @@ use super::{AdminAddKey, AdminLoadRegionParams, AdminRemoveKey}; pub async fn add_key(args: AdminAddKey) -> Result { if args.commit { - let mut client = client::AdminClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::AdminClient::new(&args.config_host, &args.config_pubkey).await?; client .add_key(&args.pubkey, args.key_type, &args.keypair.to_keypair()?) .await?; @@ -22,7 +22,7 @@ pub async fn add_key(args: AdminAddKey) -> Result { pub async fn remove_key(args: AdminRemoveKey) -> Result { if args.commit { - let mut client = client::AdminClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::AdminClient::new(&args.config_host, &args.config_pubkey).await?; client .remove_key(&args.pubkey, &args.keypair.to_keypair()?) .await?; @@ -32,7 +32,7 @@ pub async fn remove_key(args: AdminRemoveKey) -> Result { } pub async fn load_region(args: AdminLoadRegionParams) -> Result { - let mut client = client::AdminClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::AdminClient::new(&args.config_host, &args.config_pubkey).await?; let params = RegionParams::from_file(&args.params_file)?; let index_bytes = if let Some(index_path) = &args.index_file { diff --git a/src/cmds/env.rs b/src/cmds/env.rs index 4ad4e21..829004b 100644 --- a/src/cmds/env.rs +++ b/src/cmds/env.rs @@ -2,62 +2,97 @@ use serde::{Deserialize, Serialize}; use std::{env, fs, path::PathBuf}; use super::{ - EnvInfo, GenerateKeypair, ENV_CONFIG_HOST, ENV_KEYPAIR_BIN, ENV_MAX_COPIES, ENV_NET_ID, ENV_OUI, + EnvInfo, GenerateKeypair, ENV_CONFIG_HOST, ENV_KEYPAIR_BIN, ENV_MAX_COPIES, ENV_NET_ID, + ENV_OUI, ENV_SOLANA_URL, +}; +use crate::{ + cmds::{CONFIG_HOST, KEYPAIR_PATH, SOLANA_URL}, + hex_field, Msg, Oui, PrettyJson, Result, }; -use crate::{hex_field, Msg, Oui, PrettyJson, Result}; use anyhow::Context; use dialoguer::Input; use helium_crypto::Keypair; +use helium_lib::keypair::Signer; use rand::rngs::OsRng; use serde_json::json; +fn prompt_input(prompt: &str, default: Option<&str>, allow_empty: bool) -> Result +where + T: std::str::FromStr, + T::Err: std::fmt::Display, +{ + let mut input = Input::new(); + + input.with_prompt(prompt); + + if let Some(default_value) = default { + input.default(default_value.to_string()); + } + + let result: String = input.interact_text()?; + + if !allow_empty && result.trim().is_empty() { + return Err(anyhow::anyhow!("Input cannot be empty")); + } + + let value_to_parse = if result.trim().is_empty() && allow_empty { + if let Some(default_value) = default { + default_value.to_string() + } else { + result + } + } else { + result + }; + + match value_to_parse.parse::() { + Ok(parsed) => Ok(parsed), + Err(e) => Err(anyhow::anyhow!("Failed to parse input: {}", e)), + } +} + pub async fn env_init() -> Result { println!("----- Leave blank to ignore..."); - let config_host: String = Input::new() - .with_prompt("Config Service Host") - .allow_empty(true) - .interact()?; - let keypair_path: String = Input::::new() - .with_prompt("Keypair Location") - .with_initial_text("./keypair.bin") - .allow_empty(true) - .interact()?; + let config_host: String = prompt_input("Config Service Host", Some(CONFIG_HOST), true)?; + let solana_url: String = prompt_input("Solana RPC URL", Some(SOLANA_URL), true)?; + let keypair_path: String = prompt_input("Keypair Location", Some(KEYPAIR_PATH), true)?; println!("----- Enter all zeros to ignore..."); - let net_id = Input::::new() - .with_prompt("Net ID") - .with_initial_text("000000") - .interact()?; + let net_id: hex_field::HexNetID = prompt_input("Net ID", Some("000000"), false)?; println!("----- Enter zero to ignore..."); - let oui: Oui = Input::new() - .with_prompt("Assigned OUI") - .with_initial_text("0") - .allow_empty(true) - .interact()?; - let max_copies: u32 = Input::new() - .with_prompt("Default Max Copies") - .allow_empty(true) - .with_initial_text("15") - .interact()?; + let oui: Oui = prompt_input("Assigned OUI", Some("0"), true)?; + let max_copies: u32 = prompt_input("Default Max Copies", Some("15"), true)?; let mut report = vec![ "".to_string(), "Put these in your environment".to_string(), "------------------------------------".to_string(), ]; - if !config_host.is_empty() { - report.push(format!("{ENV_CONFIG_HOST}={config_host}")); - } - if !keypair_path.is_empty() { - report.push(format!("{ENV_KEYPAIR_BIN}={keypair_path}")) - } - if net_id != hex_field::net_id(0) { - report.push(format!("{ENV_NET_ID}={net_id}")); - } - if oui != 0 { - report.push(format!("{ENV_OUI}={oui}")); - } - if max_copies != 0 { - report.push(format!("{ENV_MAX_COPIES}={max_copies}")); + + let env_vars = vec![ + ( + ENV_CONFIG_HOST, + config_host.clone(), + !config_host.is_empty(), + ), + (ENV_SOLANA_URL, solana_url.clone(), !solana_url.is_empty()), + ( + ENV_KEYPAIR_BIN, + keypair_path.clone(), + !keypair_path.is_empty(), + ), + ( + ENV_NET_ID, + net_id.to_string(), + net_id != hex_field::net_id(0), + ), + (ENV_OUI, oui.to_string(), oui != 0), + (ENV_MAX_COPIES, max_copies.to_string(), max_copies != 0), + ]; + + for (key, value, condition) in env_vars { + if condition { + report.push(format!("{key}={value}")); + } } Msg::ok(report.join("\n")) @@ -65,29 +100,33 @@ pub async fn env_init() -> Result { pub fn env_info(args: EnvInfo) -> Result { let env_keypair = env::var(ENV_KEYPAIR_BIN).ok().map(|i| i.into()); - let (env_keypair_location, env_public_key, env_key_type) = + let (env_keypair_location, env_key_type, env_public_key, env_solana_public_key) = get_public_key_from_path(env_keypair); - let (arg_keypair_location, arg_public_key, arg_key_type) = + let (arg_keypair_location, arg_key_type, arg_public_key, arg_solana_public_key) = get_public_key_from_path(args.keypair); let output = json!({ "environment": { ENV_CONFIG_HOST: env::var(ENV_CONFIG_HOST).unwrap_or_else(|_| "unset".into()), + ENV_SOLANA_URL: env::var(ENV_SOLANA_URL).unwrap_or_else(|_| "unset".into()), ENV_NET_ID: env::var(ENV_NET_ID).unwrap_or_else(|_| "unset".into()), ENV_OUI: env::var(ENV_OUI).unwrap_or_else(|_| "unset".into()), ENV_MAX_COPIES: env::var(ENV_MAX_COPIES).unwrap_or_else(|_| "unset".into()), ENV_KEYPAIR_BIN: env_keypair_location, - "public_key_from_keypair": env_public_key, "key_type_from_keypair": env_key_type, + "helium_public_key_from_keypair": env_public_key, + "solana_public_key_from_keypair": env_solana_public_key, }, "arguments": { "config_host": args.config_host, + "solana_url": args.solana_url, "net_id": args.net_id, "oui": args.oui, "max_copies": args.max_copies, "keypair": arg_keypair_location, - "public_key_from_keypair": arg_public_key, - "key_type_from_keypair": arg_key_type + "key_type_from_keypair": arg_key_type, + "helium_public_key_from_keypair": arg_public_key, + "solana_public_key_from_keypair": arg_solana_public_key, } }); Msg::ok(output.pretty_json()?) @@ -113,6 +152,7 @@ pub fn generate_keypair(args: GenerateKeypair) -> Result { }, &mut OsRng, ); + if let Some(parent) = args.out_file.parent() { fs::create_dir_all(parent)?; } @@ -129,24 +169,38 @@ pub fn generate_keypair(args: GenerateKeypair) -> Result { )) } -pub fn get_public_key_from_path(path: Option) -> (String, String, String) { +pub fn get_public_key_from_path(path: Option) -> (String, String, String, String) { match path { None => ( "unset".to_string(), "unset".to_string(), "unset".to_string(), + "unset".to_string(), ), Some(path) => { let display_path = path.as_path().display().to_string(); match fs::read(path).with_context(|| format!("path does not exist: {display_path}")) { - Err(e) => (e.to_string(), "".to_string(), "".to_string()), + Err(e) => ( + e.to_string(), + "".to_string(), + "".to_string(), + "".to_string(), + ), Ok(data) => match Keypair::try_from(&data[..]) { - Err(e) => (display_path, e.to_string(), "".to_string()), - Ok(keypair) => ( - display_path, - keypair.public_key().to_string(), - keypair.key_tag().key_type.to_string(), - ), + Err(e) => (display_path, "".to_string(), e.to_string(), "".to_string()), + Ok(keypair) => { + let key_tag = keypair.key_tag(); + let public_key = keypair.public_key().to_string(); + let solana_pubkey = helium_lib::keypair::Keypair::try_from(keypair) + .map(|solana_keypair| solana_keypair.pubkey().to_string()) + .unwrap_or_else(|e| e.to_string()); + ( + display_path, + key_tag.key_type.to_string(), + public_key, + solana_pubkey, + ) + } }, } } @@ -189,6 +243,7 @@ mod tests { // Set the environment and arguments env::set_var(cmds::ENV_CONFIG_HOST, "env-localhost:1337"); + env::set_var(cmds::ENV_SOLANA_URL, "env-solana-localhost:1337"); env::set_var(cmds::ENV_NET_ID, "C0053"); env::set_var(cmds::ENV_OUI, "42"); env::set_var(cmds::ENV_MAX_COPIES, "42"); @@ -196,6 +251,7 @@ mod tests { let env_args = EnvInfo { config_host: Some("arg-localhost:1337".to_string()), + solana_url: Some("arg-solana-localhost:1337".to_string()), keypair: Some(arg_keypair.clone()), net_id: Some(hex_field::net_id(42)), oui: Some(4), @@ -213,6 +269,7 @@ mod tests { |val: &serde_json::Value| !val.as_str().unwrap().to_string().is_empty(); assert_eq!(env[cmds::ENV_CONFIG_HOST], "env-localhost:1337"); + assert_eq!(env[cmds::ENV_SOLANA_URL], "env-solana-localhost:1337"); assert_eq!(env[cmds::ENV_NET_ID], "C0053"); assert_eq!(env[cmds::ENV_OUI], "42"); assert_eq!(env[cmds::ENV_MAX_COPIES], "42"); @@ -223,6 +280,7 @@ mod tests { assert!(string_not_empty(&env["public_key_from_keypair"])); assert_eq!(arg["config_host"], "arg-localhost:1337"); + assert_eq!(arg["solana_url"], "arg-solana-localhost:1337"); assert_eq!(arg["keypair"], arg_keypair.display().to_string()); assert!(string_not_empty(&arg["public_key_from_keypair"])); assert_eq!(arg["net_id"], "00002A"); @@ -232,10 +290,12 @@ mod tests { #[test] fn get_keypair_does_not_exist() { - let (location, pubkey, key_type) = get_public_key_from_path(Some("./nowhere.bin".into())); + let (location, key_type, pubkey, solana_pubkey) = + get_public_key_from_path(Some("./nowhere.bin".into())); assert_eq!(location, "path does not exist: ./nowhere.bin"); - assert!(pubkey.is_empty()); assert!(key_type.is_empty()); + assert!(pubkey.is_empty()); + assert!(solana_pubkey.is_empty()); } #[test] @@ -246,17 +306,20 @@ mod tests { fs::write(arg_keypair.clone(), "invalid key").unwrap(); // ======= - let (location, pubkey, key_type) = get_public_key_from_path(Some(arg_keypair.clone())); + let (location, key_type, pubkey, solana_pubkey) = + get_public_key_from_path(Some(arg_keypair.clone())); assert_eq!(location, arg_keypair.display().to_string()); - assert_eq!(pubkey, "decode error"); assert_eq!(key_type, ""); + assert_eq!(pubkey, "decode error"); + assert_eq!(solana_pubkey, "") } #[test] fn get_keypair_not_provided() { - let (location, pubkey, key_type) = get_public_key_from_path(None); + let (location, key_type, pubkey, solana_pubkey) = get_public_key_from_path(None); assert_eq!(location, "unset"); - assert_eq!(pubkey, "unset"); assert_eq!(key_type, "unset"); + assert_eq!(pubkey, "unset"); + assert_eq!(solana_pubkey, "unset"); } } diff --git a/src/cmds/gateway.rs b/src/cmds/gateway.rs index 4b9c201..e9df05f 100644 --- a/src/cmds/gateway.rs +++ b/src/cmds/gateway.rs @@ -1,5 +1,5 @@ use super::{GetHotspot, PathBufKeypair}; -use crate::{client, region::Region, Msg, PrettyJson, Result}; +use crate::{clients, region::Region, Msg, PrettyJson, Result}; use angry_purple_tiger::AnimalName; use helium_crypto::PublicKey; use helium_proto::services::iot_config::{ @@ -9,7 +9,7 @@ use serde::Serialize; use std::str::FromStr; pub async fn location(args: GetHotspot) -> Result { - let mut client = client::GatewayClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::GatewayClient::new(&args.config_host, &args.config_pubkey).await?; match client .location(&args.hotspot, &args.keypair.to_keypair()?) .await @@ -26,7 +26,7 @@ pub async fn location(args: GetHotspot) -> Result { } pub async fn info(args: GetHotspot) -> Result { - let mut client = client::GatewayClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::GatewayClient::new(&args.config_host, &args.config_pubkey).await?; match client .info(&args.hotspot, &args.keypair.to_keypair()?) .await diff --git a/src/cmds/mod.rs b/src/cmds/mod.rs index ec7d910..db219ed 100644 --- a/src/cmds/mod.rs +++ b/src/cmds/mod.rs @@ -1,8 +1,9 @@ use crate::{ cmds::env::NetworkArg, + helium_netids::HeliumNetId, hex_field::{self, HexNetID}, region::Region, - DevaddrConstraint, HeliumNetId, KeyType, Msg, Oui, PrettyJson, Result, + DevaddrConstraint, KeyType, Msg, Oui, PrettyJson, Result, }; use anyhow::Context; use clap::{Args, Parser, Subcommand}; @@ -15,12 +16,17 @@ pub mod gateway; pub mod org; pub mod route; -pub const ENV_CONFIG_HOST: &str = "HELIUM_CONFIG_HOST"; -pub const ENV_CONFIG_PUBKEY: &str = "HELIUM_CONFIG_PUBKEY"; -pub const ENV_KEYPAIR_BIN: &str = "HELIUM_KEYPAIR_BIN"; -pub const ENV_NET_ID: &str = "HELIUM_NET_ID"; -pub const ENV_OUI: &str = "HELIUM_OUI"; -pub const ENV_MAX_COPIES: &str = "HELIUM_MAX_COPIES"; +pub static ENV_CONFIG_HOST: &str = "HELIUM_CONFIG_HOST"; +pub static ENV_CONFIG_PUBKEY: &str = "HELIUM_CONFIG_PUBKEY"; +pub static ENV_KEYPAIR_BIN: &str = "HELIUM_KEYPAIR_BIN"; +pub static ENV_NET_ID: &str = "HELIUM_NET_ID"; +pub static ENV_OUI: &str = "HELIUM_OUI"; +pub static ENV_MAX_COPIES: &str = "HELIUM_MAX_COPIES"; +pub static ENV_SOLANA_URL: &str = "SOLANA_URL"; + +pub const CONFIG_HOST: &str = "https://config.iot.mainnet.helium.io:6080"; +pub const KEYPAIR_PATH: &str = "./keypair.bin"; +pub const SOLANA_URL: &str = "https://solana-rpc.web.helium.io:443?session-key=Pluto"; #[derive(Debug, Parser)] #[command(name = "helium-config-cli")] @@ -33,7 +39,7 @@ pub struct Cli { global = true, long, env = ENV_CONFIG_HOST, - default_value = "https://config.iot.mainnet.helium.io:6080" + default_value = CONFIG_HOST )] pub config_host: String, @@ -49,11 +55,18 @@ pub struct Cli { global = true, long, env = ENV_KEYPAIR_BIN, - default_value = "./keypair.bin" + default_value = KEYPAIR_PATH )] pub keypair: PathBuf, - #[arg(global = true, long)] + #[arg( + global = true, + long, + env = ENV_SOLANA_URL, + default_value = SOLANA_URL + )] + pub solana_url: String, + pub print_command: bool, } @@ -442,18 +455,29 @@ pub enum SkfCommands { Update(UpdateFilters), } +#[derive(Debug, Subcommand)] +pub enum NetIdCommands { + List(ListNetIds), +} + #[derive(Debug, Subcommand)] pub enum OrgCommands { /// Get all Orgs List(ListOrgs), /// Get an Organization you own Get(GetOrg), + /// Create a new NetId + CreateNetId(CreateNetId), /// Create a new Helium Organization CreateHelium(CreateHelium), - /// Create a new Roaming Organization (admin only) + /// Create a new Roaming Organization CreateRoaming(CreateRoaming), + /// Approve an organization + Approve(ApproveOrg), /// Enable a locked Oui Enable(EnableOrg), + /// Disable a unlocked Oui + Disable(DisableOrg), /// Update Org record Update { #[command(subcommand)] @@ -720,6 +744,8 @@ pub struct SubnetMask { pub struct EnvInfo { #[arg(long, env = ENV_CONFIG_HOST, default_value="unset")] pub config_host: Option, + #[arg(long, env = ENV_SOLANA_URL, default_value="unset")] + pub solana_url: Option, #[arg(long, env = ENV_KEYPAIR_BIN, default_value="unset")] pub keypair: Option, #[arg(long, env = ENV_NET_ID)] @@ -738,11 +764,30 @@ pub struct GenerateKeypair { /// The helium network for which to issue keys #[arg(long, short, value_enum, default_value = "mainnet")] pub network: NetworkArg, + /// overwrite if it already exists #[arg(long)] pub commit: bool, } +#[derive(Debug, Args)] +pub struct ListNetIds { + #[arg(from_global)] + pub config_host: String, + #[arg(from_global)] + pub config_pubkey: String, +} + +#[derive(Debug, Args)] +pub struct GetNetId { + #[arg(long, env = ENV_NET_ID, default_value = "000024")] + pub net_id: HexNetID, + #[arg(from_global)] + pub config_host: String, + #[arg(from_global)] + pub config_pubkey: String, +} + #[derive(Debug, Args)] pub struct ListOrgs { #[arg(from_global)] @@ -753,7 +798,7 @@ pub struct ListOrgs { #[derive(Debug, Args)] pub struct GetOrg { - #[arg(long, env = "HELIUM_OUI")] + #[arg(long, short, env = "HELIUM_OUI")] pub oui: Oui, #[arg(from_global)] pub config_host: String, @@ -762,15 +807,25 @@ pub struct GetOrg { } #[derive(Debug, Args)] -pub struct CreateHelium { - #[arg(long)] - pub owner: PublicKey, - #[arg(long)] - pub payer: PublicKey, +pub struct CreateNetId { + #[arg(long, value_enum)] + pub net_id: HexNetID, + #[arg(from_global)] + pub keypair: PathBuf, + #[arg(from_global)] + pub config_host: String, + #[arg(from_global)] + pub config_pubkey: String, + #[arg(from_global)] + pub solana_url: String, #[arg(long)] - pub delegate: Option>, + pub commit: bool, +} + +#[derive(Debug, Args)] +pub struct CreateHelium { #[arg(long)] - pub devaddr_count: u64, + pub owner: Option, #[arg(long, value_enum)] pub net_id: HeliumNetId, #[arg(from_global)] @@ -779,6 +834,8 @@ pub struct CreateHelium { pub config_host: String, #[arg(from_global)] pub config_pubkey: String, + #[arg(from_global)] + pub solana_url: String, #[arg(long)] pub commit: bool, } @@ -786,11 +843,7 @@ pub struct CreateHelium { #[derive(Debug, Args)] pub struct CreateRoaming { #[arg(long)] - pub owner: PublicKey, - #[arg(long)] - pub payer: PublicKey, - #[arg(long)] - pub delegate: Option>, + pub owner: Option, #[arg(long)] pub net_id: HexNetID, #[arg(from_global)] @@ -799,6 +852,24 @@ pub struct CreateRoaming { pub config_host: String, #[arg(from_global)] pub config_pubkey: String, + #[arg(from_global)] + pub solana_url: String, + #[arg(long)] + pub commit: bool, +} + +#[derive(Debug, Args)] +pub struct ApproveOrg { + #[arg(long, short)] + pub oui: u64, + #[arg(from_global)] + pub keypair: PathBuf, + #[arg(from_global)] + pub config_host: String, + #[arg(from_global)] + pub config_pubkey: String, + #[arg(from_global)] + pub solana_url: String, #[arg(long)] pub commit: bool, } @@ -807,8 +878,6 @@ pub struct CreateRoaming { pub enum OrgUpdateCommand { /// Update the org owner pubkey Owner(OrgUpdateKey), - /// Update the org payer pubkey - Payer(OrgUpdateKey), /// Add delegate key to org DelegateAdd(OrgUpdateKey), /// Remove delegate key from org @@ -816,9 +885,7 @@ pub enum OrgUpdateCommand { /// Add devaddr constraint to org DevaddrConstraintAdd(DevaddrUpdateConstraint), /// Remove devaddr constraint from org - DevaddrConstraintRemove(DevaddrUpdateConstraint), - /// Add an even-numbered Devaddr slab to org - DevaddrSlabAdd(DevaddrSlabAdd), + DevaddrConstraintRemove(OrgUpdateKey), } #[derive(Debug, Args)] @@ -833,34 +900,34 @@ pub struct OrgUpdateKey { pub config_host: String, #[arg(from_global)] pub config_pubkey: String, + #[arg(from_global)] + pub solana_url: String, #[arg(long)] pub commit: bool, } #[derive(Debug, Args)] -pub struct DevaddrSlabAdd { +pub struct DevaddrUpdateConstraint { #[arg(long, short)] pub oui: u64, - #[arg(long, short)] - pub devaddr_count: u64, + #[arg(short, long)] + pub num_blocks: u32, #[arg(from_global)] pub keypair: PathBuf, #[arg(from_global)] pub config_host: String, #[arg(from_global)] pub config_pubkey: String, + #[arg(from_global)] + pub solana_url: String, #[arg(long)] pub commit: bool, } #[derive(Debug, Args)] -pub struct DevaddrUpdateConstraint { +pub struct EnableOrg { #[arg(long, short)] pub oui: u64, - #[arg(short, long, value_parser = hex_field::validate_devaddr)] - pub start_addr: hex_field::HexDevAddr, - #[arg(short, long, value_parser = hex_field::validate_devaddr)] - pub end_addr: hex_field::HexDevAddr, #[arg(from_global)] pub keypair: PathBuf, #[arg(from_global)] @@ -872,8 +939,8 @@ pub struct DevaddrUpdateConstraint { } #[derive(Debug, Args)] -pub struct EnableOrg { - #[arg(long)] +pub struct DisableOrg { + #[arg(long, short)] pub oui: u64, #[arg(from_global)] pub keypair: PathBuf, diff --git a/src/cmds/org.rs b/src/cmds/org.rs index aabcb15..b038b2f 100644 --- a/src/cmds/org.rs +++ b/src/cmds/org.rs @@ -1,149 +1,195 @@ use super::{ - CreateHelium, CreateRoaming, DevaddrSlabAdd, DevaddrUpdateConstraint, EnableOrg, GetOrg, - ListOrgs, OrgUpdateKey, PathBufKeypair, ENV_NET_ID, ENV_OUI, + ApproveOrg, CreateHelium, CreateNetId, CreateRoaming, DevaddrUpdateConstraint, DisableOrg, + EnableOrg, GetOrg, ListOrgs, OrgUpdateKey, PathBufKeypair, }; -use crate::{client, subnet::DevaddrConstraint, Msg, PrettyJson, Result}; + +use crate::{ + clients::{self, OrgSolanaOperations, OrgType}, + helium_netids, Msg, PrettyJson, Result, +}; + +use helium_lib::iot::{ + net_id::{self, NetIdIdentifier}, + organization::{self, OrgIdentifier}, +}; + +use std::sync::Arc; + +pub async fn create_solana_client( + solana_url: &str, + keypair: helium_crypto::Keypair, +) -> Result { + let keypair = helium_lib::keypair::Keypair::try_from(keypair)?; + helium_lib::client::SolanaClient::new(solana_url, Some(Arc::new(keypair))).map_err(|e| e.into()) +} pub async fn list_orgs(args: ListOrgs) -> Result { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::OrgClient::new(&args.config_host, &args.config_pubkey).await?; let org = client.list().await?; Msg::ok(org.pretty_json()?) } pub async fn get_org(args: GetOrg) -> Result { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::OrgClient::new(&args.config_host, &args.config_pubkey).await?; let org = client.get(args.oui).await?; Msg::ok(org.pretty_json()?) } +pub async fn create_net_id(args: CreateNetId) -> Result { + if args.commit { + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + + let (_, ix) = + OrgSolanaOperations::create_net_id(&solana_client, args.net_id.into()).await?; + + solana_client.send_instruction(ix, &[], None).await?; + + let (_, _net_id) = + net_id::ensure_exists(&solana_client, NetIdIdentifier::Id(args.net_id.into())).await?; + + return Msg::ok(format!("== NetId Created: {id} ==", id = args.net_id)); + } + + Msg::dry_run(format!("Create NetId {:?}", args.net_id,)) +} + pub async fn create_helium_org(args: CreateHelium) -> Result { - let delegates = if let Some(ref delegate_keys) = &args.delegate { - delegate_keys.to_vec() - } else { - vec![] - }; if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let org = client - .create_helium( - &args.owner, - &args.payer, - delegates, - args.devaddr_count, - args.net_id, - &args.keypair.to_keypair()?, - ) - .await?; + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let netid_field = helium_netids::HeliumNetId::from(args.net_id); + let (organization_key, ix) = OrgSolanaOperations::create_org( + &solana_client, + args.owner.clone(), + args.owner.clone(), + OrgType::Helium(netid_field), + ) + .await?; + + solana_client.send_instruction(ix, &[], {}).await?; + + let (_, organization) = + organization::ensure_exists(&solana_client, OrgIdentifier::Pubkey(organization_key)) + .await?; + return Msg::ok(format!( - "Helium Organization Created: \n{}", - org.pretty_json()? + "== Helium Organization Created: {oui} ==\n== Call `org get --oui {oui} to see its details` ==", + oui = organization.oui )); } + Msg::dry_run(format!( - "create Helium organization for NetId {:?} with {} devaddrs", - args.net_id, args.devaddr_count + "Create Helium Organization for NetId {:?}", + args.net_id, )) } pub async fn create_roaming_org(args: CreateRoaming) -> Result { - let delegates = if let Some(ref delegate_keys) = &args.delegate { - delegate_keys.to_vec() - } else { - vec![] - }; if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let created_org = client - .create_roamer( - &args.owner, - &args.payer, - delegates, - args.net_id.into(), - args.keypair.to_keypair()?, - ) - .await?; - return Msg::ok( - [ - "== Roaming Organization Created ==".to_string(), - created_org.pretty_json()?, - "== Environment Variables ==".to_string(), - format!("{ENV_NET_ID}={}", created_org.net_id), - format!("{ENV_OUI}={}", created_org.org.oui), - ] - .join("\n"), - ); + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let (organization, ix) = OrgSolanaOperations::create_org( + &solana_client, + args.owner.clone(), + args.owner.clone(), + OrgType::Roamer(args.net_id.into()), + ) + .await?; + + solana_client.send_instruction(ix, &[], None).await?; + + let (_, organization) = + organization::ensure_exists(&solana_client, OrgIdentifier::Pubkey(organization)) + .await?; + + return Msg::ok(format!( + "== Roaming Organization Created: {oui} ==\n== Call `org get --oui {oui} to see its details ==", + oui = organization.oui + )); } + Msg::dry_run(format!( - "create Roaming organization for NetId {}", + "Create Roaming Organization for NetId {}", args.net_id )) } +pub async fn approve_org(args: ApproveOrg) -> Result { + if args.commit { + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let ix = OrgSolanaOperations::approve(&solana_client, args.oui).await?; + + solana_client.send_instruction(ix, &[], None).await?; + + return Msg::ok(format!("== Organization Approved: {} ==", args.oui)); + } + + Msg::dry_run(format!("Approve Organization {}", args.oui)) +} + pub async fn enable_org(args: EnableOrg) -> Result { if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::OrgClient::new(&args.config_host, &args.config_pubkey).await?; client.enable(args.oui, args.keypair.to_keypair()?).await?; return Msg::ok(format!("OUI {} enabled", args.oui)); } + Msg::dry_run(format!("enable OUI {}", args.oui)) } -pub async fn update_owner(args: OrgUpdateKey) -> Result { +pub async fn disable_org(args: DisableOrg) -> Result { if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let updated_org = client - .update_owner(args.oui, &args.pubkey, args.keypair.to_keypair()?) - .await?; - return Msg::ok( - [ - "== Organization Updated ==".to_string(), - updated_org.pretty_json()?, - ] - .join("\n"), - ); + let mut client = clients::OrgClient::new(&args.config_host, &args.config_pubkey).await?; + client.disable(args.oui, args.keypair.to_keypair()?).await?; + return Msg::ok(format!("OUI {} disabled", args.oui)); } - Msg::dry_run(format!( - "update organization: owner pubkey {}", - &args.pubkey - )) + + Msg::dry_run(format!("disable OUI {}", args.oui)) } -pub async fn update_payer(args: OrgUpdateKey) -> Result { +pub async fn update_owner(args: OrgUpdateKey) -> Result { if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let updated_org = client - .update_payer(args.oui, &args.pubkey, args.keypair.to_keypair()?) - .await?; - return Msg::ok( - [ - "== Organization Updated ==".to_string(), - updated_org.pretty_json()?, - ] - .join("\n"), - ); + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let (_, update_ix) = + OrgSolanaOperations::update_owner(&solana_client, args.oui, args.pubkey.clone()) + .await?; + + solana_client.send_instruction(update_ix, &[], None).await?; + + return Msg::ok(format!( + "== Organization Updated: {organization} ==\n== New Owner: {owner} ==", + organization = args.oui, + owner = args.pubkey + )); } + Msg::dry_run(format!( - "update organization: payer pubkey {}", + "update organization: owner pubkey {}", &args.pubkey )) } pub async fn add_delegate_key(args: OrgUpdateKey) -> Result { if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let updated_org = client - .add_delegate_key(args.oui, &args.pubkey, args.keypair.to_keypair()?) - .await?; - return Msg::ok( - [ - "== Organization Updated ==".to_string(), - updated_org.pretty_json()?, - ] - .join("\n"), - ); + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let ix = + OrgSolanaOperations::add_delegate_key(&solana_client, args.oui, args.pubkey.clone()) + .await?; + + solana_client.send_instruction(ix, &[], None).await?; + + return Msg::ok(format!( + "== Organization Updated ==\n== Delegate Added: {delegate} ==", + delegate = args.pubkey + )); } + Msg::dry_run(format!( "update organization: add delegate key {}", &args.pubkey @@ -152,82 +198,64 @@ pub async fn add_delegate_key(args: OrgUpdateKey) -> Result { pub async fn remove_delegate_key(args: OrgUpdateKey) -> Result { if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let updated_org = client - .remove_delegate_key(args.oui, &args.pubkey, args.keypair.to_keypair()?) - .await?; - return Msg::ok( - [ - "== Organization Updated ==".to_string(), - updated_org.pretty_json()?, - ] - .join("\n"), - ); + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let ix = + OrgSolanaOperations::remove_delegate_key(&solana_client, args.oui, args.pubkey).await?; + + solana_client.send_instruction(ix, &[], None).await?; + + return Msg::ok(format!( + "== Organization Updated ==\n== Call `org get --oui {oui} to see its details ==", + oui = args.oui + )); } + Msg::dry_run(format!( "update organization: remove delegate key {}", &args.pubkey )) } -pub async fn add_devaddr_slab(args: DevaddrSlabAdd) -> Result { - if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let updated_org = client - .add_devaddr_slab(args.oui, args.devaddr_count, args.keypair.to_keypair()?) - .await?; - return Msg::ok( - [ - "== Organization Updated ==".to_string(), - updated_org.pretty_json()?, - ] - .join("\n"), - ); - } - Msg::dry_run(format!( - "update organization: add {} new devaddrs", - args.devaddr_count - )) -} - pub async fn add_devaddr_constraint(args: DevaddrUpdateConstraint) -> Result { - let constraint = DevaddrConstraint::new(args.start_addr, args.end_addr)?; if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let updated_org = client - .add_devaddr_constraint(args.oui, constraint, args.keypair.to_keypair()?) - .await?; - return Msg::ok( - [ - "== Organization Updated ==".to_string(), - updated_org.pretty_json()?, - ] - .join("\n"), - ); + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let ix = + OrgSolanaOperations::add_devaddr_constraint(&solana_client, args.oui, args.num_blocks) + .await?; + + solana_client.send_instruction(ix, &[], None).await?; + + return Msg::ok(format!( + "== Organization Updated ==\n== Call `org get --oui {oui} to see its details ==", + oui = args.oui + )); } + Msg::dry_run(format!( - "update organization: add devaddr constraint {} - {}", - constraint.start_addr, constraint.end_addr + "update organization: add devaddr constraint {} - num blocks", + args.num_blocks, )) } -pub async fn remove_devaddr_constraint(args: DevaddrUpdateConstraint) -> Result { - let constraint = DevaddrConstraint::new(args.start_addr, args.end_addr)?; +pub async fn remove_devaddr_constraint(args: OrgUpdateKey) -> Result { if args.commit { - let mut client = client::OrgClient::new(&args.config_host, &args.config_pubkey).await?; - let updated_org = client - .remove_devaddr_constraint(args.oui, constraint, args.keypair.to_keypair()?) - .await?; - return Msg::ok( - [ - "== Organization Updated ==".to_string(), - updated_org.pretty_json()?, - ] - .join("\n"), - ); + let keypair = args.keypair.to_keypair()?; + let solana_client = create_solana_client(&args.solana_url, keypair).await?; + let ix = + OrgSolanaOperations::remove_devaddr_constraint(&solana_client, args.pubkey).await?; + + solana_client.send_instruction(ix, &[], None).await?; + + return Msg::ok(format!( + "== Organization Updated ==\n== Call `org get --oui {oui} to see its details ==", + oui = args.oui + )); } + Msg::dry_run(format!( - "update organization: remove devaddr constraint {} - {}", - constraint.start_addr, constraint.end_addr + "update organization: remove devaddr constraint {}", + &args.pubkey )) } diff --git a/src/cmds/route.rs b/src/cmds/route.rs index dc6f725..a86b95c 100644 --- a/src/cmds/route.rs +++ b/src/cmds/route.rs @@ -1,16 +1,15 @@ -use helium_crypto::Keypair; - use super::{ ActivateRoute, AddGwmpRegion, DeactivateRoute, DeleteRoute, GetRoute, ListRoutes, NewRoute, RemoveGwmpRegion, SetIgnoreEmptySkf, UpdateHttp, UpdateMaxCopies, UpdatePacketRouter, UpdateServer, }; use crate::{ - client, cmds::PathBufKeypair, route::Route, server::Protocol, Msg, PrettyJson, Result, + clients, cmds::PathBufKeypair, route::Route, server::Protocol, Msg, PrettyJson, Result, }; +use helium_crypto::Keypair; pub async fn list_routes(args: ListRoutes) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; match client.list(args.oui, &args.keypair.to_keypair()?).await { Ok(route_list) => Msg::ok(route_list.pretty_json()?), Err(err) => Msg::err(format!("could not list routes: {err}")), @@ -18,7 +17,7 @@ pub async fn list_routes(args: ListRoutes) -> Result { } pub async fn get_route(args: GetRoute) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let stats_str = if args.stats { let RouteStats { devaddr_count, @@ -59,17 +58,17 @@ async fn counts_for_route( route_id: &str, keypair: &Keypair, ) -> Result { - let devaddr_count = client::DevaddrClient::new(config_host, config_pubkey) + let devaddr_count = clients::DevaddrClient::new(config_host, config_pubkey) .await? .get_devaddrs(route_id, keypair) .await? .len(); - let skf_count = client::SkfClient::new(config_host, config_pubkey) + let skf_count = clients::SkfClient::new(config_host, config_pubkey) .await? .list_filters(route_id, keypair) .await? .len(); - let eui_count = client::EuiClient::new(config_host, config_pubkey) + let eui_count = clients::EuiClient::new(config_host, config_pubkey) .await? .get_euis(route_id, keypair) .await? @@ -82,7 +81,7 @@ async fn counts_for_route( } pub async fn new_route(args: NewRoute) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let route = Route::new(args.net_id, args.oui, args.max_copies); if !args.commit { @@ -103,7 +102,7 @@ pub async fn new_route(args: NewRoute) -> Result { } pub async fn delete_route(args: DeleteRoute) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; if !args.commit { return Msg::dry_run(format!("delete {}", args.route_id)); @@ -119,7 +118,7 @@ pub async fn delete_route(args: DeleteRoute) -> Result { } pub async fn update_max_copies(args: UpdateMaxCopies) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -148,7 +147,7 @@ pub async fn update_max_copies(args: UpdateMaxCopies) -> Result { } pub async fn update_server(args: UpdateServer) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -179,7 +178,7 @@ pub async fn update_server(args: UpdateServer) -> Result { } pub async fn update_http(args: UpdateHttp) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -214,7 +213,7 @@ pub async fn update_http(args: UpdateHttp) -> Result { } pub async fn add_gwmp_region(args: AddGwmpRegion) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -257,7 +256,7 @@ pub async fn add_gwmp_region(args: AddGwmpRegion) -> Result { } pub async fn remove_gwmp_region(args: RemoveGwmpRegion) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -295,7 +294,7 @@ pub async fn remove_gwmp_region(args: RemoveGwmpRegion) -> Result { } pub async fn update_packet_router(args: UpdatePacketRouter) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -325,7 +324,7 @@ pub async fn update_packet_router(args: UpdatePacketRouter) -> Result { } pub async fn update_ignore_empty_skf(args: SetIgnoreEmptySkf) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -356,7 +355,7 @@ pub async fn update_ignore_empty_skf(args: SetIgnoreEmptySkf) -> Result { } pub async fn activate_route(args: ActivateRoute) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -385,7 +384,7 @@ pub async fn activate_route(args: ActivateRoute) -> Result { } pub async fn deactivate_route(args: DeactivateRoute) -> Result { - let mut client = client::RouteClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::RouteClient::new(&args.config_host, &args.config_pubkey).await?; let keypair = args.keypair.to_keypair()?; let mut route = client.get(&args.route_id, &keypair).await?; @@ -415,7 +414,7 @@ pub async fn deactivate_route(args: DeactivateRoute) -> Result { pub mod skfs { use crate::{ - client, + clients, cmds::{ AddFilter, ClearFilters, GetFilters, ListFilters, PathBufKeypair, RemoveFilter, UpdateFilters, @@ -425,7 +424,7 @@ pub mod skfs { use anyhow::Context; pub async fn list_filters(args: ListFilters) -> Result { - let mut client = client::SkfClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::SkfClient::new(&args.config_host, &args.config_pubkey).await?; let filters = client .list_filters(&args.route_id, &args.keypair.to_keypair()?) .await?; @@ -434,7 +433,7 @@ pub mod skfs { } pub async fn get_filters(args: GetFilters) -> Result { - let mut client = client::SkfClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::SkfClient::new(&args.config_host, &args.config_pubkey).await?; let filters = client .get_filters(&args.route_id, args.devaddr, &args.keypair.to_keypair()?) .await?; @@ -443,7 +442,7 @@ pub mod skfs { } pub async fn add_filter(args: AddFilter) -> Result { - let mut client = client::SkfClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::SkfClient::new(&args.config_host, &args.config_pubkey).await?; let filter = Skf::new( args.route_id.clone(), args.devaddr, @@ -463,7 +462,7 @@ pub mod skfs { } pub async fn remove_filter(args: RemoveFilter) -> Result { - let mut client = client::SkfClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::SkfClient::new(&args.config_host, &args.config_pubkey).await?; let filter = Skf::new(args.route_id.clone(), args.devaddr, args.session_key, None)?; if !args.commit { @@ -478,7 +477,7 @@ pub mod skfs { } pub async fn clear_filters(args: ClearFilters) -> Result { - let mut client = client::SkfClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::SkfClient::new(&args.config_host, &args.config_pubkey).await?; if !args.commit { return Msg::dry_run(format!( @@ -497,7 +496,7 @@ pub mod skfs { } pub async fn update_filters_from_file(args: UpdateFilters) -> Result { - let mut client = client::SkfClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::SkfClient::new(&args.config_host, &args.config_pubkey).await?; let data = std::fs::read_to_string(&args.update_file) .context("reading session key filter updates json file")?; @@ -525,13 +524,13 @@ pub mod skfs { pub mod euis { use crate::{ - client, + clients, cmds::{AddEui, ClearEuis, ListEuis, PathBufKeypair, RemoveEui}, Eui, Msg, PrettyJson, Result, }; pub async fn list_euis(args: ListEuis) -> Result { - let mut client = client::EuiClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::EuiClient::new(&args.config_host, &args.config_pubkey).await?; let mut euis_for_route = client .get_euis(&args.route_id, &args.keypair.to_keypair()?) .await?; @@ -547,7 +546,7 @@ pub mod euis { } pub async fn add_eui(args: AddEui) -> Result { - let mut client = client::EuiClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::EuiClient::new(&args.config_host, &args.config_pubkey).await?; let eui_pair = Eui::new(args.route_id.clone(), args.app_eui, args.dev_eui)?; if !args.commit { @@ -562,7 +561,7 @@ pub mod euis { } pub async fn remove_eui(args: RemoveEui) -> Result { - let mut client = client::EuiClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::EuiClient::new(&args.config_host, &args.config_pubkey).await?; let eui_pair = Eui::new(args.route_id.clone(), args.app_eui, args.dev_eui)?; if !args.commit { @@ -577,7 +576,7 @@ pub mod euis { } pub async fn clear_euis(args: ClearEuis) -> Result { - let mut client = client::EuiClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = clients::EuiClient::new(&args.config_host, &args.config_pubkey).await?; if !args.commit { return Msg::dry_run(format!("All Euis removed from {}", args.route_id)); @@ -592,7 +591,7 @@ pub mod euis { pub mod devaddrs { use crate::{ - client, + clients, cmds::{ AddDevaddr, ClearDevaddrs, ListDevaddrs, PathBufKeypair, RemoveDevaddr, RouteSubnetMask, }, @@ -601,7 +600,8 @@ pub mod devaddrs { }; pub async fn list_devaddrs(args: ListDevaddrs) -> Result { - let mut client = client::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = + clients::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; let devaddrs_for_route = client .get_devaddrs(&args.route_id, &args.keypair.to_keypair()?) .await?; @@ -610,7 +610,8 @@ pub mod devaddrs { } pub async fn add_devaddr(args: AddDevaddr) -> Result { - let mut client = client::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = + clients::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; let devaddr_range = DevaddrRange::new(args.route_id.clone(), args.start_addr, args.end_addr)?; @@ -626,7 +627,8 @@ pub mod devaddrs { } pub async fn remove_devaddr(args: RemoveDevaddr) -> Result { - let mut client = client::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = + clients::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; let devaddr_range = DevaddrRange::new(args.route_id.clone(), args.start_addr, args.end_addr)?; @@ -642,7 +644,8 @@ pub mod devaddrs { } pub async fn clear_devaddrs(args: ClearDevaddrs) -> Result { - let mut client = client::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = + clients::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; if !args.commit { return Msg::dry_run(format!("All Devadddrs removed from {}", args.route_id)); @@ -656,7 +659,8 @@ pub mod devaddrs { } pub async fn subnet_mask(args: RouteSubnetMask) -> Result { - let mut client = client::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; + let mut client = + clients::DevaddrClient::new(&args.config_host, &args.config_pubkey).await?; let devaddrs_for_route: Vec = client .get_devaddrs(&args.route_id, &args.keypair.to_keypair()?) .await? diff --git a/src/helium_netids.rs b/src/helium_netids.rs new file mode 100644 index 0000000..86f44a0 --- /dev/null +++ b/src/helium_netids.rs @@ -0,0 +1,39 @@ +use crate::lora_field::{LoraField, NetIdField}; + +const TYPE_0_ID: NetIdField = LoraField(0x00003c); +const TYPE_3_ID: NetIdField = LoraField(0x60002d); +const TYPE_6_ID: NetIdField = LoraField(0xc00053); + +#[derive(clap::ValueEnum, Clone, Copy, Debug)] +pub enum HeliumNetId { + #[value(alias("0x00003c"))] + Type0_0x00003c, + #[value(alias("0x60002d"))] + Type3_0x60002d, + #[value(alias("0xc00053"))] + Type6_0xc00053, +} + +impl HeliumNetId { + pub fn id(&self) -> NetIdField { + match *self { + HeliumNetId::Type0_0x00003c => TYPE_0_ID, + HeliumNetId::Type3_0x60002d => TYPE_3_ID, + HeliumNetId::Type6_0xc00053 => TYPE_6_ID, + } + } +} + +impl TryFrom for HeliumNetId { + type Error = &'static str; + + fn try_from(field: NetIdField) -> Result { + let id = match field { + TYPE_0_ID => HeliumNetId::Type0_0x00003c, + TYPE_3_ID => HeliumNetId::Type3_0x60002d, + TYPE_6_ID => HeliumNetId::Type6_0xc00053, + _ => return Err("not a helium id"), + }; + Ok(id) + } +} diff --git a/src/lib.rs b/src/lib.rs index 18fb113..fd3c8c5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,8 @@ -pub mod client; +pub mod clients; pub mod cmds; +pub mod helium_netids; pub mod hex_field; +pub mod lora_field; pub mod region; pub mod region_params; pub mod route; @@ -16,10 +18,9 @@ use subnet::DevaddrConstraint; pub mod proto { pub use helium_proto::services::iot_config::{ - admin_add_key_req_v1::KeyTypeV1, org_create_helium_req_v1::HeliumNetId, - route_skf_update_req_v1::RouteSkfUpdateV1, ActionV1, DevaddrConstraintV1, DevaddrRangeV1, - EuiPairV1, GatewayLocationResV1, OrgEnableResV1, OrgListResV1, OrgResV1, OrgV1, - RouteListResV1, SkfV1, + admin_add_key_req_v1::KeyTypeV1, route_skf_update_req_v1::RouteSkfUpdateV1, ActionV1, + DevaddrConstraintV1, DevaddrRangeV1, EuiPairV1, GatewayLocationResV1, OrgEnableResV1, + OrgListResV2, OrgResV2, OrgV2, RouteListResV1, SkfV1, }; } @@ -80,26 +81,6 @@ impl PrettyJson for S { } } -#[derive(clap::ValueEnum, Clone, Debug)] -pub enum HeliumNetId { - #[value(alias("0x00003c"))] - Type0_0x00003c, - #[value(alias("0x60002d"))] - Type3_0x60002d, - #[value(alias("0xc00053"))] - Type6_0xc00053, -} - -impl From for proto::HeliumNetId { - fn from(id: HeliumNetId) -> Self { - match id { - HeliumNetId::Type0_0x00003c => proto::HeliumNetId::Type00x00003c, - HeliumNetId::Type3_0x60002d => proto::HeliumNetId::Type30x60002d, - HeliumNetId::Type6_0xc00053 => proto::HeliumNetId::Type60xc00053, - } - } -} - #[derive(Debug, Serialize)] pub struct OrgResponse { pub org: Org, @@ -107,8 +88,8 @@ pub struct OrgResponse { pub devaddr_constraints: Vec, } -impl From for OrgResponse { - fn from(res: proto::OrgResV1) -> Self { +impl From for OrgResponse { + fn from(res: proto::OrgResV2) -> Self { Self { org: res.org.expect("no org returned during creation").into(), net_id: hex_field::net_id(res.net_id), @@ -129,9 +110,11 @@ pub struct OrgList { #[derive(Debug, Clone, Serialize)] pub struct Org { pub oui: Oui, + pub address: PublicKey, pub owner: PublicKey, - pub payer: PublicKey, + pub escrow_key: String, pub delegate_keys: Vec, + pub approved: bool, pub locked: bool, } @@ -298,34 +281,38 @@ impl From for proto::SkfV1 { } } -impl From for OrgList { - fn from(org_list: proto::OrgListResV1) -> Self { +impl From for OrgList { + fn from(org_list: proto::OrgListResV2) -> Self { Self { orgs: org_list.orgs.into_iter().map(|o| o.into()).collect(), } } } -impl From for Org { - fn from(org: proto::OrgV1) -> Self { +impl From for Org { + fn from(org: proto::OrgV2) -> Self { let d = org.delegate_keys.into_iter().flat_map(PublicKey::try_from); Self { oui: org.oui, + address: PublicKey::try_from(org.address).unwrap(), owner: PublicKey::try_from(org.owner).unwrap(), - payer: PublicKey::try_from(org.payer).unwrap(), + escrow_key: org.escrow_key, delegate_keys: d.collect(), + approved: org.approved, locked: org.locked, } } } -impl From for proto::OrgV1 { +impl From for proto::OrgV2 { fn from(org: Org) -> Self { Self { oui: org.oui, + address: org.address.into(), owner: org.owner.into(), - payer: org.payer.into(), + escrow_key: org.escrow_key, delegate_keys: org.delegate_keys.iter().map(|key| key.into()).collect(), + approved: org.approved, locked: org.locked, } } diff --git a/src/lora_field.rs b/src/lora_field.rs new file mode 100644 index 0000000..1903eb2 --- /dev/null +++ b/src/lora_field.rs @@ -0,0 +1,55 @@ +#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)] +pub struct LoraField(pub u64); + +pub type NetIdField = LoraField<6>; + +impl PartialOrd for LoraField { + fn partial_cmp(&self, other: &Self) -> Option { + self.0.partial_cmp(&other.0) + } +} + +// Freely convert any LoraField to and from 64-bit integers +// but limit conversion between 32-bit integers to the NetId +// and DevAddr fields only +impl From> for u64 { + fn from(field: LoraField) -> Self { + field.0 + } +} + +impl From> for i64 { + fn from(field: LoraField) -> Self { + field.0 as i64 + } +} + +impl From> for u32 { + fn from(field: LoraField<6>) -> Self { + field.0 as u32 + } +} + +impl From> for u32 { + fn from(field: LoraField<8>) -> Self { + field.0 as u32 + } +} + +impl From> for i32 { + fn from(field: LoraField<6>) -> Self { + field.0 as i32 + } +} + +impl From> for i32 { + fn from(field: LoraField<8>) -> Self { + field.0 as i32 + } +} + +impl From for LoraField { + fn from(val: u64) -> Self { + LoraField(val) + } +} diff --git a/src/main.rs b/src/main.rs index 55d02d4..84f25e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,17 +72,18 @@ pub async fn handle_cli(cli: Cli) -> Result { Commands::Org { command } => match command { Org::List(args) => org::list_orgs(args).await, Org::Get(args) => org::get_org(args).await, + Org::CreateNetId(args) => org::create_net_id(args).await, Org::CreateHelium(args) => org::create_helium_org(args).await, Org::CreateRoaming(args) => org::create_roaming_org(args).await, + Org::Approve(args) => org::approve_org(args).await, Org::Enable(args) => org::enable_org(args).await, + Org::Disable(args) => org::disable_org(args).await, Org::Update { command } => match command { cmds::OrgUpdateCommand::Owner(args) => org::update_owner(args).await, - cmds::OrgUpdateCommand::Payer(args) => org::update_payer(args).await, cmds::OrgUpdateCommand::DelegateAdd(args) => org::add_delegate_key(args).await, cmds::OrgUpdateCommand::DelegateRemove(args) => { org::remove_delegate_key(args).await } - cmds::OrgUpdateCommand::DevaddrSlabAdd(args) => org::add_devaddr_slab(args).await, cmds::OrgUpdateCommand::DevaddrConstraintAdd(args) => { org::add_devaddr_constraint(args).await } diff --git a/tests/common.rs b/tests/common.rs deleted file mode 100644 index aa01b3a..0000000 --- a/tests/common.rs +++ /dev/null @@ -1,169 +0,0 @@ -#![allow(unused)] -use helium_config_service_cli::{ - client, - cmds::{self, *}, - hex_field, - route::Route, - HeliumNetId, OrgResponse, Result, -}; -use helium_crypto::PublicKey; -use std::{path::PathBuf, str::FromStr}; -use tracing::info; - -pub const CONFIG_HOST: &str = "http://127.0.0.1:50051"; -pub const CONFIG_PUBKEY: &str = "config-server-signing-pubkey"; - -/// These helpers use the CLI commands _and_ client methods directly. -/// -/// You can run these against a fresh test server with -/// `cargo run --bin server` -/// -/// The CLI command output can be printed by enabling tracing in the test. -/// -/// ``` -/// tracing_subscriber::fmt::init(); -/// ``` -/// -/// The clients are used so the test can use information from the config service directly. - -pub fn generate_keypair(path: PathBuf) -> Result { - let out = cmds::env::generate_keypair(cmds::GenerateKeypair { - network: cmds::env::NetworkArg::Mainnet, - out_file: path.clone(), - commit: true, - })?; - info!("generate_keypair: {out}"); - let (_, public_key, _) = cmds::env::get_public_key_from_path(Some(path)); - let public_key = PublicKey::from_str(&public_key)?; - Ok(public_key) -} - -pub async fn create_helium_org( - public_key: &PublicKey, - devaddr_count: u64, - keypair_path: PathBuf, -) -> Result { - let out = cmds::org::create_helium_org(CreateHelium { - owner: public_key.clone(), - payer: public_key.clone(), - delegate: None, - devaddr_count, - net_id: HeliumNetId::Type0_0x00003c, - keypair: keypair_path, - config_host: CONFIG_HOST.to_string(), - config_pubkey: CONFIG_PUBKEY.to_string(), - commit: true, - }) - .await?; - info!("{out}"); - - let mut org_client = client::OrgClient::new(CONFIG_HOST, CONFIG_PUBKEY).await?; - let mut org_list = org_client.list().await?; - // Put in creation order - org_list.orgs.sort_by_key(|x| x.oui); - let org = org_list.orgs.last().expect("existing org after creation"); - // we want the devaddr constraints - let res = org_client.get(org.oui).await?; - Ok(res) -} - -pub async fn ensure_no_routes(oui: u64, keypair_path: PathBuf) -> Result { - let out = cmds::route::list_routes(ListRoutes { - oui, - keypair: keypair_path.clone(), - config_host: CONFIG_HOST.to_string(), - config_pubkey: CONFIG_PUBKEY.to_string(), - commit: false, - }) - .await?; - info!("{out}"); - - let mut route_client = client::RouteClient::new(CONFIG_HOST, CONFIG_PUBKEY).await?; - let route_list = route_client.list(oui, &keypair_path.to_keypair()?).await?; - assert!(route_list.routes.is_empty()); - Ok(()) -} - -pub async fn create_empty_route( - net_id: hex_field::HexNetID, - oui: u64, - keypair_path: PathBuf, -) -> Result { - let out1 = cmds::route::new_route(NewRoute { - net_id, - oui, - max_copies: 5, - keypair: keypair_path.clone(), - config_host: CONFIG_HOST.to_string(), - config_pubkey: CONFIG_PUBKEY.to_string(), - commit: true, - }) - .await?; - info!("{out1}"); - - let mut route_client = client::RouteClient::new(CONFIG_HOST, CONFIG_PUBKEY).await?; - let route_list = route_client.list(oui, &keypair_path.to_keypair()?).await?; - Ok(route_list - .routes - .first() - .expect("route created through CLI commands") - .to_owned()) -} - -pub async fn get_route(route_id: &str, keypair_path: PathBuf) -> Result { - let mut route_client = client::RouteClient::new(CONFIG_HOST, CONFIG_PUBKEY).await?; - let route = route_client - .get(route_id, &keypair_path.to_keypair()?) - .await?; - Ok(route) -} - -pub async fn ensure_no_euis(route_id: &str, keypair_path: PathBuf) -> Result { - ensure_num_euis(0, route_id, keypair_path).await -} - -pub async fn ensure_no_devaddrs(route_id: &str, keypair_path: PathBuf) -> Result { - ensure_num_devaddrs(0, route_id, keypair_path).await -} - -pub async fn ensure_num_euis(eui_count: usize, route_id: &str, keypair_path: PathBuf) -> Result { - let out = cmds::route::euis::list_euis(ListEuis { - route_id: route_id.to_string(), - keypair: keypair_path.clone(), - config_host: CONFIG_HOST.to_string(), - config_pubkey: CONFIG_PUBKEY.to_string(), - app_eui: None, - dev_eui: None, - }) - .await?; - info!("{out}"); - - let mut eui_client = client::EuiClient::new(CONFIG_HOST, CONFIG_PUBKEY).await?; - let euis = eui_client - .get_euis(route_id, &keypair_path.to_keypair()?) - .await?; - assert_eq!(eui_count, euis.len()); - Ok(()) -} - -pub async fn ensure_num_devaddrs( - devaddr_count: usize, - route_id: &str, - keypair_path: PathBuf, -) -> Result { - let out = cmds::route::devaddrs::list_devaddrs(ListDevaddrs { - route_id: route_id.to_string(), - keypair: keypair_path.clone(), - config_host: CONFIG_HOST.to_string(), - config_pubkey: CONFIG_PUBKEY.to_string(), - }) - .await?; - info!("{out}"); - - let mut devaddr_client = client::DevaddrClient::new(CONFIG_HOST, CONFIG_PUBKEY).await?; - let addrs = devaddr_client - .get_devaddrs(route_id, &keypair_path.to_keypair()?) - .await?; - assert_eq!(devaddr_count, addrs.len()); - Ok(()) -} diff --git a/tests/devaddrs.rs b/tests/devaddrs.rs deleted file mode 100644 index 8338565..0000000 --- a/tests/devaddrs.rs +++ /dev/null @@ -1,114 +0,0 @@ -use helium_config_service_cli::{ - client, - cmds::{self, *}, - hex_field, DevaddrRange, Result, -}; - -use temp_dir::TempDir; -use tracing::info; - -mod common; - -#[tokio::test] -async fn create_route_and_add_remove_devaddrs() -> Result { - // tracing_subscriber::fmt::init(); - - let working_dir = TempDir::new()?; - let keypair_path = working_dir.child("keypair.bin"); - let config_host = common::CONFIG_HOST.to_string(); - let config_pubkey = common::CONFIG_PUBKEY.to_string(); - - let mut devaddr_client = client::DevaddrClient::new(&config_host, &config_pubkey).await?; - - // Generate keypair - let public_key = common::generate_keypair(keypair_path.clone())?; - - // Create an org and ensure we start out with no routes - let org_res = common::create_helium_org(&public_key, 16, keypair_path.clone()).await?; - let constraint = org_res.devaddr_constraints.first().unwrap(); - common::ensure_no_routes(org_res.org.oui, keypair_path.clone()).await?; - - // Create a route and ensure there's no default devaddrs - let net_id = hex_field::net_id(0xC00053); - let route = common::create_empty_route(net_id, org_res.org.oui, keypair_path.clone()).await?; - common::ensure_no_devaddrs(&route.id, keypair_path.clone()).await?; - - // devaddr outside org constraint, should not add - let out1 = cmds::route::devaddrs::add_devaddr(AddDevaddr { - start_addr: hex_field::devaddr(1), - end_addr: hex_field::devaddr(2), - route_id: route.id.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - println!("1: {out1}"); - common::ensure_no_devaddrs(&route.id, keypair_path.clone()).await?; - - // Construct a devaddr within the org contraint, add and remove - let devaddr_range = constraint.start_addr.to_range(3); - let out2 = cmds::route::devaddrs::add_devaddr(AddDevaddr { - start_addr: devaddr_range.start_addr, - end_addr: devaddr_range.end_addr, - route_id: route.id.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - println!("2: {out2}"); - common::ensure_num_devaddrs(1, &route.id, keypair_path.clone()).await?; - - let out3 = cmds::route::devaddrs::remove_devaddr(RemoveDevaddr { - start_addr: devaddr_range.start_addr, - end_addr: devaddr_range.end_addr, - route_id: route.id.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - println!("3: {out3}"); - common::ensure_no_devaddrs(&route.id, keypair_path.clone()).await?; - - // Add many devaddrs to delete - let mut devaddrs = vec![]; - for d in 1..10 { - let range = constraint.start_addr.to_range(d); - let range = DevaddrRange::new(route.id.clone(), range.start_addr, range.end_addr)?; - - devaddrs.push(range); - } - let adding = devaddr_client - .add_devaddrs(devaddrs, &keypair_path.to_keypair()?) - .await?; - info!("bulk adding devaddrs: {adding:?}"); - let _ = common::ensure_num_devaddrs(9, &route.id, keypair_path.clone()).await; - - // Print subnets for visual inspection - let out4 = cmds::route::devaddrs::subnet_mask(RouteSubnetMask { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - }) - .await?; - info!("4: {out4}"); - - let out5 = cmds::route::devaddrs::clear_devaddrs(ClearDevaddrs { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("5: {out5}"); - let _ = common::ensure_no_devaddrs(&route.id, keypair_path.clone()).await; - - Ok(()) -} diff --git a/tests/euis.rs b/tests/euis.rs deleted file mode 100644 index 6817167..0000000 --- a/tests/euis.rs +++ /dev/null @@ -1,82 +0,0 @@ -use helium_config_service_cli::{ - client, - cmds::{self, *}, - hex_field, Eui, Result, -}; -use temp_dir::TempDir; -use tracing::info; - -mod common; - -#[tokio::test] -async fn create_route_and_add_remove_euis() -> Result { - // tracing_subscriber::fmt::init(); - - let working_dir = TempDir::new()?; - let keypair_path = working_dir.child("keypair.bin"); - let config_host = common::CONFIG_HOST.to_string(); - let config_pubkey = common::CONFIG_PUBKEY.to_string(); - - // Generate keypair - let public_key = common::generate_keypair(keypair_path.clone())?; - - // Create an org and ensure we start with no routes - let org_res = common::create_helium_org(&public_key, 8, keypair_path.clone()).await?; - common::ensure_no_routes(org_res.org.oui, keypair_path.clone()).await?; - - // Create a route an ensure there's no default euis - let net_id = hex_field::net_id(0xC00053); - let route = common::create_empty_route(net_id, org_res.org.oui, keypair_path.clone()).await?; - common::ensure_no_euis(&route.id, keypair_path.clone()).await?; - - // Add an EUI - let out1 = cmds::route::euis::add_eui(AddEui { - dev_eui: hex_field::eui(1), - app_eui: hex_field::eui(2), - route_id: route.id.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - info!("1: {out1}"); - common::ensure_num_euis(1, &route.id, keypair_path.clone()).await?; - - // Remove Eui - let out2 = cmds::route::euis::remove_eui(RemoveEui { - dev_eui: hex_field::eui(1), - app_eui: hex_field::eui(2), - route_id: route.id.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - println!("2: {out2}"); - common::ensure_no_euis(&route.id, keypair_path.clone()).await?; - - // Add many Euis to delete - let mut eui_client = client::EuiClient::new(common::CONFIG_HOST, common::CONFIG_PUBKEY).await?; - let mut euis = vec![]; - for e in 0..15 { - euis.push(Eui::new( - route.id.clone(), - hex_field::eui(e), - hex_field::eui(e + 1), - )?); - } - let adding = eui_client - .add_euis(euis, &keypair_path.to_keypair()?) - .await?; - info!("bulk adding euis: {adding:?}"); - common::ensure_num_euis(15, &route.id, keypair_path.clone()).await?; - - eui_client - .delete_euis(route.id.clone(), &keypair_path.to_keypair()?) - .await?; - common::ensure_no_euis(&route.id, keypair_path.clone()).await?; - - Ok(()) -} diff --git a/tests/protocols.rs b/tests/protocols.rs deleted file mode 100644 index 8835e00..0000000 --- a/tests/protocols.rs +++ /dev/null @@ -1,171 +0,0 @@ -use anyhow::anyhow; -use helium_config_service_cli::{ - cmds::{self, *}, - hex_field, server, Result, -}; -use temp_dir::TempDir; -use tracing::info; - -mod common; - -#[tokio::test] -async fn create_route_and_update_server() -> Result { - // tracing_subscriber::fmt::init(); - - let working_dir = TempDir::new()?; - let keypair_path = working_dir.child("keypair.bin"); - let config_host = common::CONFIG_HOST.to_string(); - let config_pubkey = common::CONFIG_PUBKEY.to_string(); - - // Generate keypair - let public_key = common::generate_keypair(keypair_path.clone())?; - - // Create an org and ensure we start out with no routes - let org_res = common::create_helium_org(&public_key, 16, keypair_path.clone()).await?; - common::ensure_no_routes(org_res.org.oui, keypair_path.clone()).await?; - - // Create a route and ensure there's no default protocol - let net_id = hex_field::net_id(0xC00053); - let route = common::create_empty_route(net_id, org_res.org.oui, keypair_path.clone()).await?; - let out1 = cmds::route::get_route(GetRoute { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - stats: false, - }) - .await?; - info!("{out1}"); - assert!(route.server.protocol.is_none()); - - // Set packet-router protocol - let out2 = cmds::route::update_packet_router(UpdatePacketRouter { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out2}"); - let packet_router_route = common::get_route(&route.id, keypair_path.clone()).await?; - assert!(packet_router_route.server.protocol.is_some()); - - // Set Http Protocol - let out3 = cmds::route::update_http(UpdateHttp { - route_id: route.id.clone(), - dedupe_timeout: 234, - path: "path".to_string(), - receiver_nsid: None, - auth_header: Some("test-header".to_string()), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out3}"); - let http_route = common::get_route(&route.id, keypair_path.clone()).await?; - let http_protocol = http_route - .server - .protocol - .expect("existing protocol") - .inner_http()?; - - assert_eq!( - server::Http { - flow_type: server::FlowType::Async, - dedupe_timeout: 234, - path: "path".to_string(), - auth_header: "test-header".to_string(), - receiver_nsid: "".to_string(), - }, - http_protocol - ); - - // Set GWMP protocol - let out4 = cmds::route::add_gwmp_region(AddGwmpRegion { - route_id: route.id.clone(), - region: helium_config_service_cli::region::Region::As923_1a, - region_port: 9001, - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out4}"); - let gwmp_route = common::get_route(&route.id, keypair_path.clone()).await?; - let gwmp_protocol = gwmp_route - .server - .protocol - .expect("existing protocol") - .inner_gwmp()?; - assert_eq!(1, gwmp_protocol.mapping.len()); - - let out5 = cmds::route::add_gwmp_region(AddGwmpRegion { - route_id: route.id.clone(), - region: helium_config_service_cli::region::Region::Eu433, - region_port: 9002, - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out5}"); - let gwmp_route = common::get_route(&route.id, keypair_path.clone()).await?; - let gwmp_protocol = gwmp_route - .server - .protocol - .expect("existing protocol") - .inner_gwmp()?; - assert_eq!(2, gwmp_protocol.mapping.len()); - - let out6 = cmds::route::remove_gwmp_region(RemoveGwmpRegion { - route_id: route.id.clone(), - region: helium_config_service_cli::region::Region::As923_1a, - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out6}"); - let gwmp_route = common::get_route(&route.id, keypair_path.clone()).await?; - let gwmp_protocol = gwmp_route - .server - .protocol - .expect("existing protocol") - .inner_gwmp()?; - assert_eq!(1, gwmp_protocol.mapping.len()); - - Ok(()) -} - -trait InnerProtocol { - fn inner_http(&self) -> Result; - fn inner_gwmp(&self) -> Result; -} - -impl InnerProtocol for server::Protocol { - fn inner_http(&self) -> Result { - match self { - server::Protocol::Http(http) => Ok(http.clone()), - server::Protocol::Gwmp(_) => Err(anyhow!("Cannot return http for gwmp protocol")), - server::Protocol::PacketRouter => { - Err(anyhow!("Cannot return http for packet-router protocol")) - } - } - } - - fn inner_gwmp(&self) -> Result { - match self { - server::Protocol::Gwmp(gwmp) => Ok(gwmp.clone()), - server::Protocol::Http(_) => Err(anyhow!("Cannot return gwmp for http protocol")), - server::Protocol::PacketRouter => { - Err(anyhow!("Cannot return gwmp for packet-router protocl")) - } - } - } -} diff --git a/tests/server.rs b/tests/server.rs deleted file mode 100644 index a492d43..0000000 --- a/tests/server.rs +++ /dev/null @@ -1,58 +0,0 @@ -use helium_config_service_cli::{ - cmds::{self, *}, - hex_field, Result, -}; -use temp_dir::TempDir; -use tracing::info; - -mod common; - -#[tokio::test] -async fn create_route_and_update_server() -> Result { - // tracing_subscriber::fmt::init(); - - let working_dir = TempDir::new()?; - let keypair_path = working_dir.child("keypair.bin"); - let config_host = common::CONFIG_HOST.to_string(); - let config_pubkey = common::CONFIG_PUBKEY.to_string(); - - // Generate keypair - let public_key = common::generate_keypair(keypair_path.clone())?; - - // Create an org and ensure we start out with no routes - let org_res = common::create_helium_org(&public_key, 16, keypair_path.clone()).await?; - common::ensure_no_routes(org_res.org.oui, keypair_path.clone()).await?; - - // Create a route and ensure there's no default server - let net_id = hex_field::net_id(0xC00053); - let route = common::create_empty_route(net_id, org_res.org.oui, keypair_path.clone()).await?; - let out1 = cmds::route::get_route(GetRoute { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - stats: false, - }) - .await?; - info!("{out1}"); - assert!(route.server.host.is_empty()); - assert!(route.server.port == 0); - - // Update the server and port - let out2 = cmds::route::update_server(UpdateServer { - route_id: route.id.clone(), - host: "www.example.com".to_string(), - port: 1337, - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out2}"); - let updated_route = common::get_route(&route.id, keypair_path.clone()).await?; - assert_eq!("www.example.com", updated_route.server.host); - assert_eq!(1337, updated_route.server.port); - - Ok(()) -} diff --git a/tests/skfs.rs b/tests/skfs.rs deleted file mode 100644 index a5b4f69..0000000 --- a/tests/skfs.rs +++ /dev/null @@ -1,148 +0,0 @@ -use helium_config_service_cli::{ - client, - cmds::{self, *}, - hex_field, Result, -}; - -use temp_dir::TempDir; -use tracing::info; - -mod common; - -#[tokio::test] -async fn create_org_and_add_remove_session_key_filtesr() -> Result { - // tracing_subscriber::fmt::init(); - - let working_dir = TempDir::new()?; - let keypair_path = working_dir.child("keypair.bin"); - let config_host = common::CONFIG_HOST.to_string(); - let config_pubkey = common::CONFIG_PUBKEY.to_string(); - - let mut skf_client = client::SkfClient::new(&config_host, &config_pubkey).await?; - - // Generate keypair - let public_key = common::generate_keypair(keypair_path.clone())?; - - // Create an org and ensure we start out with no routes - let org_res = common::create_helium_org(&public_key, 16, keypair_path.clone()).await?; - common::ensure_no_routes(org_res.org.oui, keypair_path.clone()).await?; - - // Create a route and ensure there's no default skfs - let net_id = hex_field::net_id(0xC00053); - let route = common::create_empty_route(net_id, org_res.org.oui, keypair_path.clone()).await?; - - // List session key filters, there are none - let out = cmds::route::skfs::list_filters(ListFilters { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - }) - .await?; - info!("empty list: {out}"); - let filters = skf_client - .list_filters(&route.id, &keypair_path.to_keypair()?) - .await?; - assert!(filters.is_empty()); - - // Add 2 session key filters - let out = cmds::route::skfs::add_filter(AddFilter { - route_id: route.id.clone(), - devaddr: hex_field::devaddr(1), - session_key: "key-one".to_string(), - max_copies: Some(3), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - info!("add 1: {out}"); - - let out = cmds::route::skfs::add_filter(AddFilter { - route_id: route.id.clone(), - devaddr: hex_field::devaddr(2), - session_key: "key-two".to_string(), - max_copies: Some(3), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - info!("add 2: {out}"); - - // List session key filters again, expecting 2 - let out = cmds::route::skfs::list_filters(ListFilters { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - }) - .await?; - info!("list of 2: {out}"); - let filters = skf_client - .list_filters(&route.id, &keypair_path.to_keypair()?) - .await?; - assert_eq!(2, filters.len()); - - // Get specific devaddr, expecting 1 - let out = cmds::route::skfs::get_filters(GetFilters { - route_id: route.id.clone(), - devaddr: hex_field::devaddr(1), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - }) - .await?; - info!("get, list of 1: {out}"); - let filters = skf_client - .get_filters( - &route.id, - hex_field::devaddr(1), - &keypair_path.to_keypair()?, - ) - .await?; - assert_eq!(1, filters.len()); - - // Remove both session key filters - let out = cmds::route::skfs::remove_filter(RemoveFilter { - route_id: route.id.clone(), - devaddr: hex_field::devaddr(1), - session_key: "key-one".to_string(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - info!("removing 1: {out}"); - - let out = cmds::route::skfs::remove_filter(RemoveFilter { - route_id: route.id.clone(), - devaddr: hex_field::devaddr(2), - session_key: "key-two".to_string(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - keypair: keypair_path.clone(), - commit: true, - }) - .await?; - info!("removing 2: {out}"); - - // List session key filters, expecting none - let out = cmds::route::skfs::list_filters(ListFilters { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - }) - .await?; - info!("empty list: {out}"); - let filters = skf_client - .list_filters(&route.id, &keypair_path.to_keypair()?) - .await?; - assert!(filters.is_empty()); - - Ok(()) -} diff --git a/tests/status.rs b/tests/status.rs deleted file mode 100644 index ca6a474..0000000 --- a/tests/status.rs +++ /dev/null @@ -1,67 +0,0 @@ -use helium_config_service_cli::{ - cmds::{self, *}, - hex_field, Result, -}; -use temp_dir::TempDir; -use tracing::info; - -mod common; - -#[tokio::test] -async fn create_route_and_update_server() -> Result { - tracing_subscriber::fmt::init(); - - let working_dir = TempDir::new()?; - let keypair_path = working_dir.child("keypair.bin"); - let config_host = common::CONFIG_HOST.to_string(); - let config_pubkey = common::CONFIG_PUBKEY.to_string(); - - // Generate keypair - let public_key = common::generate_keypair(keypair_path.clone())?; - - // Create an org and ensure we start out with no routes - let org_res = common::create_helium_org(&public_key, 16, keypair_path.clone()).await?; - common::ensure_no_routes(org_res.org.oui, keypair_path.clone()).await?; - - // Create a route and ensure there's no default protocol - let net_id = hex_field::net_id(0xC00053); - let route = common::create_empty_route(net_id, org_res.org.oui, keypair_path.clone()).await?; - let out = cmds::route::get_route(GetRoute { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - stats: false, - }) - .await?; - info!("{out}"); - assert!(route.active); - - // Disable the Route - let out = cmds::route::deactivate_route(DeactivateRoute { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out}"); - let route = common::get_route(&route.id, keypair_path.clone()).await?; - assert!(!route.active); - - // Re-enable to the Route - let out = cmds::route::activate_route(ActivateRoute { - route_id: route.id.clone(), - keypair: keypair_path.clone(), - config_host: config_host.clone(), - config_pubkey: config_pubkey.clone(), - commit: true, - }) - .await?; - info!("{out}"); - let route = common::get_route(&route.id, keypair_path.clone()).await?; - assert!(route.active); - - Ok(()) -}