From cb7784a4f48f6343dd664b87e6c5c03862bc8ad0 Mon Sep 17 00:00:00 2001 From: Jarry Xiao Date: Mon, 3 Jun 2024 12:21:48 -0400 Subject: [PATCH] Fix all of the seat manager tests --- Cargo.lock | 5927 ++++++++++++++--- Cargo.toml | 7 +- tests/setup/helpers.rs | 25 +- tests/setup/init.rs | 8 +- tests/test_add_remove_mm.rs | 39 +- tests/test_change_market_fee_recipient.rs | 77 +- tests/test_change_market_status.rs | 14 +- tests/test_claim_market_authority.rs | 86 +- tests/test_claim_seat.rs | 84 +- tests/test_claim_seat_manager_authority.rs | 26 +- ...confirm_renounce_seat_manager_authority.rs | 19 +- tests/test_evict_seat.rs | 236 +- tests/test_name_market_authority_successor.rs | 26 +- tests/test_name_seat_manager_successor.rs | 15 +- tests/test_seat_manager.rs | 53 +- 15 files changed, 5488 insertions(+), 1154 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1a2e01a..9dff6be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,31 @@ # It is not intended for manual editing. version = 3 +[[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.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + [[package]] name = "aead" version = "0.4.3" @@ -51,13 +76,15 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +checksum = "cd7d5a2cecb58716e47d67d5703a249964b14c7be1ec3cad3affc295b2d1c35d" dependencies = [ "cfg-if", + "getrandom 0.2.14", "once_cell", "version_check", + "zerocopy", ] [[package]] @@ -69,6 +96,51 @@ dependencies = [ "memchr", ] +[[package]] +name = "aliasable" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd" + +[[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 = "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]] +name = "ansi_term" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +dependencies = [ + "winapi", +] + [[package]] name = "anyhow" version = "1.0.71" @@ -116,7 +188,7 @@ dependencies = [ "derivative", "digest 0.10.7", "itertools", - "num-bigint", + "num-bigint 0.4.4", "num-traits", "paste", "rustc_version", @@ -139,7 +211,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" dependencies = [ - "num-bigint", + "num-bigint 0.4.4", "num-traits", "proc-macro2", "quote", @@ -168,7 +240,7 @@ dependencies = [ "ark-serialize-derive", "ark-std", "digest 0.10.7", - "num-bigint", + "num-bigint 0.4.4", ] [[package]] @@ -204,12 +276,124 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +[[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", + "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", +] + +[[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 = "assert_matches" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" +[[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", + "futures-core", +] + +[[package]] +name = "async-compression" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd066d0b4ef8ecb03a55319dc13aa6910616d0f44008a045bb1835af830abff5" +dependencies = [ + "brotli", + "flate2", + "futures-core", + "memchr", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "async-mutex" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479db852db25d9dbf6204e6cb6253698f175c15726470f78af0d918e99d6156e" +dependencies = [ + "event-listener", +] + +[[package]] +name = "async-stream" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" +dependencies = [ + "async-stream-impl", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-stream-impl" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "async-trait" +version = "0.1.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + [[package]] name = "atty" version = "0.2.14" @@ -227,18 +411,113 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "autotools" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef941527c41b0fc0dd48511a8154cd5fc7e29200a0ff8b7203c5d777dbc795cf" +dependencies = [ + "cc", +] + +[[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 = "backoff" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1" +dependencies = [ + "futures-core", + "getrandom 0.2.14", + "instant", + "pin-project-lite", + "rand 0.8.5", + "tokio", +] + +[[package]] +name = "backtrace" +version = "0.3.71" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" +dependencies = [ + "addr2line", + "cc", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", +] + [[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 = "base64ct" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" + [[package]] name = "bincode" version = "1.3.3" @@ -272,6 +551,18 @@ dependencies = [ "typenum", ] +[[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.5.1" @@ -333,11 +624,11 @@ dependencies = [ [[package]] name = "borsh" -version = "1.4.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0901fc8eb0aca4c83be0106d6f2db17d86a08dfc2c25f0e84464bf381158add6" +checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed" dependencies = [ - "borsh-derive 1.4.0", + "borsh-derive 1.5.1", "cfg_aliases", ] @@ -369,9 +660,9 @@ dependencies = [ [[package]] name = "borsh-derive" -version = "1.4.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51670c3aa053938b0ee3bd67c3817e471e626151131b934038e83c5bf8de48f5" +checksum = "c3ef8005764f53cd4dca619f5bf64cafd4664dada50ece25e4d81de54c80cc0b" dependencies = [ "once_cell", "proc-macro-crate 3.1.0", @@ -425,6 +716,27 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "brotli" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74f7971dbd9326d58187408ab83117d8ac1bb9c17b085fdacd1cf2f598719b6b" +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.4.0" @@ -447,6 +759,28 @@ dependencies = [ "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.15.0" @@ -473,6 +807,43 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" +[[package]] +name = "bytes" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" + +[[package]] +name = "bzip2" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + +[[package]] +name = "caps" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "190baaad529bcfbde9e1a19022c42781bdb6ff9de25721abdb8fd98c0807730b" +dependencies = [ + "libc", + "thiserror", +] + [[package]] name = "cc" version = "1.0.92" @@ -491,9 +862,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cfg_aliases" -version = "0.1.1" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" @@ -501,7 +872,22 @@ version = "0.4.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a0d04d43504c61aa6c7531f1871dd0d418d91130162063b789da00fd7057a5e" dependencies = [ + "android-tzdata", + "iana-time-zone", + "js-sys", "num-traits", + "serde", + "wasm-bindgen", + "windows-targets 0.52.5", +] + +[[package]] +name = "chrono-humanize" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799627e6b4d27827a814e837b9d8a504832086081806d45b1afa34dc982b023b" +dependencies = [ + "chrono", ] [[package]] @@ -514,40 +900,185 @@ dependencies = [ ] [[package]] -name = "console_error_panic_hook" -version = "0.1.7" +name = "clap" +version = "2.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" dependencies = [ - "cfg-if", - "wasm-bindgen", + "ansi_term", + "atty", + "bitflags 1.3.2", + "strsim 0.8.0", + "textwrap 0.11.0", + "unicode-width", + "vec_map", ] [[package]] -name = "console_log" -version = "0.2.2" +name = "clap" +version = "3.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f" +checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" dependencies = [ - "log", - "web-sys", + "atty", + "bitflags 1.3.2", + "clap_derive", + "clap_lex", + "indexmap 1.9.3", + "once_cell", + "strsim 0.10.0", + "termcolor", + "textwrap 0.16.1", ] [[package]] -name = "constant_time_eq" -version = "0.3.0" +name = "clap_derive" +version = "3.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" - -[[package]] -name = "cpufeatures" -version = "0.2.7" +checksum = "ae6371b8bdc8b7d3959e9cf7b22d4435ef3e79e138688421ec654acf8c81b008" +dependencies = [ + "heck", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "clap_lex" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" +dependencies = [ + "os_str_bytes", +] + +[[package]] +name = "coinbase-pro-rs" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24ad8993b01e73093c5790d26ee5e9273e531b24963739c5b3cb2a0587bb175e" +dependencies = [ + "async-trait", + "base64 0.13.1", + "chrono", + "futures 0.3.30", + "futures-util", + "hmac 0.10.1", + "hyper", + "hyper-tls", + "log", + "serde", + "serde_json", + "sha2 0.9.9", + "thiserror", + "tokio", + "tokio-tungstenite 0.13.0", + "url", + "uuid 0.8.2", +] + +[[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 = "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", + "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 = "constant_time_eq" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" + +[[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-sys" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" + +[[package]] +name = "cpufeatures" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e4c1eaa2012c47becbbad2ab175484c2a84d1185b566fb2cc5b8707343dfe58" 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.8" @@ -617,6 +1148,16 @@ dependencies = [ "subtle", ] +[[package]] +name = "crypto-mac" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bff07008ec701e8028e2ceb8f83f0e4274ee62bd2dbdc4fefff2e9a91824081a" +dependencies = [ + "generic-array", + "subtle", +] + [[package]] name = "ctr" version = "0.8.0" @@ -660,7 +1201,7 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "strsim", + "strsim 0.10.0", "syn 2.0.58", ] @@ -675,6 +1216,55 @@ dependencies = [ "syn 2.0.58", ] +[[package]] +name = "dashmap" +version = "4.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e77a43b28d0668df09411cb0bc9a8c2adc40f9a048afe863e05fd43251e8e39c" +dependencies = [ + "cfg-if", + "num_cpus", + "rayon", +] + +[[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", +] + +[[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.4", + "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" @@ -692,6 +1282,18 @@ dependencies = [ "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 = "digest" version = "0.9.0" @@ -712,6 +1314,55 @@ dependencies = [ "subtle", ] +[[package]] +name = "dir-diff" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7ad16bf5f84253b50d6557681c58c3ab67c47c77d39fed9aeb56e947290bd10" +dependencies = [ + "walkdir", +] + +[[package]] +name = "displaydoc" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[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.58", +] + +[[package]] +name = "eager" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe71d579d1812060163dff96056261deb5bf6729b100fa2e36a68b9649ba3d3" + [[package]] name = "ed25519" version = "1.5.3" @@ -747,12 +1398,66 @@ dependencies = [ "sha2 0.10.8", ] +[[package]] +name = "educe" +version = "0.4.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f0042ff8246a363dbe77d2ceedb073339e85a804b9a47636c6e016a9a32c05f" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "either" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" +[[package]] +name = "ellipsis-client" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a01d400975c0635b22a4cadb1484186450af37b7dc1fd46731f59c3eba86cee2" +dependencies = [ + "anyhow", + "assert_matches", + "async-trait", + "backoff", + "base64 0.13.1", + "bincode", + "borsh 0.9.3", + "bs58", + "chrono-humanize", + "crossbeam-channel", + "ellipsis-transaction-utils", + "futures 0.3.30", + "itertools", + "lazy_static", + "log", + "serde", + "solana-banks-client", + "solana-bpf-loader-program", + "solana-client", + "solana-logger", + "solana-program", + "solana-program-runtime", + "solana-runtime", + "solana-sdk", + "solana-send-transaction-service", + "solana-transaction-status", + "solana-vote-program", + "tarpc", + "thiserror", + "tokio", + "tokio-serde", + "tracing", + "yellowstone-grpc-client", + "yellowstone-grpc-proto", +] + [[package]] name = "ellipsis-macros" version = "0.1.1" @@ -768,1246 +1473,3759 @@ dependencies = [ ] [[package]] -name = "env_logger" -version = "0.9.3" +name = "ellipsis-transaction-utils" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +checksum = "47c75d06e82a2d9d393ee598485ebed54f1bcffe049fc68b7aac8d3f77c85ab7" dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", + "bs58", + "itertools", + "serde", + "solana-sdk", + "solana-transaction-status", ] [[package]] -name = "equivalent" -version = "1.0.1" +name = "encode_unicode" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" [[package]] -name = "feature-probe" -version = "0.1.1" +name = "encoding_rs" +version = "0.8.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" +checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" +dependencies = [ + "cfg-if", +] [[package]] -name = "fnv" -version = "1.0.7" +name = "enum-iterator" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +checksum = "9fd242f399be1da0a5354aa462d57b4ab2b4ee0683cc552f7c007d2d12d36e94" +dependencies = [ + "enum-iterator-derive", +] [[package]] -name = "generic-array" -version = "0.14.7" +name = "enum-iterator-derive" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" dependencies = [ - "serde", - "typenum", - "version_check", + "proc-macro2", + "quote", + "syn 2.0.58", ] [[package]] -name = "getrandom" -version = "0.1.16" +name = "enum-ordinalize" +version = "3.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +checksum = "1bf1fa3f06bbff1ea5b1a9c7b14aa992a39657db60a2759457328d7e058f49ee" dependencies = [ - "cfg-if", - "js-sys", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", + "num-bigint 0.4.4", + "num-traits", + "proc-macro2", + "quote", + "syn 2.0.58", ] [[package]] -name = "getrandom" -version = "0.2.14" +name = "env_logger" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" dependencies = [ - "cfg-if", - "js-sys", - "libc", - "wasi 0.11.0+wasi-snapshot-preview1", - "wasm-bindgen", + "atty", + "humantime", + "log", + "regex", + "termcolor", ] [[package]] -name = "hashbrown" -version = "0.11.2" +name = "equivalent" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "errno" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ - "ahash 0.7.6", + "libc", + "windows-sys 0.52.0", ] [[package]] -name = "hashbrown" -version = "0.12.3" +name = "event-listener" +version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] -name = "hashbrown" -version = "0.13.2" +name = "fastrand" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" -dependencies = [ - "ahash 0.8.3", -] +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] -name = "hashbrown" -version = "0.14.3" +name = "feature-probe" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" [[package]] -name = "hermit-abi" -version = "0.1.19" +name = "filetime" +version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" dependencies = [ + "cfg-if", "libc", + "redox_syscall 0.4.1", + "windows-sys 0.52.0", ] [[package]] -name = "hermit-abi" -version = "0.2.6" +name = "fixedbitset" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" -dependencies = [ - "libc", -] +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] -name = "hmac" -version = "0.8.1" +name = "flate2" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ - "crypto-mac", - "digest 0.9.0", + "crc32fast", + "miniz_oxide", ] [[package]] -name = "hmac" -version = "0.12.1" +name = "fnv" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" -dependencies = [ - "digest 0.10.7", -] +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] -name = "hmac-drbg" -version = "0.3.0" +name = "foreign-types" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" dependencies = [ - "digest 0.9.0", - "generic-array", - "hmac 0.8.1", + "foreign-types-shared", ] [[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "ident_case" -version = "1.0.1" +name = "foreign-types-shared" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] -name = "im" -version = "15.1.0" +name = "form_urlencoded" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ - "bitmaps", - "rand_core 0.6.4", - "rand_xoshiro", - "rayon", - "serde", - "sized-chunks", - "typenum", - "version_check", + "percent-encoding", ] [[package]] -name = "indexmap" -version = "1.9.3" +name = "fs-err" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" dependencies = [ "autocfg", - "hashbrown 0.12.3", ] [[package]] -name = "indexmap" -version = "2.2.6" +name = "funty" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" -dependencies = [ - "equivalent", - "hashbrown 0.14.3", -] +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] -name = "itertools" -version = "0.10.5" +name = "futures" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] +checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" [[package]] -name = "itoa" -version = "1.0.6" +name = "futures" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" +checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] [[package]] -name = "jobserver" -version = "0.1.26" +name = "futures-channel" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ - "libc", + "futures-core", + "futures-sink", ] [[package]] -name = "js-sys" -version = "0.3.69" +name = "futures-core" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" -dependencies = [ - "wasm-bindgen", -] +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] -name = "keccak" -version = "0.1.4" +name = "futures-executor" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" +checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" dependencies = [ - "cpufeatures", + "futures-core", + "futures-task", + "futures-util", ] [[package]] -name = "lazy_static" -version = "1.4.0" +name = "futures-io" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] -name = "lib-sokoban" -version = "0.3.0" +name = "futures-macro" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6295db13f26aaa8bb4fb38e0c9ff50253814aa490eef7b4d6aa106ba6fc843" +checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ - "bytemuck", - "num-derive 0.3.3", - "num-traits", - "thiserror", + "proc-macro2", + "quote", + "syn 2.0.58", ] [[package]] -name = "libc" -version = "0.2.153" +name = "futures-sink" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] -name = "libsecp256k1" -version = "0.6.0" +name = "futures-task" +version = "0.3.30" 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", -] +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] -name = "libsecp256k1-core" -version = "0.2.2" +name = "futures-util" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ - "crunchy", - "digest 0.9.0", - "subtle", + "futures 0.1.31", + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", ] [[package]] -name = "libsecp256k1-gen-ecmult" -version = "0.2.1" +name = "generic-array" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ - "libsecp256k1-core", + "serde", + "typenum", + "version_check", ] [[package]] -name = "libsecp256k1-gen-genmult" -version = "0.2.1" +name = "gethostname" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" dependencies = [ - "libsecp256k1-core", + "libc", + "winapi", ] [[package]] -name = "light-poseidon" -version = "0.2.0" +name = "getrandom" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ - "ark-bn254", - "ark-ff", - "num-bigint", - "thiserror", + "cfg-if", + "js-sys", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] -name = "lock_api" -version = "0.4.9" +name = "getrandom" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ - "autocfg", - "scopeguard", + "cfg-if", + "js-sys", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] -name = "log" -version = "0.4.21" +name = "gimli" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] -name = "memchr" -version = "2.5.0" +name = "goblin" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "a7666983ed0dd8d21a6f6576ee00053ca0926fb281a5522577a4dbd0f1b54143" +dependencies = [ + "log", + "plain", + "scroll", +] [[package]] -name = "memmap2" -version = "0.5.10" +name = "h2" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ - "libc", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http", + "indexmap 2.2.6", + "slab", + "tokio", + "tokio-util 0.7.11", + "tracing", ] [[package]] -name = "memoffset" -version = "0.8.0" +name = "hash32" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" dependencies = [ - "autocfg", + "byteorder", ] [[package]] -name = "memoffset" -version = "0.9.1" +name = "hashbrown" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" dependencies = [ - "autocfg", + "ahash 0.7.6", ] [[package]] -name = "merlin" -version = "3.0.0" +name = "hashbrown" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "byteorder", - "keccak", - "rand_core 0.6.4", - "zeroize", + "ahash 0.7.6", ] [[package]] -name = "nom8" -version = "0.2.0" +name = "hashbrown" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "memchr", + "ahash 0.8.5", ] [[package]] -name = "num-bigint" -version = "0.4.4" +name = "hashbrown" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] -name = "num-derive" -version = "0.3.3" +name = "heck" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] -name = "num-derive" -version = "0.4.2" +name = "hermit-abi" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.58", + "libc", ] [[package]] -name = "num-integer" -version = "0.1.45" +name = "hermit-abi" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" -dependencies = [ - "autocfg", - "num-traits", -] +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] -name = "num-traits" -version = "0.2.18" +name = "histogram" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" +checksum = "12cb882ccb290b8646e554b157ab0b71e64e8d5bef775cd66b6531e52d302669" + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" dependencies = [ - "autocfg", + "crypto-mac 0.8.0", + "digest 0.9.0", ] [[package]] -name = "num_cpus" -version = "1.15.0" +name = "hmac" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "c1441c6b1e930e2817404b5046f1f989899143a12bf92de603b69f4e0aee1e15" dependencies = [ - "hermit-abi 0.2.6", - "libc", + "crypto-mac 0.10.1", + "digest 0.9.0", ] [[package]] -name = "num_enum" -version = "0.5.9" +name = "hmac" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d829733185c1ca374f17e52b762f24f535ec625d2cc1f070e34c8a9068f341b" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "num_enum_derive 0.5.11", + "digest 0.10.7", ] [[package]] -name = "num_enum" -version = "0.7.2" +name = "hmac-drbg" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02339744ee7253741199f897151b38e72257d13802d4ee837285cc2990a90845" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ - "num_enum_derive 0.7.2", + "digest 0.9.0", + "generic-array", + "hmac 0.8.1", ] [[package]] -name = "num_enum_derive" -version = "0.5.11" +name = "http" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ - "proc-macro-crate 1.3.0", - "proc-macro2", - "quote", - "syn 1.0.109", + "bytes", + "fnv", + "itoa", ] [[package]] -name = "num_enum_derive" -version = "0.7.2" +name = "http-body" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "681030a937600a36906c185595136d26abfebb4aa9c65701cefcaf8578bb982b" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ - "proc-macro-crate 1.3.0", - "proc-macro2", - "quote", - "syn 2.0.58", + "bytes", + "http", + "pin-project-lite", ] [[package]] -name = "once_cell" -version = "1.19.0" +name = "httparse" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] -name = "opaque-debug" -version = "0.3.0" +name = "httpdate" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] -name = "parking_lot" -version = "0.12.1" +name = "humantime" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" -dependencies = [ - "lock_api", - "parking_lot_core", -] +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] -name = "parking_lot_core" -version = "0.9.7" +name = "hyper" +version = "0.14.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" +checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-sys", + "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 = "paste" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" - -[[package]] -name = "pbkdf2" -version = "0.4.0" +name = "hyper-rustls" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ - "crypto-mac", + "futures-util", + "http", + "hyper", + "rustls", + "tokio", + "tokio-rustls", ] [[package]] -name = "pbkdf2" -version = "0.11.0" +name = "hyper-timeout" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" +checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" dependencies = [ - "digest 0.10.7", + "hyper", + "pin-project-lite", + "tokio", + "tokio-io-timeout", ] [[package]] -name = "percent-encoding" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" - -[[package]] -name = "phoenix-common" -version = "0.2.1" +name = "hyper-tls" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03dca57d9eb69b3382cd2a879d52517609561a1030479f69fe5f023f84b9b2cc" +checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ - "borsh 0.9.3", - "bytemuck", - "ellipsis-macros", - "itertools", - "lib-sokoban", - "num_enum 0.5.9", - "shank", - "solana-program", - "solana-security-txt", - "spl-associated-token-account", - "spl-token 3.5.0", - "static_assertions", - "thiserror", + "bytes", + "hyper", + "native-tls", + "tokio", + "tokio-native-tls", ] [[package]] -name = "phoenix-seat-manager-common" -version = "0.1.1" +name = "iana-time-zone" +version = "0.1.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ - "borsh 0.9.3", - "bytemuck", - "ellipsis-macros", - "itertools", - "lib-sokoban", - "num_enum 0.5.9", - "phoenix-common", - "proc-macro-crate 1.3.0", - "rand 0.7.3", - "shank", - "solana-program", - "solana-security-txt", - "spl-associated-token-account", - "spl-token 3.5.0", - "static_assertions", - "thiserror", - "toml_edit 0.18.1", + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", ] [[package]] -name = "polyval" -version = "0.5.3" +name = "iana-time-zone-haiku" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ - "cfg-if", - "cpufeatures", - "opaque-debug", - "universal-hash", + "cc", ] [[package]] -name = "ppv-lite86" -version = "0.2.17" +name = "ident_case" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] -name = "proc-macro-crate" -version = "0.1.5" +name = "idna" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ - "toml", + "unicode-bidi", + "unicode-normalization", ] [[package]] -name = "proc-macro-crate" -version = "1.3.0" +name = "im" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66618389e4ec1c7afe67d51a9bf34ff9236480f8d51e7489b7d5ab0303c13f34" +checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" dependencies = [ - "once_cell", - "toml_edit 0.18.1", + "bitmaps", + "rand_core 0.6.4", + "rand_xoshiro", + "rayon", + "serde", + "sized-chunks", + "typenum", + "version_check", ] [[package]] -name = "proc-macro-crate" -version = "3.1.0" +name = "index_list" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" -dependencies = [ - "toml_edit 0.21.1", -] +checksum = "70891286cb8e844fdfcf1178b47569699f9e20b5ecc4b45a6240a64771444638" [[package]] -name = "proc-macro-error" -version = "1.0.4" +name = "indexmap" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "version_check", + "autocfg", + "hashbrown 0.12.3", ] [[package]] -name = "proc-macro-error-attr" -version = "1.0.4" +name = "indexmap" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ - "proc-macro2", - "quote", - "version_check", + "equivalent", + "hashbrown 0.14.3", ] [[package]] -name = "proc-macro2" -version = "1.0.79" +name = "indicatif" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" dependencies = [ - "unicode-ident", + "console", + "instant", + "number_prefix", + "portable-atomic", + "unicode-width", ] [[package]] -name = "qstring" -version = "0.7.2" +name = "input_buffer" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" +checksum = "f97967975f448f1a7ddb12b0bc41069d09ed6a1c161a92687e057325db35d413" dependencies = [ - "percent-encoding", + "bytes", ] [[package]] -name = "qualifier_attr" -version = "0.2.2" +name = "instant" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.58", + "cfg-if", ] [[package]] -name = "quote" -version = "1.0.36" +name = "ipnet" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" -dependencies = [ - "proc-macro2", -] +checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] -name = "rand" -version = "0.7.3" +name = "itertools" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", + "either", ] [[package]] -name = "rand" -version = "0.8.5" +name = "itoa" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" + +[[package]] +name = "jobserver" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2" dependencies = [ "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", ] [[package]] -name = "rand_chacha" -version = "0.2.2" +name = "js-sys" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "wasm-bindgen", ] [[package]] -name = "rand_chacha" -version = "0.3.1" +name = "jsonrpc-core" +version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb" dependencies = [ - "ppv-lite86", - "rand_core 0.6.4", + "futures 0.3.30", + "futures-executor", + "futures-util", + "log", + "serde", + "serde_derive", + "serde_json", ] [[package]] -name = "rand_core" -version = "0.5.1" +name = "keccak" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" dependencies = [ - "getrandom 0.1.16", + "cpufeatures", ] [[package]] -name = "rand_core" -version = "0.6.4" +name = "lazy_static" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom 0.2.14", -] +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] -name = "rand_hc" -version = "0.2.0" +name = "lib-sokoban" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +checksum = "ce6295db13f26aaa8bb4fb38e0c9ff50253814aa490eef7b4d6aa106ba6fc843" dependencies = [ - "rand_core 0.5.1", + "bytemuck", + "num-derive 0.3.3", + "num-traits", + "thiserror", ] [[package]] -name = "rand_xoshiro" +name = "libc" +version = "0.2.153" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" + +[[package]] +name = "libsecp256k1" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" +checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" dependencies = [ - "rand_core 0.6.4", + "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 = "rayon" -version = "1.7.0" +name = "libsecp256k1-core" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b" +checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" dependencies = [ - "either", - "rayon-core", + "crunchy", + "digest 0.9.0", + "subtle", ] [[package]] -name = "rayon-core" -version = "1.11.0" +name = "libsecp256k1-gen-ecmult" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d" +checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" dependencies = [ - "crossbeam-channel", - "crossbeam-deque", - "crossbeam-utils", - "num_cpus", + "libsecp256k1-core", ] [[package]] -name = "redox_syscall" -version = "0.2.16" +name = "libsecp256k1-gen-genmult" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" dependencies = [ - "bitflags 1.3.2", + "libsecp256k1-core", ] [[package]] -name = "regex" -version = "1.8.1" +name = "light-poseidon" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af83e617f331cc6ae2da5443c602dfa5af81e517212d9d611a5b3ba1777b5370" +checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", + "ark-bn254", + "ark-ff", + "num-bigint 0.4.4", + "thiserror", ] [[package]] -name = "regex-syntax" -version = "0.7.1" +name = "linux-raw-sys" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5996294f19bd3aae0453a862ad728f60e6600695733dd5df01da90c54363a3c" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] -name = "rustc-hash" -version = "1.1.0" +name = "lock_api" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +dependencies = [ + "autocfg", + "scopeguard", +] [[package]] -name = "rustc_version" -version = "0.4.0" +name = "log" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" + +[[package]] +name = "lru" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999beba7b6e8345721bd280141ed958096a2e4abdf74f67ff4ce49b4b54e47a" dependencies = [ - "semver", + "hashbrown 0.12.3", ] [[package]] -name = "rustversion" -version = "1.0.15" +name = "lz4" +version = "1.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" +checksum = "7e9e2dd86df36ce760a60f6ff6ad526f7ba1f14ba0356f8254fb6905e6494df1" +dependencies = [ + "libc", + "lz4-sys", +] [[package]] -name = "ryu" -version = "1.0.13" +name = "lz4-sys" +version = "1.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" +checksum = "57d27b317e207b10f69f5e75494119e391a96f48861ae870d1da6edac98ca900" +dependencies = [ + "cc", + "libc", +] [[package]] -name = "scopeguard" -version = "1.1.0" +name = "matchit" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] -name = "semver" -version = "1.0.17" +name = "memchr" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" +checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] -name = "serde" -version = "1.0.197" +name = "memmap2" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" dependencies = [ - "serde_derive", + "libc", ] [[package]] -name = "serde_bytes" -version = "0.11.14" +name = "memoffset" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" dependencies = [ - "serde", + "autocfg", ] [[package]] -name = "serde_derive" -version = "1.0.197" +name = "memoffset" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.58", + "autocfg", ] [[package]] -name = "serde_json" -version = "1.0.115" +name = "memoffset" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" dependencies = [ - "itoa", - "ryu", - "serde", + "autocfg", ] [[package]] -name = "serde_with" -version = "2.3.3" +name = "merlin" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" dependencies = [ - "serde", - "serde_with_macros", + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", ] [[package]] -name = "serde_with_macros" -version = "2.3.3" +name = "mime" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.58", -] +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] -name = "sha2" -version = "0.9.9" +name = "minimal-lexical" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87dfd01fe195c66b572b37921ad8803d010623c0aca821bea2302239d155cdae" dependencies = [ - "block-buffer 0.9.0", - "cfg-if", - "cpufeatures", - "digest 0.9.0", - "opaque-debug", + "adler", ] [[package]] -name = "sha2" -version = "0.10.8" +name = "mio" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ - "cfg-if", - "cpufeatures", - "digest 0.10.7", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.48.0", ] [[package]] -name = "sha3" -version = "0.9.1" +name = "modular-bitfield" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" +checksum = "a53d79ba8304ac1c4f9eb3b9d281f21f7be9d4626f72ce7df4ad8fbde4f38a74" dependencies = [ - "block-buffer 0.9.0", + "modular-bitfield-impl", + "static_assertions", +] + +[[package]] +name = "modular-bitfield-impl" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a7d5f7076603ebc68de2dc6a650ec331a062a13abaa346975be747bbfa4b789" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "multimap" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" + +[[package]] +name = "native-tls" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "nix" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" +dependencies = [ + "bitflags 1.3.2", + "cfg-if", + "libc", + "memoffset 0.7.1", + "pin-utils", +] + +[[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 = "nom8" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8" +dependencies = [ + "memchr", +] + +[[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", + "num-integer", + "num-iter", + "num-rational", + "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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[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-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + +[[package]] +name = "num-derive" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[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.58", +] + +[[package]] +name = "num-integer" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" +dependencies = [ + "autocfg", + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d869c01cc0c455284163fd0092f1f93835385ccab5a98a0dcc497b2f8bf055a9" +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-traits" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" +dependencies = [ + "autocfg", +] + +[[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.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d829733185c1ca374f17e52b762f24f535ec625d2cc1f070e34c8a9068f341b" +dependencies = [ + "num_enum_derive 0.5.11", +] + +[[package]] +name = "num_enum" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1" +dependencies = [ + "num_enum_derive 0.6.1", +] + +[[package]] +name = "num_enum" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02339744ee7253741199f897151b38e72257d13802d4ee837285cc2990a90845" +dependencies = [ + "num_enum_derive 0.7.2", +] + +[[package]] +name = "num_enum_derive" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" +dependencies = [ + "proc-macro-crate 1.3.0", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "num_enum_derive" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6" +dependencies = [ + "proc-macro-crate 1.3.0", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "681030a937600a36906c185595136d26abfebb4aa9c65701cefcaf8578bb982b" +dependencies = [ + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[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.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +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.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" + +[[package]] +name = "opaque-debug" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" + +[[package]] +name = "openssl" +version = "0.10.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" +dependencies = [ + "bitflags 2.5.0", + "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.58", +] + +[[package]] +name = "openssl-probe" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" + +[[package]] +name = "openssl-sys" +version = "0.9.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "opentelemetry" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6105e89802af13fdf48c49d7646d3b533a70e536d818aae7e78ba0433d01acb8" +dependencies = [ + "async-trait", + "crossbeam-channel", + "futures-channel", + "futures-executor", + "futures-util", + "js-sys", + "lazy_static", + "percent-encoding", + "pin-project", + "rand 0.8.5", + "thiserror", +] + +[[package]] +name = "os_str_bytes" +version = "6.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2355d85b9a3786f481747ced0e0ff2ba35213a1f9bd406ed906554d7af805a1" + +[[package]] +name = "ouroboros" +version = "0.15.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1358bd1558bd2a083fed428ffeda486fbfb323e698cdda7794259d592ca72db" +dependencies = [ + "aliasable", + "ouroboros_macro", +] + +[[package]] +name = "ouroboros_macro" +version = "0.15.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7d21ccd03305a674437ee1248f3ab5d4b1db095cf1caf49f1713ddf61956b7" +dependencies = [ + "Inflector", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.2.16", + "smallvec", + "windows-sys 0.45.0", +] + +[[package]] +name = "paste" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" + +[[package]] +name = "pbkdf2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +dependencies = [ + "crypto-mac 0.8.0", +] + +[[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 = "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", +] + +[[package]] +name = "petgraph" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" +dependencies = [ + "fixedbitset", + "indexmap 2.2.6", +] + +[[package]] +name = "phoenix-common" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03dca57d9eb69b3382cd2a879d52517609561a1030479f69fe5f023f84b9b2cc" +dependencies = [ + "borsh 0.9.3", + "bytemuck", + "ellipsis-macros", + "itertools", + "lib-sokoban", + "num_enum 0.5.9", + "shank", + "solana-program", + "solana-security-txt", + "spl-associated-token-account", + "spl-token 3.5.0", + "static_assertions", + "thiserror", +] + +[[package]] +name = "phoenix-sdk" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de88e9ab138c1ae84eb7e4896af1fc49026e964b894fb2c211eac19ce7be754c" +dependencies = [ + "anyhow", + "async-trait", + "borsh 0.9.3", + "bytemuck", + "clap 3.2.25", + "coinbase-pro-rs", + "ellipsis-client", + "futures 0.3.30", + "itertools", + "num-traits", + "phoenix-common", + "phoenix-sdk-core", + "phoenix-seat-manager-common 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.7.3", + "rust_decimal", + "rust_decimal_macros", + "serde", + "solana-client", + "solana-sdk", + "solana-transaction-status", + "spl-token 3.5.0", + "tokio", +] + +[[package]] +name = "phoenix-sdk-core" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4219e57e49e9a2574939d60f92e206b9b78943206eddb9b3493a36c81c1bcc93" +dependencies = [ + "anyhow", + "borsh 0.9.3", + "bytemuck", + "ellipsis-transaction-utils", + "itertools", + "num-traits", + "phoenix-common", + "rand 0.7.3", + "rust_decimal", + "rust_decimal_macros", + "solana-sdk", + "spl-token 3.5.0", +] + +[[package]] +name = "phoenix-seat-manager-common" +version = "0.1.1" +dependencies = [ + "borsh 0.9.3", + "bytemuck", + "ellipsis-client", + "ellipsis-macros", + "itertools", + "lib-sokoban", + "num_enum 0.5.9", + "phoenix-common", + "phoenix-sdk", + "proc-macro-crate 1.3.0", + "rand 0.7.3", + "shank", + "solana-program", + "solana-program-test", + "solana-sdk", + "solana-security-txt", + "spl-associated-token-account", + "spl-token 3.5.0", + "static_assertions", + "thiserror", + "tokio", + "toml_edit 0.18.1", +] + +[[package]] +name = "phoenix-seat-manager-common" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ff4998911d6bea36189f5f2c854b65b9b25078650115a73c929747adec9a9e9" +dependencies = [ + "borsh 0.9.3", + "bytemuck", + "ellipsis-macros", + "itertools", + "lib-sokoban", + "num_enum 0.5.9", + "phoenix-common", + "proc-macro-crate 1.3.0", + "shank", + "solana-program", + "solana-security-txt", + "spl-associated-token-account", + "spl-token 3.5.0", + "static_assertions", + "thiserror", + "toml_edit 0.18.1", +] + +[[package]] +name = "pin-project" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkcs8" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cabda3fb821068a9a4fab19a683eac3af12edf0f34b94a8be53c4972b8149d0" +dependencies = [ + "der", + "spki", + "zeroize", +] + +[[package]] +name = "pkg-config" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "polyval" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" +dependencies = [ + "cfg-if", + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "portable-atomic" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" + +[[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.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "prettyplease" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3928fb5db768cb86f891ff014f0144589297e3c6a1aba6ed7cecfdace270c7" +dependencies = [ + "proc-macro2", + "syn 2.0.58", +] + +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66618389e4ec1c7afe67d51a9bf34ff9236480f8d51e7489b7d5ab0303c13f34" +dependencies = [ + "once_cell", + "toml_edit 0.18.1", +] + +[[package]] +name = "proc-macro-crate" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +dependencies = [ + "toml_edit 0.21.1", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.79" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +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", + "itertools", + "log", + "multimap", + "once_cell", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "regex", + "syn 2.0.58", + "tempfile", +] + +[[package]] +name = "prost-derive" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" +dependencies = [ + "anyhow", + "itertools", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "prost-types" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" +dependencies = [ + "prost", +] + +[[package]] +name = "protobuf-src" +version = "1.1.0+21.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7ac8852baeb3cc6fb83b93646fb93c0ffe5d14bf138c945ceb4b9948ee0e3c1" +dependencies = [ + "autotools", +] + +[[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 = "qstring" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "qualifier_attr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "quinn" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cc2c5017e4b43d5995dcea317bc46c1e09404c0a9664d2908f7f02dfe943d75" +dependencies = [ + "bytes", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "thiserror", + "tokio", + "tracing", +] + +[[package]] +name = "quinn-proto" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "141bf7dfde2fbc246bfd3fe12f2455aa24b0fbd9af535d8c86c7bd1381ff2b1a" +dependencies = [ + "bytes", + "rand 0.8.5", + "ring 0.16.20", + "rustc-hash", + "rustls", + "rustls-native-certs", + "slab", + "thiserror", + "tinyvec", + "tracing", +] + +[[package]] +name = "quinn-udp" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "055b4e778e8feb9f93c4e439f71dc2156ef13360b432b799e179a8c4cdf0b1d7" +dependencies = [ + "bytes", + "libc", + "socket2", + "tracing", + "windows-sys 0.48.0", +] + +[[package]] +name = "quote" +version = "1.0.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +dependencies = [ + "proc-macro2", +] + +[[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_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_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.14", +] + +[[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 = "rand_xoshiro" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "rayon" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "num_cpus", +] + +[[package]] +name = "rcgen" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffbe84efe2f38dea12e9bfc1f65377fdf03e53a18cb3b995faedf7934c7e785b" +dependencies = [ + "pem", + "ring 0.16.20", + "time", + "yasna", +] + +[[package]] +name = "redox_syscall" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "regex" +version = "1.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" + +[[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", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-pemfile", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "system-configuration", + "tokio", + "tokio-rustls", + "tokio-util 0.7.11", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots 0.25.4", + "winreg", +] + +[[package]] +name = "ring" +version = "0.16.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +dependencies = [ + "cc", + "libc", + "once_cell", + "spin 0.5.2", + "untrusted 0.7.1", + "web-sys", + "winapi", +] + +[[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.14", + "libc", + "spin 0.9.8", + "untrusted 0.9.0", + "windows-sys 0.52.0", +] + +[[package]] +name = "rkyv" +version = "0.7.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cba464629b3394fc4dbc6f940ff8f5b4ff5c7aef40f29166fd4ad12acbc99c0" +dependencies = [ + "bitvec", + "bytecheck", + "bytes", + "hashbrown 0.12.3", + "ptr_meta", + "rend", + "rkyv_derive", + "seahash", + "tinyvec", + "uuid 1.8.0", +] + +[[package]] +name = "rkyv_derive" +version = "0.7.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7dddfff8de25e6f62b9d64e6e432bf1c6736c57d20323e15ee10435fbda7c65" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "rpassword" +version = "7.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80472be3c897911d0137b2d2b9055faf6eeac5b14e324073d83bc17b191d7e3f" +dependencies = [ + "libc", + "rtoolbox", + "windows-sys 0.48.0", +] + +[[package]] +name = "rtoolbox" +version = "0.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c247d24e63230cdb56463ae328478bd5eac8b8faa8c69461a77e8e323afac90e" +dependencies = [ + "libc", + "windows-sys 0.48.0", +] + +[[package]] +name = "rust_decimal" +version = "1.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1790d1c4c0ca81211399e0e0af16333276f375209e71a37b67698a373db5b47a" +dependencies = [ + "arrayvec", + "borsh 1.5.1", + "bytes", + "num-traits", + "rand 0.8.5", + "rkyv", + "serde", + "serde_json", +] + +[[package]] +name = "rust_decimal_macros" +version = "1.34.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e418701588729bef95e7a655f2b483ad64bb97c46e8e79fde83efd92aaab6d82" +dependencies = [ + "quote", + "rust_decimal", +] + +[[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 = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +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.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +dependencies = [ + "bitflags 2.5.0", + "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 0.17.8", + "rustls-webpki", + "sct", +] + +[[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", +] + +[[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-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring 0.17.8", + "untrusted 0.9.0", +] + +[[package]] +name = "rustversion" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" + +[[package]] +name = "ryu" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" + +[[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.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" +dependencies = [ + "windows-sys 0.52.0", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "scroll" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da" +dependencies = [ + "scroll_derive", +] + +[[package]] +name = "scroll_derive" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1db149f81d46d2deba7cd3c50772474707729550221e69588478ebf9ada425ae" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "sct" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" +dependencies = [ + "ring 0.17.8", + "untrusted 0.9.0", +] + +[[package]] +name = "seahash" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" + +[[package]] +name = "security-framework" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" +dependencies = [ + "bitflags 2.5.0", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" + +[[package]] +name = "serde" +version = "1.0.197" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_bytes" +version = "0.11.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.197" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "serde_json" +version = "1.0.115" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" +dependencies = [ + "itoa", + "ryu", + "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 = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" +dependencies = [ + "serde", + "serde_with_macros", +] + +[[package]] +name = "serde_with_macros" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "sha-1" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures", + "digest 0.9.0", + "opaque-debug", +] + +[[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.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" +dependencies = [ + "block-buffer 0.9.0", "digest 0.9.0", "keccak", "opaque-debug", ] [[package]] -name = "sha3" -version = "0.10.8" +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 = "shank" +version = "0.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439c00542aa8b4c777750b3130ce36fcff86ba215d54006d47d67359513b70be" +dependencies = [ + "shank_macro", +] + +[[package]] +name = "shank_macro" +version = "0.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3498d6ea2ba012f26ad3d79a19773ba8e1c7a69f14dec67e3ed51c723cc9f30a" +dependencies = [ + "proc-macro2", + "quote", + "shank_macro_impl", + "shank_render", + "syn 1.0.109", +] + +[[package]] +name = "shank_macro_impl" +version = "0.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271c0b0b47ef930d7455d11a02164e3f0e71704d639bcaa6581f23e4b2073227" +dependencies = [ + "anyhow", + "proc-macro2", + "quote", + "serde", + "syn 1.0.109", +] + +[[package]] +name = "shank_render" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "142e11124c70d1702424011209621551adf775988033dedea428ce4a21d3acdf" +dependencies = [ + "proc-macro2", + "quote", + "shank_macro_impl", +] + +[[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 = "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.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + +[[package]] +name = "simdutf8" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "sized-chunks" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" +dependencies = [ + "bitmaps", + "typenum", +] + +[[package]] +name = "slab" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] + +[[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.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "solana-account-decoder" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a9721ff8b83683cb7dd856079cde8a8010bfd282d482699a867ad50ea9e727e" +dependencies = [ + "Inflector", + "base64 0.21.7", + "bincode", + "bs58", + "bv", + "lazy_static", + "serde", + "serde_derive", + "serde_json", + "solana-config-program", + "solana-sdk", + "spl-token 4.0.0", + "spl-token-2022", + "spl-token-group-interface", + "spl-token-metadata-interface", + "thiserror", + "zstd", +] + +[[package]] +name = "solana-accounts-db" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cdae5f9d2562360bd07fde58976f6ff8f7d90c8311bc5a4959edd7ba61ccec4" +dependencies = [ + "arrayref", + "bincode", + "blake3", + "bv", + "bytemuck", + "byteorder", + "bzip2", + "crossbeam-channel", + "dashmap", + "flate2", + "fnv", + "fs-err", + "im", + "index_list", + "itertools", + "lazy_static", + "log", + "lz4", + "memmap2", + "modular-bitfield", + "num-derive 0.3.3", + "num-traits", + "num_cpus", + "num_enum 0.6.1", + "ouroboros", + "percentage", + "qualifier_attr", + "rand 0.8.5", + "rayon", + "regex", + "rustc_version", + "serde", + "serde_derive", + "solana-bucket-map", + "solana-config-program", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-measure", + "solana-metrics", + "solana-program-runtime", + "solana-rayon-threadlimit", + "solana-sdk", + "solana-stake-program", + "solana-system-program", + "solana-vote-program", + "static_assertions", + "strum", + "strum_macros", + "tar", + "tempfile", + "thiserror", +] + +[[package]] +name = "solana-address-lookup-table-program" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c471a3f150762652b5d77f83432b8574738e621fae4885c47132cfe33676d27c" +dependencies = [ + "bincode", + "bytemuck", + "log", + "num-derive 0.3.3", + "num-traits", + "rustc_version", + "serde", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-program", + "solana-program-runtime", + "solana-sdk", + "thiserror", +] + +[[package]] +name = "solana-banks-client" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4397a1bcefabb65c426c5baea8c5df1da2dff734ea9328789253e30e59bab25" +dependencies = [ + "borsh 0.10.3", + "futures 0.3.30", + "solana-banks-interface", + "solana-program", + "solana-sdk", + "tarpc", + "thiserror", + "tokio", + "tokio-serde", +] + +[[package]] +name = "solana-banks-interface" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a61b939343909a74cc826326dfdcad16f6015301e3d2134bc29fee59c27171a9" +dependencies = [ + "serde", + "solana-sdk", + "tarpc", +] + +[[package]] +name = "solana-banks-server" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b803ea31aa9b17a679454c921af320f9efb026355cb067dfbad57261ab771593" +dependencies = [ + "bincode", + "crossbeam-channel", + "futures 0.3.30", + "solana-accounts-db", + "solana-banks-interface", + "solana-client", + "solana-runtime", + "solana-sdk", + "solana-send-transaction-service", + "tarpc", + "tokio", + "tokio-serde", +] + +[[package]] +name = "solana-bpf-loader-program" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a99a75cdd7d4e40b51d8de8125f3d44db3f7735d96f4e3f31ee79d3110a8f4d" +dependencies = [ + "bincode", + "byteorder", + "libsecp256k1", + "log", + "scopeguard", + "solana-measure", + "solana-program-runtime", + "solana-sdk", + "solana-zk-token-sdk", + "solana_rbpf", + "thiserror", +] + +[[package]] +name = "solana-bucket-map" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9830a7dbea75c0cbd62a4ca31bcd9b8832fbdb915c949740a44a496630fb5eb6" +dependencies = [ + "bv", + "bytemuck", + "log", + "memmap2", + "modular-bitfield", + "num_enum 0.6.1", + "rand 0.8.5", + "solana-measure", + "solana-sdk", + "tempfile", +] + +[[package]] +name = "solana-clap-utils" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4af0fe4584d7692f24e573b17a5245cfc0d99a4e351b0185dfe02baf52f99864" +dependencies = [ + "chrono", + "clap 2.34.0", + "rpassword", + "solana-remote-wallet", + "solana-sdk", + "thiserror", + "tiny-bip39", + "uriparse", + "url", +] + +[[package]] +name = "solana-client" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "250ffcda91bc30c2adcc290c9b7c796f59884f1043ae3bcf3245f05158c7986c" +dependencies = [ + "async-trait", + "bincode", + "dashmap", + "futures 0.3.30", + "futures-util", + "indexmap 2.2.6", + "indicatif", + "log", + "quinn", + "rayon", + "solana-connection-cache", + "solana-measure", + "solana-metrics", + "solana-pubsub-client", + "solana-quic-client", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-rpc-client-nonce-utils", + "solana-sdk", + "solana-streamer", + "solana-thin-client", + "solana-tpu-client", + "solana-udp-client", + "thiserror", + "tokio", +] + +[[package]] +name = "solana-compute-budget-program" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8703a92306dfdc4760e18db14b2f8b36c9769e5c47f0656bc77355875674e079" +dependencies = [ + "solana-program-runtime", + "solana-sdk", +] + +[[package]] +name = "solana-config-program" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16fd2daba039bad58277ec88143b1fe624f2352d8ccb2a80bba3693de61df440" +dependencies = [ + "bincode", + "chrono", + "serde", + "serde_derive", + "solana-program-runtime", + "solana-sdk", +] + +[[package]] +name = "solana-connection-cache" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "868e7fb550af97ad6fc283a5628f8ffb6dafd590dc30254163e7c9003f13ceb0" +dependencies = [ + "async-trait", + "bincode", + "crossbeam-channel", + "futures-util", + "indexmap 2.2.6", + "log", + "rand 0.8.5", + "rayon", + "rcgen", + "solana-measure", + "solana-metrics", + "solana-sdk", + "thiserror", + "tokio", +] + +[[package]] +name = "solana-cost-model" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3b79a349b86d02948720e4416463d50fd4f828b6a63512e47b497613df0d720" +dependencies = [ + "lazy_static", + "log", + "rustc_version", + "solana-address-lookup-table-program", + "solana-bpf-loader-program", + "solana-compute-budget-program", + "solana-config-program", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-loader-v4-program", + "solana-metrics", + "solana-program-runtime", + "solana-sdk", + "solana-stake-program", + "solana-system-program", + "solana-vote-program", +] + +[[package]] +name = "solana-frozen-abi" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219c484f952f006e37a1a2598aebcc4dcfd48478c03fc2ce2d99787a5c78f248" +dependencies = [ + "ahash 0.8.5", + "blake3", + "block-buffer 0.10.4", + "bs58", + "bv", + "byteorder", + "cc", + "either", + "generic-array", + "im", + "lazy_static", + "log", + "memmap2", + "rustc_version", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "sha2 0.10.8", + "solana-frozen-abi-macro", + "subtle", + "thiserror", +] + +[[package]] +name = "solana-frozen-abi-macro" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffe4e1dc5fd61ac10c304b3eb8ddb49737b13e975281d623a6083cf5cf0a8616" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.58", +] + +[[package]] +name = "solana-loader-v4-program" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad035401037e6e7d1dc19c0ae4b613b36632b60443d28716355a4e0041892fa2" +dependencies = [ + "log", + "solana-measure", + "solana-program-runtime", + "solana-sdk", + "solana_rbpf", +] + +[[package]] +name = "solana-logger" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64b4f281f2263de6d9cc65680b90b6bd2c93ba7de573db83fc86e2d05ca7ea8c" +dependencies = [ + "env_logger", + "lazy_static", + "log", +] + +[[package]] +name = "solana-measure" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a3ed981230b6a3a8aebf9f03424f5c1ff98be75cc7f0ecb153879e8e439aea" +dependencies = [ + "log", + "solana-sdk", +] + +[[package]] +name = "solana-metrics" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efb65329e6716dc0ce5b1d719d6e0052e7ff1179ab361916f256054d6b846ee1" +dependencies = [ + "crossbeam-channel", + "gethostname", + "lazy_static", + "log", + "reqwest", + "solana-sdk", + "thiserror", +] + +[[package]] +name = "solana-net-utils" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8345ffe2bd2a25a02e5dea046bbbf58f81f6b44ee97224474eae1c0ea03b520a" +dependencies = [ + "bincode", + "clap 3.2.25", + "crossbeam-channel", + "log", + "nix", + "rand 0.8.5", + "serde", + "serde_derive", + "socket2", + "solana-logger", + "solana-sdk", + "solana-version", + "tokio", + "url", +] + +[[package]] +name = "solana-perf" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0326bd89c2453bf2a408ff676cff4ed0080bff2a5c6543db5f62423bc23ad6e8" +dependencies = [ + "ahash 0.8.5", + "bincode", + "bv", + "caps", + "curve25519-dalek", + "dlopen2", + "fnv", + "lazy_static", + "libc", + "log", + "nix", + "rand 0.8.5", + "rayon", + "rustc_version", + "serde", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-metrics", + "solana-rayon-threadlimit", + "solana-sdk", + "solana-vote-program", +] + +[[package]] +name = "solana-program" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93dc0f422549c23c4464eaa9383f4b09cd92b50dea750731dd3c31d3ee2d310f" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", + "base64 0.21.7", + "bincode", + "bitflags 2.5.0", + "blake3", + "borsh 0.10.3", + "borsh 0.9.3", + "bs58", + "bv", + "bytemuck", + "cc", + "console_error_panic_hook", + "console_log", + "curve25519-dalek", + "getrandom 0.2.14", + "itertools", + "js-sys", + "lazy_static", + "libc", + "libsecp256k1", + "light-poseidon", + "log", + "memoffset 0.9.1", + "num-bigint 0.4.4", + "num-derive 0.3.3", + "num-traits", + "parking_lot", + "rand 0.8.5", + "rustc_version", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "sha2 0.10.8", + "sha3 0.10.8", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-sdk-macro", + "thiserror", + "tiny-bip39", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "solana-program-runtime" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b407440b708ffda97e25b8cb977f72d1bb7466c28ea5f58751613df0af8d576" +dependencies = [ + "base64 0.21.7", + "bincode", + "eager", + "enum-iterator", + "itertools", + "libc", + "log", + "num-derive 0.3.3", + "num-traits", + "percentage", + "rand 0.8.5", + "rustc_version", + "serde", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-measure", + "solana-metrics", + "solana-sdk", + "solana_rbpf", + "thiserror", +] + +[[package]] +name = "solana-program-test" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a49b6bef92bce799f1d023e0083ace2a20720330bfe8e36dcf793ee4eb95ffe" +dependencies = [ + "assert_matches", + "async-trait", + "base64 0.21.7", + "bincode", + "chrono-humanize", + "crossbeam-channel", + "log", + "serde", + "solana-accounts-db", + "solana-banks-client", + "solana-banks-interface", + "solana-banks-server", + "solana-bpf-loader-program", + "solana-logger", + "solana-program-runtime", + "solana-runtime", + "solana-sdk", + "solana-vote-program", + "solana_rbpf", + "test-case", + "thiserror", + "tokio", +] + +[[package]] +name = "solana-pubsub-client" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f82da20e0c0bb39f9123cf61a6e3c76a8e30b0f09e5215decfb7f6b54734f04" +dependencies = [ + "crossbeam-channel", + "futures-util", + "log", + "reqwest", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-rpc-client-api", + "solana-sdk", + "thiserror", + "tokio", + "tokio-stream", + "tokio-tungstenite 0.20.1", + "tungstenite 0.20.1", + "url", +] + +[[package]] +name = "solana-quic-client" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8478a6b4f2c2b8fa330d54ff22386a1792498cb6e84ce3893840337a992e47c6" +dependencies = [ + "async-mutex", + "async-trait", + "futures 0.3.30", + "itertools", + "lazy_static", + "log", + "quinn", + "quinn-proto", + "rcgen", + "rustls", + "solana-connection-cache", + "solana-measure", + "solana-metrics", + "solana-net-utils", + "solana-rpc-client-api", + "solana-sdk", + "solana-streamer", + "thiserror", + "tokio", +] + +[[package]] +name = "solana-rayon-threadlimit" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df0aac27af8e94f907f6a65305e0a7909800336e7108bd3ce1dc1f3ef011a20" +dependencies = [ + "lazy_static", + "num_cpus", +] + +[[package]] +name = "solana-remote-wallet" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a97d60701d3fe0fde4871c5856da9e52ba733fbcfb030482278c3af4ffa0bf3" +dependencies = [ + "console", + "dialoguer", + "log", + "num-derive 0.3.3", + "num-traits", + "parking_lot", + "qstring", + "semver", + "solana-sdk", + "thiserror", + "uriparse", +] + +[[package]] +name = "solana-rpc-client" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b750c49be9dd90981f3c12c8357d0b0c847bf5b8c638c3eff3c09f6ea199393" +dependencies = [ + "async-trait", + "base64 0.21.7", + "bincode", + "bs58", + "indicatif", + "log", + "reqwest", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-rpc-client-api", + "solana-sdk", + "solana-transaction-status", + "solana-version", + "solana-vote-program", + "tokio", +] + +[[package]] +name = "solana-rpc-client-api" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +checksum = "314d0f87fc7bab16b1b4674c03d4e92c7008fa181b67210780542c0e6cbfce38" dependencies = [ - "digest 0.10.7", - "keccak", + "base64 0.21.7", + "bs58", + "jsonrpc-core", + "reqwest", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-sdk", + "solana-transaction-status", + "solana-version", + "spl-token-2022", + "thiserror", ] [[package]] -name = "shank" -version = "0.0.12" +name = "solana-rpc-client-nonce-utils" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439c00542aa8b4c777750b3130ce36fcff86ba215d54006d47d67359513b70be" +checksum = "8acf79164ae52ee1ee85cd7aeb1bb715a9f3b90678ee00501896d173dbc31731" dependencies = [ - "shank_macro", + "clap 2.34.0", + "solana-clap-utils", + "solana-rpc-client", + "solana-sdk", + "thiserror", ] [[package]] -name = "shank_macro" -version = "0.0.12" +name = "solana-runtime" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3498d6ea2ba012f26ad3d79a19773ba8e1c7a69f14dec67e3ed51c723cc9f30a" +checksum = "0f3dfd09f3cd529ab56b33a1b389b449ddc31b338f062822c7cc30375a2f234b" dependencies = [ - "proc-macro2", - "quote", - "shank_macro_impl", - "shank_render", - "syn 1.0.109", + "arrayref", + "base64 0.21.7", + "bincode", + "blake3", + "bv", + "bytemuck", + "byteorder", + "bzip2", + "crossbeam-channel", + "dashmap", + "dir-diff", + "flate2", + "fnv", + "fs-err", + "im", + "index_list", + "itertools", + "lazy_static", + "log", + "lru", + "lz4", + "memmap2", + "modular-bitfield", + "num-derive 0.3.3", + "num-traits", + "num_cpus", + "num_enum 0.6.1", + "ouroboros", + "percentage", + "qualifier_attr", + "rand 0.8.5", + "rayon", + "regex", + "rustc_version", + "serde", + "serde_derive", + "serde_json", + "siphasher", + "solana-accounts-db", + "solana-address-lookup-table-program", + "solana-bpf-loader-program", + "solana-bucket-map", + "solana-compute-budget-program", + "solana-config-program", + "solana-cost-model", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-loader-v4-program", + "solana-measure", + "solana-metrics", + "solana-perf", + "solana-program-runtime", + "solana-rayon-threadlimit", + "solana-sdk", + "solana-stake-program", + "solana-system-program", + "solana-version", + "solana-vote", + "solana-vote-program", + "solana-zk-token-proof-program", + "solana-zk-token-sdk", + "static_assertions", + "strum", + "strum_macros", + "symlink", + "tar", + "tempfile", + "thiserror", + "zstd", ] [[package]] -name = "shank_macro_impl" -version = "0.0.12" +name = "solana-sdk" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271c0b0b47ef930d7455d11a02164e3f0e71704d639bcaa6581f23e4b2073227" +checksum = "3892ee0e2acdfbeae7315db6c7c56356384631deb943377de5957074bd2dc4d1" dependencies = [ - "anyhow", - "proc-macro2", - "quote", + "assert_matches", + "base64 0.21.7", + "bincode", + "bitflags 2.5.0", + "borsh 0.10.3", + "bs58", + "bytemuck", + "byteorder", + "chrono", + "derivation-path", + "digest 0.10.7", + "ed25519-dalek", + "ed25519-dalek-bip32", + "generic-array", + "hmac 0.12.1", + "itertools", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memmap2", + "num-derive 0.3.3", + "num-traits", + "num_enum 0.6.1", + "pbkdf2 0.11.0", + "qstring", + "qualifier_attr", + "rand 0.7.3", + "rand 0.8.5", + "rustc_version", + "rustversion", "serde", - "syn 1.0.109", + "serde_bytes", + "serde_derive", + "serde_json", + "serde_with", + "sha2 0.10.8", + "sha3 0.10.8", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-logger", + "solana-program", + "solana-sdk-macro", + "thiserror", + "uriparse", + "wasm-bindgen", ] [[package]] -name = "shank_render" -version = "0.0.1" +name = "solana-sdk-macro" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "142e11124c70d1702424011209621551adf775988033dedea428ce4a21d3acdf" +checksum = "8019cc997f6c07f09b23dfeb2c45530fa94df2e2fb9d654f3c772c9766a1511f" dependencies = [ + "bs58", "proc-macro2", "quote", - "shank_macro_impl", + "rustversion", + "syn 2.0.58", ] [[package]] -name = "signature" -version = "1.6.4" +name = "solana-security-txt" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" +checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" [[package]] -name = "siphasher" -version = "0.3.11" +name = "solana-send-transaction-service" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" +checksum = "d4de519acd09b182fe8a56014a5cc9d9f676e5217e0e8e61c1ae2af777e7e0fa" +dependencies = [ + "crossbeam-channel", + "log", + "solana-client", + "solana-measure", + "solana-metrics", + "solana-runtime", + "solana-sdk", + "solana-tpu-client", +] [[package]] -name = "sized-chunks" -version = "0.6.5" +name = "solana-stake-program" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" +checksum = "11c21a028ed8abed4a7a52b8410875d799b31b58489653e05ae885e2ba799463" dependencies = [ - "bitmaps", - "typenum", + "bincode", + "log", + "rustc_version", + "solana-config-program", + "solana-program-runtime", + "solana-sdk", + "solana-vote-program", ] [[package]] -name = "smallvec" -version = "1.10.0" +name = "solana-streamer" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "067d167db6be6f25c21e4c615607757ae7161b20e08197ec2d1a63360e522069" +dependencies = [ + "async-channel", + "bytes", + "crossbeam-channel", + "futures-util", + "histogram", + "indexmap 2.2.6", + "itertools", + "libc", + "log", + "nix", + "pem", + "percentage", + "pkcs8", + "quinn", + "quinn-proto", + "rand 0.8.5", + "rcgen", + "rustls", + "smallvec", + "solana-metrics", + "solana-perf", + "solana-sdk", + "thiserror", + "tokio", + "x509-parser", +] [[package]] -name = "solana-frozen-abi" -version = "1.18.11" +name = "solana-system-program" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b8177685ab2bc8cc8b3bf63aa1eaa0580d5af850ecefac323ca1c2473085d77" +checksum = "a4fa662731817f995cd114ce44d780be2814982a7674540be8d1c596a2d1ca43" dependencies = [ - "block-buffer 0.10.4", - "bs58", - "bv", - "either", - "generic-array", - "im", - "lazy_static", + "bincode", "log", - "memmap2", - "rustc_version", "serde", - "serde_bytes", "serde_derive", - "sha2 0.10.8", - "solana-frozen-abi-macro", - "subtle", - "thiserror", + "solana-program-runtime", + "solana-sdk", ] [[package]] -name = "solana-frozen-abi-macro" -version = "1.18.11" +name = "solana-thin-client" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a68241cad17b74c6034a68ba4890632d409a2c886e7bead9c1e1432befdb7c9" +checksum = "0815c6d64a4bd71fd92ce33e82c24f5e8a5b105b26619521c4a8a43ab7573a9a" dependencies = [ - "proc-macro2", - "quote", - "rustc_version", - "syn 2.0.58", + "bincode", + "log", + "rayon", + "solana-connection-cache", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-sdk", ] [[package]] -name = "solana-logger" -version = "1.18.11" +name = "solana-tpu-client" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea560989ef67ba4a1a0fd62a248721f1aa5bac8fa5ede9ccf4fe9ee484ccadf" +checksum = "576431a39a612dac9387fecb5e80fe58989b740337a07bca41f0d02695e415f9" dependencies = [ - "env_logger", - "lazy_static", + "async-trait", + "bincode", + "futures-util", + "indexmap 2.2.6", + "indicatif", "log", + "rayon", + "solana-connection-cache", + "solana-measure", + "solana-metrics", + "solana-pubsub-client", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-sdk", + "thiserror", + "tokio", ] [[package]] -name = "solana-program" -version = "1.18.11" +name = "solana-transaction-status" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bddf573103c890b4ab8f9a6641d4f969d4148bce9a451c263f4a62afa949fae" +checksum = "c0d8e2d97a8569afba70a105b402057b253fd9caee92c7ed2c3e1c3e0173fe91" dependencies = [ - "ark-bn254", - "ark-ec", - "ark-ff", - "ark-serialize", + "Inflector", "base64 0.21.7", "bincode", - "bitflags 2.5.0", - "blake3", "borsh 0.10.3", - "borsh 0.9.3", - "borsh 1.4.0", "bs58", - "bv", - "bytemuck", - "cc", - "console_error_panic_hook", - "console_log", - "curve25519-dalek", - "getrandom 0.2.14", - "itertools", - "js-sys", "lazy_static", - "libc", - "libsecp256k1", - "light-poseidon", "log", - "memoffset 0.9.1", - "num-bigint", - "num-derive 0.4.2", - "num-traits", - "parking_lot", - "rand 0.8.5", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-sdk", + "spl-associated-token-account", + "spl-memo", + "spl-token 4.0.0", + "spl-token-2022", + "thiserror", +] + +[[package]] +name = "solana-udp-client" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8297b04cb335ffac5b4a2c727dd82a2f72c8a96e3d5e1c159e01866b74a17e50" +dependencies = [ + "async-trait", + "solana-connection-cache", + "solana-net-utils", + "solana-sdk", + "solana-streamer", + "thiserror", + "tokio", +] + +[[package]] +name = "solana-version" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f84a9f9ff3feebfaa960ac5387b133c6ef2c266779cb4932aed6acac5b83cb7b" +dependencies = [ + "log", + "rustc_version", + "semver", + "serde", + "serde_derive", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-sdk", +] + +[[package]] +name = "solana-vote" +version = "1.17.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8a2355a2b40d7b0b3a9ec5a5bd2196494c620a287ce6e4234cc4722fcb0cbb5" +dependencies = [ + "crossbeam-channel", + "itertools", + "log", "rustc_version", - "rustversion", "serde", - "serde_bytes", "serde_derive", - "serde_json", - "sha2 0.10.8", - "sha3 0.10.8", "solana-frozen-abi", "solana-frozen-abi-macro", - "solana-sdk-macro", + "solana-sdk", + "solana-vote-program", "thiserror", - "tiny-bip39", - "wasm-bindgen", - "zeroize", ] [[package]] -name = "solana-sdk" -version = "1.18.11" +name = "solana-vote-program" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08b24b06fa176209ddb2a2f8172a00b07e8a3b18229fbfc49f1eb3ce6ad11ff1" +checksum = "5ab0fe8455b2f06016cddefe7e3a7b9c0a57661d44816a4105c81f1088cfc1ac" dependencies = [ - "assert_matches", - "base64 0.21.7", "bincode", - "bitflags 2.5.0", - "borsh 1.4.0", - "bs58", - "bytemuck", - "byteorder", - "chrono", - "derivation-path", - "digest 0.10.7", - "ed25519-dalek", - "ed25519-dalek-bip32", - "generic-array", - "hmac 0.12.1", - "itertools", - "js-sys", - "lazy_static", - "libsecp256k1", "log", - "memmap2", - "num-derive 0.4.2", + "num-derive 0.3.3", "num-traits", - "num_enum 0.7.2", - "pbkdf2 0.11.0", - "qstring", - "qualifier_attr", - "rand 0.7.3", - "rand 0.8.5", "rustc_version", - "rustversion", "serde", - "serde_bytes", "serde_derive", - "serde_json", - "serde_with", - "sha2 0.10.8", - "sha3 0.10.8", - "siphasher", "solana-frozen-abi", "solana-frozen-abi-macro", - "solana-logger", + "solana-metrics", "solana-program", - "solana-sdk-macro", + "solana-program-runtime", + "solana-sdk", "thiserror", - "uriparse", - "wasm-bindgen", ] [[package]] -name = "solana-sdk-macro" -version = "1.18.11" +name = "solana-zk-token-proof-program" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869483c05f18d37d4d95a08d9e05e00a4f76a8c8349aeedeee9ba2d013cbacde" +checksum = "ad624adcac620e41d052b29705f30c003b2e396ebca0145c1d296a1ef13f5aa7" dependencies = [ - "bs58", - "proc-macro2", - "quote", - "rustversion", - "syn 2.0.58", + "bytemuck", + "num-derive 0.3.3", + "num-traits", + "solana-program-runtime", + "solana-sdk", + "solana-zk-token-sdk", ] -[[package]] -name = "solana-security-txt" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e0461f3afb29d8591300b3dd09b5472b3772d65688a2826ad960b8c0d5fa605" - [[package]] name = "solana-zk-token-sdk" -version = "1.18.11" +version = "1.17.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "459c27f7b954798677d8243aa53b8080cfb314ecfecbf8889a5a65c91ad11fee" +checksum = "70a06e103ed5adf1664f9cca3d1c64edad8b5b603255d8a5dd21a4ac5d86b89c" dependencies = [ "aes-gcm-siv", "base64 0.21.7", @@ -2019,7 +5237,7 @@ dependencies = [ "itertools", "lazy_static", "merlin", - "num-derive 0.4.2", + "num-derive 0.3.3", "num-traits", "rand 0.7.3", "serde", @@ -2032,27 +5250,68 @@ dependencies = [ "zeroize", ] +[[package]] +name = "solana_rbpf" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d457cc2ba742c120492a64b7fa60e22c575e891f6b55039f4d736568fb112a3" +dependencies = [ + "byteorder", + "combine", + "goblin", + "hash32", + "libc", + "log", + "rand 0.8.5", + "rustc-demangle", + "scroll", + "thiserror", + "winapi", +] + +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" + +[[package]] +name = "spki" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d01ac02a6ccf3e07db148d2be087da624fea0221a16152ed01f0496a6b0a27" +dependencies = [ + "base64ct", + "der", +] + [[package]] name = "spl-associated-token-account" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "385e31c29981488f2820b2022d8e731aae3b02e6e18e2fd854e4c9a94dc44fc3" +checksum = "992d9c64c2564cc8f63a4b508bf3ebcdf2254b0429b13cd1d31adb6162432a5f" dependencies = [ "assert_matches", "borsh 0.10.3", "num-derive 0.4.2", "num-traits", "solana-program", - "spl-token 4.0.1", + "spl-token 4.0.0", "spl-token-2022", "thiserror", ] [[package]] name = "spl-discriminator" -version = "0.1.1" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daa600f2fe56f32e923261719bae640d873edadbc5237681a39b8e37bfd4d263" +checksum = "cce5d563b58ef1bb2cdbbfe0dfb9ffdc24903b10ae6a4df2d8f425ece375033f" dependencies = [ "bytemuck", "solana-program", @@ -2085,18 +5344,18 @@ dependencies = [ [[package]] name = "spl-memo" -version = "4.0.1" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58e9bae02de3405079a057fe244c867a08f92d48327d231fc60da831f94caf0a" +checksum = "f0f180b03318c3dbab3ef4e1e4d46d5211ae3c780940dd0a28695aba4b59a75a" dependencies = [ "solana-program", ] [[package]] name = "spl-pod" -version = "0.1.1" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85a5db7e4efb1107b0b8e52a13f035437cdcb36ef99c58f6d467f089d9b2915a" +checksum = "2881dddfca792737c0706fa0175345ab282b1b0879c7d877bad129645737c079" dependencies = [ "borsh 0.10.3", "bytemuck", @@ -2107,9 +5366,9 @@ dependencies = [ [[package]] name = "spl-program-error" -version = "0.3.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e0657b6490196971d9e729520ba934911ff41fbb2cb9004463dbe23cf8b4b4f" +checksum = "249e0318493b6bcf27ae9902600566c689b7dfba9f1bdff5893e92253374e78c" dependencies = [ "num-derive 0.4.2", "num-traits", @@ -2132,9 +5391,9 @@ dependencies = [ [[package]] name = "spl-tlv-account-resolution" -version = "0.4.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062e148d3eab7b165582757453632ffeef490c02c86a48bfdb4988f63eefb3b9" +checksum = "56f335787add7fa711819f9e7c573f8145a5358a709446fe2d24bf2a88117c90" dependencies = [ "bytemuck", "solana-program", @@ -2161,24 +5420,24 @@ dependencies = [ [[package]] name = "spl-token" -version = "4.0.1" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95ae123223633a389f95d1da9d49c2d0a50d499e7060b9624626a69e536ad2a4" +checksum = "08459ba1b8f7c1020b4582c4edf0f5c7511a5e099a7a97570c9698d4f2337060" dependencies = [ "arrayref", "bytemuck", - "num-derive 0.4.2", + "num-derive 0.3.3", "num-traits", - "num_enum 0.7.2", + "num_enum 0.6.1", "solana-program", "thiserror", ] [[package]] name = "spl-token-2022" -version = "0.9.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4abf34a65ba420584a0c35f3903f8d727d1f13ababbdc3f714c6b065a686e86" +checksum = "d697fac19fd74ff472dfcc13f0b442dd71403178ce1de7b5d16f83a33561c059" dependencies = [ "arrayref", "bytemuck", @@ -2186,10 +5445,12 @@ dependencies = [ "num-traits", "num_enum 0.7.2", "solana-program", + "solana-security-txt", "solana-zk-token-sdk", "spl-memo", "spl-pod", - "spl-token 4.0.1", + "spl-token 4.0.0", + "spl-token-group-interface", "spl-token-metadata-interface", "spl-transfer-hook-interface", "spl-type-length-value", @@ -2197,109 +5458,307 @@ dependencies = [ ] [[package]] -name = "spl-token-metadata-interface" -version = "0.2.1" +name = "spl-token-group-interface" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b889509d49fa74a4a033ca5dae6c2307e9e918122d97e58562f5c4ffa795c75d" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", +] + +[[package]] +name = "spl-token-metadata-interface" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c16ce3ba6979645fb7627aa1e435576172dd63088dc7848cb09aa331fa1fe4f" +dependencies = [ + "borsh 0.10.3", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", + "spl-type-length-value", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aabdb7c471566f6ddcee724beb8618449ea24b399e58d464d6b5bc7db550259" +dependencies = [ + "arrayref", + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", + "spl-tlv-account-resolution", + "spl-type-length-value", +] + +[[package]] +name = "spl-type-length-value" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a468e6f6371f9c69aae760186ea9f1a01c2908351b06a5e0026d21cfc4d7ecac" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strsim" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" + +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + +[[package]] +name = "strum" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "rustversion", + "syn 1.0.109", +] + +[[package]] +name = "subtle" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" + +[[package]] +name = "symlink" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7973cce6668464ea31f176d85b13c7ab3bba2cb3b77a2ed26abd7801688010a" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn_derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1329189c02ff984e9736652b1631330da25eaa6bc639089ed4915d25446cbe7b" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "sync_wrapper" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + +[[package]] +name = "synstructure" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "unicode-xid", +] + +[[package]] +name = "system-configuration" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "tar" +version = "0.4.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e16aa8f64b6e0eaab3f5034e84d867c8435d8216497b4543a4978a31f4b6e8a8" +checksum = "b16afcea1f22891c49a00c751c7b63b2233284064f11a200fc624137c51e2ddb" dependencies = [ - "borsh 0.10.3", - "solana-program", - "spl-discriminator", - "spl-pod", - "spl-program-error", - "spl-type-length-value", + "filetime", + "libc", + "xattr", ] [[package]] -name = "spl-transfer-hook-interface" -version = "0.3.0" +name = "tarpc" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "051d31803f873cabe71aec3c1b849f35248beae5d19a347d93a5c9cccc5d5a9b" +checksum = "1c38a012bed6fb9681d3bf71ffaa4f88f3b4b9ed3198cda6e4c8462d24d4bb80" dependencies = [ - "arrayref", - "bytemuck", - "solana-program", - "spl-discriminator", - "spl-pod", - "spl-program-error", - "spl-tlv-account-resolution", - "spl-type-length-value", + "anyhow", + "fnv", + "futures 0.3.30", + "humantime", + "opentelemetry", + "pin-project", + "rand 0.8.5", + "serde", + "static_assertions", + "tarpc-plugins", + "thiserror", + "tokio", + "tokio-serde", + "tokio-util 0.6.10", + "tracing", + "tracing-opentelemetry", ] [[package]] -name = "spl-type-length-value" -version = "0.3.1" +name = "tarpc-plugins" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f9ebd75d29c5f48de5f6a9c114e08531030b75b8ac2c557600ac7da0b73b1e8" +checksum = "0ee42b4e559f17bce0385ebf511a7beb67d5cc33c12c96b7f4e9789919d9c10f" dependencies = [ - "bytemuck", - "solana-program", - "spl-discriminator", - "spl-pod", - "spl-program-error", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - -[[package]] -name = "strsim" -version = "0.10.0" +name = "tempfile" +version = "3.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +dependencies = [ + "cfg-if", + "fastrand", + "rustix", + "windows-sys 0.52.0", +] [[package]] -name = "subtle" -version = "2.4.1" +name = "termcolor" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" +dependencies = [ + "winapi-util", +] [[package]] -name = "syn" -version = "1.0.109" +name = "test-case" +version = "3.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +checksum = "eb2550dd13afcd286853192af8601920d959b14c401fcece38071d53bf0768a8" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "test-case-macros", ] [[package]] -name = "syn" -version = "2.0.58" +name = "test-case-core" +version = "3.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" +checksum = "adcb7fd841cd518e279be3d5a3eb0636409487998a4aff22f3de87b81e88384f" dependencies = [ + "cfg-if", "proc-macro2", "quote", - "unicode-ident", + "syn 2.0.58", ] [[package]] -name = "syn_derive" -version = "0.1.8" +name = "test-case-macros" +version = "3.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1329189c02ff984e9736652b1631330da25eaa6bc639089ed4915d25446cbe7b" +checksum = "5c89e72a01ed4c579669add59014b9a524d609c0c88c6a585ce37485879f6ffb" dependencies = [ - "proc-macro-error", "proc-macro2", "quote", "syn 2.0.58", + "test-case-core", ] [[package]] -name = "termcolor" -version = "1.2.0" +name = "textwrap" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" dependencies = [ - "winapi-util", + "unicode-width", ] +[[package]] +name = "textwrap" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" + [[package]] name = "thiserror" version = "1.0.58" @@ -2320,6 +5779,47 @@ dependencies = [ "syn 2.0.58", ] +[[package]] +name = "thread_local" +version = "1.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" +dependencies = [ + "cfg-if", + "once_cell", +] + +[[package]] +name = "time" +version = "0.3.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" + +[[package]] +name = "time-macros" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" +dependencies = [ + "num-conv", + "time-core", +] + [[package]] name = "tiny-bip39" version = "0.8.2" @@ -2354,6 +5854,151 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" +[[package]] +name = "tokio" +version = "1.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" +dependencies = [ + "backtrace", + "bytes", + "libc", + "mio", + "num_cpus", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.48.0", +] + +[[package]] +name = "tokio-io-timeout" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" +dependencies = [ + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-macros" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-serde" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "911a61637386b789af998ee23f50aa30d5fd7edcec8d6d3dedae5e5815205466" +dependencies = [ + "bincode", + "bytes", + "educe", + "futures-core", + "futures-sink", + "pin-project", + "serde", + "serde_json", +] + +[[package]] +name = "tokio-stream" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1a5f475f1b9d077ea1017ecbc60890fda8e54942d680ca0b1d2b47cfa2d861b" +dependencies = [ + "futures-util", + "log", + "native-tls", + "pin-project", + "tokio", + "tokio-native-tls", + "tungstenite 0.12.0", +] + +[[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", + "tokio", + "tokio-rustls", + "tungstenite 0.20.1", + "webpki-roots 0.25.4", +] + +[[package]] +name = "tokio-util" +version = "0.6.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36943ee01a6d67977dd3f84a5a1d2efeb4ada3a1ae771cadfaa535d9d9fc6507" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "log", + "pin-project-lite", + "slab", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + [[package]] name = "toml" version = "0.5.11" @@ -2397,12 +6042,211 @@ dependencies = [ "winnow", ] +[[package]] +name = "tonic" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e" +dependencies = [ + "async-stream", + "async-trait", + "axum", + "base64 0.21.7", + "bytes", + "h2", + "http", + "http-body", + "hyper", + "hyper-timeout", + "percent-encoding", + "pin-project", + "prost", + "rustls", + "rustls-native-certs", + "rustls-pemfile", + "tokio", + "tokio-rustls", + "tokio-stream", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tonic-build" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d021fc044c18582b9a2408cd0dd05b1596e3ecdb5c4df822bb0183545683889" +dependencies = [ + "prettyplease", + "proc-macro2", + "prost-build", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "tonic-health" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f80db390246dfb46553481f6024f0082ba00178ea495dbb99e70ba9a4fafb5e1" +dependencies = [ + "async-stream", + "prost", + "tokio", + "tokio-stream", + "tonic", +] + +[[package]] +name = "tower" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +dependencies = [ + "futures-core", + "futures-util", + "indexmap 1.9.3", + "pin-project", + "pin-project-lite", + "rand 0.8.5", + "slab", + "tokio", + "tokio-util 0.7.11", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-layer" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" + +[[package]] +name = "tower-service" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" + +[[package]] +name = "tracing" +version = "0.1.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "tracing-core" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-opentelemetry" +version = "0.17.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbbe89715c1dbbb790059e2565353978564924ee85017b5fff365c872ff6721f" +dependencies = [ + "once_cell", + "opentelemetry", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +dependencies = [ + "sharded-slab", + "thread_local", + "tracing-core", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ada8297e8d70872fa9a551d93250a9f407beb9f37ef86494eb20012a2ff7c24" +dependencies = [ + "base64 0.13.1", + "byteorder", + "bytes", + "http", + "httparse", + "input_buffer", + "log", + "native-tls", + "rand 0.8.5", + "sha-1", + "url", + "utf-8", +] + +[[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", + "sha1", + "thiserror", + "url", + "utf-8", + "webpki-roots 0.24.0", +] + [[package]] name = "typenum" version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" +[[package]] +name = "unicode-bidi" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" + [[package]] name = "unicode-ident" version = "1.0.8" @@ -2418,6 +6262,18 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-width" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68f5e5f3158ecfd4b8ff6fe086db7c8467a2dfdac97fe420f2b7c4aa97af66d6" + +[[package]] +name = "unicode-xid" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" + [[package]] name = "universal-hash" version = "0.4.1" @@ -2428,6 +6284,27 @@ dependencies = [ "subtle", ] +[[package]] +name = "unreachable" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" +dependencies = [ + "void", +] + +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + [[package]] name = "uriparse" version = "0.6.4" @@ -2438,12 +6315,88 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "url" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "uuid" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +dependencies = [ + "getrandom 0.2.14", + "serde", +] + +[[package]] +name = "uuid" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" + +[[package]] +name = "valuable" +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 = "vec_map" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" + [[package]] name = "version_check" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +[[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 = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + [[package]] name = "wasi" version = "0.9.0+wasi-snapshot-preview1" @@ -2481,6 +6434,18 @@ dependencies = [ "wasm-bindgen-shared", ] +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" +dependencies = [ + "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "wasm-bindgen-macro" version = "0.2.92" @@ -2520,6 +6485,21 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki-roots" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888" +dependencies = [ + "rustls-webpki", +] + +[[package]] +name = "webpki-roots" +version = "0.25.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" + [[package]] name = "winapi" version = "0.3.9" @@ -2551,13 +6531,40 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.5", +] + [[package]] name = "windows-sys" version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ - "windows-targets", + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "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.5", ] [[package]] @@ -2566,13 +6573,44 @@ version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" +dependencies = [ + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] [[package]] @@ -2581,42 +6619,132 @@ version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" + [[package]] name = "windows_aarch64_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" + [[package]] name = "windows_i686_gnu" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" + [[package]] name = "windows_i686_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" + [[package]] name = "windows_x86_64_gnu" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" +[[package]] +name = "windows_x86_64_gnu" +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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" + [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" +[[package]] +name = "windows_x86_64_gnullvm" +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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" + [[package]] name = "windows_x86_64_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" + [[package]] name = "winnow" version = "0.5.40" @@ -2626,6 +6754,114 @@ 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 = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +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", + "time", +] + +[[package]] +name = "xattr" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" +dependencies = [ + "libc", + "linux-raw-sys", + "rustix", +] + +[[package]] +name = "yasna" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" +dependencies = [ + "time", +] + +[[package]] +name = "yellowstone-grpc-client" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978d1379db10aa5e430e305f5a01598439d3414ef808443f9f92d1201dacda65" +dependencies = [ + "bytes", + "futures 0.3.30", + "thiserror", + "tonic", + "tonic-health", + "yellowstone-grpc-proto", +] + +[[package]] +name = "yellowstone-grpc-proto" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "742e431794099868a1ac668d440d724eb25b6f5a3739986cdd8bfc15fa5661c3" +dependencies = [ + "anyhow", + "bincode", + "prost", + "protobuf-src", + "solana-account-decoder", + "solana-sdk", + "solana-transaction-status", + "tonic", + "tonic-build", +] + +[[package]] +name = "zerocopy" +version = "0.7.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", +] + [[package]] name = "zeroize" version = "1.3.0" @@ -2645,3 +6881,32 @@ dependencies = [ "quote", "syn 2.0.58", ] + +[[package]] +name = "zstd" +version = "0.11.2+zstd.1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "5.0.2+zstd.1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" +dependencies = [ + "libc", + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.10+zstd.1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c253a4914af5bafc8fa8c86ee400827e83cf6ec01195ec1f1ed8441bf00d65aa" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/Cargo.toml b/Cargo.toml index 878703d..2f1a65f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,4 +43,9 @@ toml_edit = "0.18.1" proc-macro-crate = "1.3.0" [dev-dependencies] -rand = "0.7.3" \ No newline at end of file +rand = "0.7.3" +tokio = { version="*", features=["full"]} +solana-sdk = "1.16.3" +solana-program-test = "1.16.3" +ellipsis-client = "1.0.0" +phoenix-sdk = "0.7.0" \ No newline at end of file diff --git a/tests/setup/helpers.rs b/tests/setup/helpers.rs index 1acd44e..e57c28e 100644 --- a/tests/setup/helpers.rs +++ b/tests/setup/helpers.rs @@ -123,15 +123,20 @@ pub async fn mint_tokens( #[allow(dead_code)] pub async fn get_and_bootstrap_maker( sdk: &mut SDKClient, + market: &Pubkey, mint_authority: &Keypair, ) -> PhoenixTestAccount { - let maker = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let meta = sdk.get_market_metadata(market).await.unwrap(); + let maker = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; sdk.client.add_keypair(&maker.user); let mut init_instructions = vec![]; - init_instructions.push(create_claim_seat_instruction( - &maker.user.pubkey(), - &sdk.active_market_key, - )); + init_instructions.push(create_claim_seat_instruction(&maker.user.pubkey(), market)); println!("maker: {:?}", maker.user.pubkey()); sdk.client .sign_send_instructions_with_payer(init_instructions, vec![&sdk.client.payer, &maker.user]) @@ -143,9 +148,17 @@ pub async fn get_and_bootstrap_maker( #[allow(dead_code)] pub async fn get_and_bootstrap_taker( sdk: &mut SDKClient, + market: &Pubkey, mint_authority: &Keypair, ) -> PhoenixTestAccount { - let taker = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let meta = sdk.get_market_metadata(market).await.unwrap(); + let taker = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; sdk.client.add_keypair(&taker.user); taker } diff --git a/tests/setup/init.rs b/tests/setup/init.rs index d3d789f..0e1424b 100644 --- a/tests/setup/init.rs +++ b/tests/setup/init.rs @@ -1,8 +1,8 @@ -use ellipsis_client::program_test::*; use ellipsis_client::EllipsisClient; use phoenix::program::instruction_builders::*; use phoenix_seat_manager::get_seat_manager_address; use phoenix_seat_manager::instruction_builders::create_claim_market_authority_instruction; +use solana_program_test::*; use phoenix::program::status::MarketStatus; use phoenix::program::*; @@ -34,6 +34,7 @@ pub struct PhoenixTestClient { pub ctx: ProgramTestContext, pub sdk: SDKClient, pub mint_authority: Keypair, + pub market: Pubkey, } pub fn phoenix_test() -> ProgramTest { @@ -225,8 +226,11 @@ async fn bootstrap_with_parameters( PhoenixTestClient { ctx: context, - sdk: SDKClient::new_from_ellipsis_client(&market.pubkey(), ellipsis_client).await, + sdk: SDKClient::new_from_ellipsis_client(ellipsis_client) + .await + .unwrap(), mint_authority: authority, + market: market.pubkey(), } } diff --git a/tests/test_add_remove_mm.rs b/tests/test_add_remove_mm.rs index 8148c4a..fd5b3d2 100644 --- a/tests/test_add_remove_mm.rs +++ b/tests/test_add_remove_mm.rs @@ -18,16 +18,14 @@ async fn test_add_remove_happy_path() { ctx: _, sdk, mint_authority: _, + market, } = bootstrap_default(5).await; // Add seat for trader let trader = Pubkey::new_unique(); - let claim_seat = create_claim_seat_authorized_instruction( - &trader, - &sdk.active_market_key, - &sdk.client.payer.pubkey(), - ); + let claim_seat = + create_claim_seat_authorized_instruction(&trader, &market, &sdk.client.payer.pubkey()); sdk.client .sign_send_instructions(vec![claim_seat], vec![]) @@ -35,15 +33,14 @@ async fn test_add_remove_happy_path() { .unwrap(); // Add designated MM - let add_as_mm = - create_add_dmm_instruction(&sdk.active_market_key, &sdk.client.payer.pubkey(), &trader); + let add_as_mm = create_add_dmm_instruction(&market, &sdk.client.payer.pubkey(), &trader); sdk.client .sign_send_instructions(vec![add_as_mm], vec![]) .await .unwrap(); - let (seat_manager_address, _) = get_seat_manager_address(&sdk.active_market_key); + let (seat_manager_address, _) = get_seat_manager_address(&market); let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -54,14 +51,13 @@ async fn test_add_remove_happy_path() { assert_eq!(seat_manager.num_makers, 1); // Remove designated MM - let remove_as_mm = - create_remove_dmm_instruction(&sdk.active_market_key, &sdk.client.payer.pubkey(), &trader); + let remove_as_mm = create_remove_dmm_instruction(&market, &sdk.client.payer.pubkey(), &trader); sdk.client .sign_send_instructions(vec![remove_as_mm], vec![]) .await .unwrap(); - let (seat_manager_address, _) = get_seat_manager_address(&sdk.active_market_key); + let (seat_manager_address, _) = get_seat_manager_address(&market); let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -77,21 +73,20 @@ async fn test_add_remove_fails_if_trader_has_no_seat() { ctx: _, sdk, mint_authority: _, + market, } = bootstrap_default(5).await; let trader = Pubkey::new_unique(); // Add designated MM errors if no seat - let add_as_mm = - create_add_dmm_instruction(&sdk.active_market_key, &sdk.client.payer.pubkey(), &trader); + let add_as_mm = create_add_dmm_instruction(&market, &sdk.client.payer.pubkey(), &trader); assert!(sdk .client .sign_send_instructions(vec![add_as_mm], vec![]) .await .is_err()); - let remove_as_mm = - create_remove_dmm_instruction(&sdk.active_market_key, &sdk.client.payer.pubkey(), &trader); + let remove_as_mm = create_remove_dmm_instruction(&market, &sdk.client.payer.pubkey(), &trader); assert!(sdk .client @@ -106,15 +101,13 @@ async fn test_add_remove_fails_if_authority_not_signer_or_authority_mismatch() { ctx: _, mut sdk, mint_authority: _, + market, } = bootstrap_default(5).await; let trader = Pubkey::new_unique(); - let claim_seat = create_claim_seat_authorized_instruction( - &trader, - &sdk.active_market_key, - &sdk.client.payer.pubkey(), - ); + let claim_seat = + create_claim_seat_authorized_instruction(&trader, &market, &sdk.client.payer.pubkey()); sdk.client .sign_send_instructions(vec![claim_seat], vec![]) @@ -126,8 +119,7 @@ async fn test_add_remove_fails_if_authority_not_signer_or_authority_mismatch() { .await .unwrap(); - let add_as_mm = - create_add_dmm_instruction(&sdk.active_market_key, &unauthorized.pubkey(), &trader); + let add_as_mm = create_add_dmm_instruction(&market, &unauthorized.pubkey(), &trader); // Signer that does not match seat manager authority (client.payer) fails assert!(sdk @@ -137,8 +129,7 @@ async fn test_add_remove_fails_if_authority_not_signer_or_authority_mismatch() { .is_err()); // Missing authority signer fails - let mut add_as_mm = - create_add_dmm_instruction(&sdk.active_market_key, &sdk.client.payer.pubkey(), &trader); + let mut add_as_mm = create_add_dmm_instruction(&market, &sdk.client.payer.pubkey(), &trader); add_as_mm.accounts[3].is_signer = false; sdk.client.add_keypair(&unauthorized); diff --git a/tests/test_change_market_fee_recipient.rs b/tests/test_change_market_fee_recipient.rs index 140150a..c3c3158 100644 --- a/tests/test_change_market_fee_recipient.rs +++ b/tests/test_change_market_fee_recipient.rs @@ -20,24 +20,27 @@ use crate::setup::init::*; #[tokio::test] async fn test_change_market_fee_recipient_no_unclaimed() { - let PhoenixTestClient { ctx: _, sdk, .. } = bootstrap_default(0).await; + let PhoenixTestClient { + ctx: _, + sdk, + market, + .. + } = bootstrap_default(0).await; println!("Seat program authority: {}", sdk.client.payer.pubkey()); let new_fee_recipient = Pubkey::new_unique(); + let meta = sdk.get_market_metadata(&market).await.unwrap(); + let change_market_fee_recipient_ix = create_change_market_fee_recipient_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), &new_fee_recipient, - &sdk.quote_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), ); - let market_account_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_account_data = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, _market_bytes) = market_account_data.split_at(size_of::()); let header: &MarketHeader = bytemuck::try_from_bytes(header_bytes).unwrap(); @@ -51,11 +54,7 @@ async fn test_change_market_fee_recipient_no_unclaimed() { .await .unwrap(); // Verify that the market authority successor is set to the new keypair - let market_account_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_account_data = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, _bytes) = market_account_data.split_at(size_of::()); let header = bytemuck::try_from_bytes::(header_bytes).unwrap(); @@ -69,20 +68,22 @@ async fn test_change_market_fee_recipient_unclaimed_fees() { let PhoenixTestClient { ctx: _, mut sdk, + market, mint_authority, } = bootstrap_default(5).await; //Place limit order with maker (keypair 1) - let maker = get_and_bootstrap_maker(&mut sdk, &mint_authority).await; + let maker = get_and_bootstrap_maker(&mut sdk, &market, &mint_authority).await; + let meta = sdk.get_market_metadata(&market).await.unwrap(); let maker_order_packet = OrderPacket::new_limit_order_default( Side::Ask, - sdk.float_price_to_ticks(10.0), + meta.float_price_to_ticks_rounded_up(10.0), 1_000_000_000, ); let limit_order_ix = create_new_order_instruction( - &sdk.active_market_key, + &market, &maker.user.pubkey(), - &sdk.base_mint, - &sdk.quote_mint, + &meta.base_mint, + &meta.quote_mint, &maker_order_packet, ); sdk.client @@ -91,9 +92,9 @@ async fn test_change_market_fee_recipient_unclaimed_fees() { .unwrap(); //Place cross order with taker (keypair 2) - let taker = get_and_bootstrap_taker(&mut sdk, &mint_authority).await; + let taker = get_and_bootstrap_taker(&mut sdk, &market, &mint_authority).await; let taker_order_packet = OrderPacket::new_ioc_buy_with_limit_price( - sdk.float_price_to_ticks(10.0), + meta.float_price_to_ticks_rounded_down(10.0), 10_000_000, SelfTradeBehavior::Abort, None, @@ -101,10 +102,10 @@ async fn test_change_market_fee_recipient_unclaimed_fees() { false, ); let taker_order_ix = create_new_order_instruction( - &sdk.active_market_key, + &market, &taker.user.pubkey(), - &sdk.base_mint, - &sdk.quote_mint, + &meta.base_mint, + &meta.quote_mint, &taker_order_packet, ); @@ -116,17 +117,13 @@ async fn test_change_market_fee_recipient_unclaimed_fees() { // Assert that market has unclaimed fees let (unclaimed_fees, current_fee_recipient) = { // Check if there are unclaimed fees in the market account. If so, generate change fee with unclaimed ix - let market_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_data = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, market_bytes) = market_data.split_at(size_of::()); let market_header = bytemuck::try_from_bytes::(header_bytes).unwrap(); println!("Current authority: {}", market_header.authority); - let seat = get_seat_manager_address(&sdk.active_market_key); + let seat = get_seat_manager_address(&market); println!("Seat manager address: {:?}", seat); println!("Seat manager id: {}", phoenix_seat_manager::id()); println!("Current fee recipient: {}", market_header.fee_recipient); @@ -148,10 +145,10 @@ async fn test_change_market_fee_recipient_unclaimed_fees() { let new_fee_recipient = Pubkey::new_unique(); let claim_fees_ix = create_change_market_fee_recipient_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), &new_fee_recipient, - &sdk.quote_mint, + &meta.quote_mint, ¤t_fee_recipient, ); @@ -167,11 +164,7 @@ async fn test_change_market_fee_recipient_unclaimed_fees() { .unwrap(); // Assert that the market authority successor is set to the new keypair - let market_account_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_account_data = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, _bytes) = market_account_data.split_at(size_of::()); let header = bytemuck::try_from_bytes::(header_bytes).unwrap(); @@ -181,17 +174,23 @@ async fn test_change_market_fee_recipient_unclaimed_fees() { #[tokio::test] async fn test_change_market_fee_recipient_invalid_authority() { - let PhoenixTestClient { ctx: _, sdk, .. } = bootstrap_default(0).await; + let PhoenixTestClient { + ctx: _, + market, + sdk, + .. + } = bootstrap_default(0).await; println!("Seat program authority: {}", sdk.client.payer.pubkey()); let new_fee_recipient = Pubkey::new_unique(); let incorrect_authority = Keypair::new(); + let meta = sdk.get_market_metadata(&market).await.unwrap(); let change_market_fee_recipient_ix = create_change_market_fee_recipient_instruction( - &sdk.active_market_key, + &market, &incorrect_authority.pubkey(), &new_fee_recipient, - &sdk.quote_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), ); diff --git a/tests/test_change_market_status.rs b/tests/test_change_market_status.rs index e94f841..b80e999 100644 --- a/tests/test_change_market_status.rs +++ b/tests/test_change_market_status.rs @@ -15,11 +15,12 @@ async fn test_change_market_status_happy_path() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; let change_market_status = create_change_market_status_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), MarketStatus::Paused, ); @@ -29,11 +30,7 @@ async fn test_change_market_status_happy_path() { .await .unwrap(); - let market_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_data = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, _) = market_data.split_at(size_of::()); let header = bytemuck::try_from_bytes::(header_bytes).unwrap(); @@ -45,6 +42,7 @@ async fn test_change_market_status_happy_path() { async fn test_change_market_status_fails_if_authority_not_signer_or_unauthorized_signer() { let PhoenixTestClient { ctx: _, + market, mut sdk, mint_authority: _, } = bootstrap_default(5).await; @@ -55,7 +53,7 @@ async fn test_change_market_status_fails_if_authority_not_signer_or_unauthorized .unwrap(); let change_market_status = create_change_market_status_instruction( - &sdk.active_market_key, + &market, &unauthorized.pubkey(), MarketStatus::Paused, ); @@ -67,7 +65,7 @@ async fn test_change_market_status_fails_if_authority_not_signer_or_unauthorized .is_err()); let mut change_market_status = create_change_market_status_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), MarketStatus::Paused, ); diff --git a/tests/test_claim_market_authority.rs b/tests/test_claim_market_authority.rs index a56044e..fde2d32 100644 --- a/tests/test_claim_market_authority.rs +++ b/tests/test_claim_market_authority.rs @@ -29,6 +29,7 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; @@ -37,7 +38,7 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { let claim_seat = create_claim_seat_authorized_instruction( &trader_keypair.pubkey(), - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), ); @@ -47,7 +48,7 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { .unwrap(); let add_mm_ix = create_add_dmm_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), &trader_keypair.pubkey(), ); @@ -57,7 +58,7 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { .await .unwrap(); - let seat_manager_address = get_seat_manager_address(&sdk.active_market_key).0; + let seat_manager_address = get_seat_manager_address(&market).0; let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -76,7 +77,7 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { // Pass market authority to new keypair let new_authority = Keypair::new(); let name_market_authority_successor_ix = create_name_market_authority_successor_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), &new_authority.pubkey(), ); @@ -87,29 +88,22 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { .unwrap(); let claim_market_authority = - create_claim_authority_instruction(&new_authority.pubkey(), &sdk.active_market_key); + create_claim_authority_instruction(&new_authority.pubkey(), &market); sdk.client .sign_send_instructions(vec![claim_market_authority], vec![&new_authority]) .await .unwrap(); - let market_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_data = sdk.client.get_account_data(&market).await.unwrap(); let header_bytes = &market_data[..size_of::()]; let market_header = bytemuck::try_from_bytes::(header_bytes).unwrap(); assert!(market_header.authority == new_authority.pubkey()); // New authority names seat manager as new market successor - let name_market_authority_successor_ix = create_name_successor_instruction( - &new_authority.pubkey(), - &sdk.active_market_key, - &seat_manager_address, - ); + let name_market_authority_successor_ix = + create_name_successor_instruction(&new_authority.pubkey(), &market, &seat_manager_address); sdk.client .sign_send_instructions( @@ -120,13 +114,11 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { .unwrap(); // Seat manager claim authority still works - let claim_market_authority = create_claim_market_authority_instruction( - &sdk.active_market_key, - &sdk.client.payer.pubkey(), - ); + let claim_market_authority = + create_claim_market_authority_instruction(&market, &sdk.client.payer.pubkey()); // Add lamports to the seat collector address because a trader exists on the market. let required_lamports = sdk.client.rent_exempt(spl_token::state::Account::LEN) * 2; - let seat_deposit_collector = get_seat_deposit_collector_address(&sdk.active_market_key).0; + let seat_deposit_collector = get_seat_deposit_collector_address(&market).0; airdrop(&sdk.client, &seat_deposit_collector, required_lamports) .await @@ -137,11 +129,7 @@ async fn test_claim_market_authority_reclaim_works_with_fresh_dmms() { .await .unwrap(); - let market_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_data = sdk.client.get_account_data(&market).await.unwrap(); let header_bytes = &market_data[..size_of::()]; let market_header = bytemuck::try_from_bytes::(header_bytes).unwrap(); @@ -166,6 +154,7 @@ async fn test_claim_market_authority_requires_rent_for_existing_traders() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default_without_sm_claiming_authority(5).await; @@ -176,27 +165,27 @@ async fn test_claim_market_authority_requires_rent_for_existing_traders() { let claim_seat = create_request_seat_authorized_instruction( &sdk.client.payer.pubkey(), &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair.pubkey(), ); let claim_seat_two = create_request_seat_authorized_instruction( &sdk.client.payer.pubkey(), &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair_two.pubkey(), ); let change_seat_status_one = create_change_seat_status_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair.pubkey(), SeatApprovalStatus::Approved, ); let change_seat_status_two = create_change_seat_status_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair_two.pubkey(), SeatApprovalStatus::Approved, ); @@ -214,29 +203,23 @@ async fn test_claim_market_authority_requires_rent_for_existing_traders() { .await .unwrap(); - let claim_market_authority = create_claim_market_authority_instruction( - &sdk.active_market_key, - &sdk.client.payer.pubkey(), - ); - let market_bytes = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let claim_market_authority = + create_claim_market_authority_instruction(&market, &sdk.client.payer.pubkey()); + let market_bytes = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, market_bytes) = market_bytes.split_at(size_of::()); let market_header = bytemuck::try_from_bytes::(header_bytes).unwrap(); - let market = load_with_dispatch(&market_header.market_size_params, market_bytes) + let phoenix_market = load_with_dispatch(&market_header.market_size_params, market_bytes) .unwrap() .inner; - let registered_traders = market.get_registered_traders(); + let registered_traders = phoenix_market.get_registered_traders(); let required_lamports = sdk.client.rent_exempt(spl_token::state::Account::LEN) * 2 * registered_traders.len() as u64; // Times 2 for two token accounts for each trader - let seat_deposit_collector = get_seat_deposit_collector_address(&sdk.active_market_key).0; + let seat_deposit_collector = get_seat_deposit_collector_address(&market).0; println!("Required lamports: {}", required_lamports); airdrop(&sdk.client, &seat_deposit_collector, required_lamports) @@ -255,6 +238,7 @@ async fn test_claim_market_authority_fails_if_deposit_collector_has_insufficient let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default_without_sm_claiming_authority(5).await; @@ -265,27 +249,27 @@ async fn test_claim_market_authority_fails_if_deposit_collector_has_insufficient let claim_seat = create_request_seat_authorized_instruction( &sdk.client.payer.pubkey(), &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair.pubkey(), ); let claim_seat_two = create_request_seat_authorized_instruction( &sdk.client.payer.pubkey(), &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair_two.pubkey(), ); let change_seat_status_one = create_change_seat_status_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair.pubkey(), SeatApprovalStatus::Approved, ); let change_seat_status_two = create_change_seat_status_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &trader_keypair_two.pubkey(), SeatApprovalStatus::Approved, ); @@ -303,16 +287,10 @@ async fn test_claim_market_authority_fails_if_deposit_collector_has_insufficient .await .unwrap(); - let claim_market_authority = create_claim_market_authority_instruction( - &sdk.active_market_key, - &sdk.client.payer.pubkey(), - ); + let claim_market_authority = + create_claim_market_authority_instruction(&market, &sdk.client.payer.pubkey()); - let market_bytes = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_bytes = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, market_bytes) = market_bytes.split_at(size_of::()); let market_header = bytemuck::try_from_bytes::(header_bytes).unwrap(); diff --git a/tests/test_claim_seat.rs b/tests/test_claim_seat.rs index ebae0e4..21bea50 100644 --- a/tests/test_claim_seat.rs +++ b/tests/test_claim_seat.rs @@ -19,13 +19,20 @@ async fn test_claim_seat_without_trader_as_signer_fails_and_with_signer_succeeds let PhoenixTestClient { ctx: _, sdk, + market, mint_authority, } = bootstrap_default(5).await; - let trader = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint) - .await - .user; - let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &sdk.active_market_key); + let meta = sdk.get_market_metadata(&market).await.unwrap(); + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await + .user; + let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &market); // Assert that claim seat fails when trader is not a signer assert!(sdk @@ -42,14 +49,14 @@ async fn test_claim_seat_without_trader_as_signer_fails_and_with_signer_succeeds // Asert able to create limit order let maker_order_packet = OrderPacket::new_limit_order_default( Side::Ask, - sdk.float_price_to_ticks(10.0), + meta.float_price_to_ticks_rounded_up(10.0), 1_000_000_000, ); let limit_order_ix = create_new_order_instruction( - &sdk.active_market_key, + &market, &trader.pubkey(), - &sdk.base_mint, - &sdk.quote_mint, + &meta.base_mint, + &meta.quote_mint, &maker_order_packet, ); assert!(sdk @@ -64,16 +71,24 @@ async fn test_claim_seat_authorized_happy_path() { let PhoenixTestClient { mut ctx, sdk, + market, mint_authority, } = bootstrap_default(5).await; - let trader = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint) - .await - .user; + let meta = sdk.get_market_metadata(&market).await.unwrap(); + + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await + .user; let claim_seat_ix = create_claim_seat_authorized_instruction( &trader.pubkey(), - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), ); @@ -86,14 +101,14 @@ async fn test_claim_seat_authorized_happy_path() { // Assert able to create limit order let maker_order_packet = OrderPacket::new_limit_order_default( Side::Ask, - sdk.float_price_to_ticks(10.0), + meta.float_price_to_ticks_rounded_up(10.0), 1_000_000_000, ); let limit_order_ix = create_new_order_instruction( - &sdk.active_market_key, + &market, &trader.pubkey(), - &sdk.base_mint, - &sdk.quote_mint, + &meta.base_mint, + &meta.quote_mint, &maker_order_packet, ); assert!(sdk @@ -106,7 +121,7 @@ async fn test_claim_seat_authorized_happy_path() { let claim_seat_ix = create_claim_seat_authorized_instruction( &trader.pubkey(), - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), ); @@ -122,12 +137,19 @@ async fn test_claim_seat_authorized_without_authority_signer_fails() { let PhoenixTestClient { ctx: _, mut sdk, + market, mint_authority, } = bootstrap_default(5).await; - let trader = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint) - .await - .user; + let meta = sdk.get_market_metadata(&market).await.unwrap(); + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await + .user; let unauthorized_payer = Keypair::new(); airdrop(&sdk.client, &unauthorized_payer.pubkey(), 1_000_000_000) @@ -136,7 +158,7 @@ async fn test_claim_seat_authorized_without_authority_signer_fails() { let claim_seat_ix = create_claim_seat_authorized_instruction( &trader.pubkey(), - &sdk.active_market_key, + &market, &unauthorized_payer.pubkey(), ); @@ -148,7 +170,7 @@ async fn test_claim_seat_authorized_without_authority_signer_fails() { let mut claim_seat_ix = create_claim_seat_authorized_instruction( &trader.pubkey(), - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), ); @@ -169,22 +191,28 @@ async fn test_claim_seat_deposits_two_token_accounts_lamports() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority, } = bootstrap_default(5).await; - let trader = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint) - .await - .user; + let meta = sdk.get_market_metadata(&market).await.unwrap(); + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await + .user; - let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &sdk.active_market_key); + let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &market); sdk.client .sign_send_instructions(vec![claim_seat_ix], vec![&trader]) .await .unwrap(); - let seat_deposit_collector_address = - get_seat_deposit_collector_address(&sdk.active_market_key).0; + let seat_deposit_collector_address = get_seat_deposit_collector_address(&market).0; let seat_deposit_collector_ending_lamports = sdk .client .get_account(&seat_deposit_collector_address) diff --git a/tests/test_claim_seat_manager_authority.rs b/tests/test_claim_seat_manager_authority.rs index b636fe6..bb70541 100644 --- a/tests/test_claim_seat_manager_authority.rs +++ b/tests/test_claim_seat_manager_authority.rs @@ -15,6 +15,7 @@ async fn test_claim_seat_manager_authority_happy_path() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; @@ -22,7 +23,7 @@ async fn test_claim_seat_manager_authority_happy_path() { let name_successor_ix = create_name_seat_manager_successor_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &successor.pubkey(), ); @@ -31,17 +32,15 @@ async fn test_claim_seat_manager_authority_happy_path() { .await .unwrap(); - let claim_authority_ix = create_claim_seat_manager_authority_instruction( - &sdk.active_market_key, - &successor.pubkey(), - ); + let claim_authority_ix = + create_claim_seat_manager_authority_instruction(&market, &successor.pubkey()); sdk.client .sign_send_instructions(vec![claim_authority_ix], vec![&successor]) .await .unwrap(); - let (seat_manager_address, _) = get_seat_manager_address(&sdk.active_market_key); + let (seat_manager_address, _) = get_seat_manager_address(&market); let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -57,6 +56,7 @@ async fn test_claim_seat_manager_authority_fails_if_sucessor_not_signer_or_wrong let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; @@ -64,7 +64,7 @@ async fn test_claim_seat_manager_authority_fails_if_sucessor_not_signer_or_wrong let name_successor_ix = create_name_seat_manager_successor_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &successor.pubkey(), ); @@ -73,10 +73,8 @@ async fn test_claim_seat_manager_authority_fails_if_sucessor_not_signer_or_wrong .await .unwrap(); - let claim_authority_ix = create_claim_seat_manager_authority_instruction( - &sdk.active_market_key, - &successor.pubkey(), - ); + let claim_authority_ix = + create_claim_seat_manager_authority_instruction(&market, &successor.pubkey()); // Fails if sucessor is not a signer assert!(sdk @@ -88,10 +86,8 @@ async fn test_claim_seat_manager_authority_fails_if_sucessor_not_signer_or_wrong // Fails if wrong sucessor tries to claim let unauthorsized_successor = Keypair::new(); - let claim_authority_ix = create_claim_seat_manager_authority_instruction( - &sdk.active_market_key, - &unauthorsized_successor.pubkey(), - ); + let claim_authority_ix = + create_claim_seat_manager_authority_instruction(&market, &unauthorsized_successor.pubkey()); assert!(sdk .client diff --git a/tests/test_confirm_renounce_seat_manager_authority.rs b/tests/test_confirm_renounce_seat_manager_authority.rs index 73b1097..9316929 100644 --- a/tests/test_confirm_renounce_seat_manager_authority.rs +++ b/tests/test_confirm_renounce_seat_manager_authority.rs @@ -18,6 +18,7 @@ use crate::setup::init::PhoenixTestClient; async fn test_confirm_renounce_seat_manager_authority_success() { let PhoenixTestClient { ctx: _, + market, sdk, mint_authority: _, } = bootstrap_default(5).await; @@ -25,7 +26,7 @@ async fn test_confirm_renounce_seat_manager_authority_success() { let initiate_renounce_psm_authority_ix = create_initiate_renounce_seat_manager_authority_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, ); sdk.client @@ -36,7 +37,7 @@ async fn test_confirm_renounce_seat_manager_authority_success() { let confimr_renounce_psm_authority_ix = create_confirm_renounce_seat_manager_authority_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, ); sdk.client @@ -44,7 +45,7 @@ async fn test_confirm_renounce_seat_manager_authority_success() { .await .unwrap(); - let (seat_manager_address, _) = get_seat_manager_address(&sdk.active_market_key); + let (seat_manager_address, _) = get_seat_manager_address(&market); let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -56,7 +57,7 @@ async fn test_confirm_renounce_seat_manager_authority_success() { // Assert that an admin action authorized by the previous authority fails. let change_market_status = create_change_market_status_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), MarketStatus::Paused, ); @@ -73,13 +74,14 @@ async fn test_confirm_renounce_seat_manager_authority_fails_unauthorized_signer( let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; let initiate_renounce_sm_authority_ix = create_initiate_renounce_seat_manager_authority_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, ); sdk.client @@ -95,7 +97,7 @@ async fn test_confirm_renounce_seat_manager_authority_fails_unauthorized_signer( let confirm_renounce_sm_authority_ix = create_confirm_renounce_seat_manager_authority_instruction( &unauthorized_signer.pubkey(), - &sdk.active_market_key, + &market, ); assert!(sdk @@ -109,7 +111,7 @@ async fn test_confirm_renounce_seat_manager_authority_fails_unauthorized_signer( let mut confirm_renounce_ix = create_confirm_renounce_seat_manager_authority_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, ); confirm_renounce_ix.accounts[1].is_signer = false; @@ -136,13 +138,14 @@ async fn test_confirm_renounce_seat_manager_authority_fails_if_not_initiated() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; let confirm_renounce_sm_authority_ix = create_confirm_renounce_seat_manager_authority_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, ); assert!(sdk diff --git a/tests/test_evict_seat.rs b/tests/test_evict_seat.rs index 2939e96..4ca6c87 100644 --- a/tests/test_evict_seat.rs +++ b/tests/test_evict_seat.rs @@ -36,21 +36,32 @@ async fn test_evict_seat_multiple_authorized() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority, } = bootstrap_default(5).await; + let meta = sdk.get_market_metadata(&market).await.unwrap(); + // Claim seats for two traders - let trader_one = - setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let trader_one = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; - let trader_two = - setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let trader_two = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; - let claim_seat_one = - create_claim_seat_instruction(&trader_one.user.pubkey(), &sdk.active_market_key); + let claim_seat_one = create_claim_seat_instruction(&trader_one.user.pubkey(), &market); - let claim_seat_two = - create_claim_seat_instruction(&trader_two.user.pubkey(), &sdk.active_market_key); + let claim_seat_two = create_claim_seat_instruction(&trader_two.user.pubkey(), &market); sdk.client .sign_send_instructions( @@ -60,15 +71,15 @@ async fn test_evict_seat_multiple_authorized() { .await .unwrap(); - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.get(&trader_one.user.pubkey()).is_some()); assert!(traders.get(&trader_two.user.pubkey()).is_some()); // Evict seats for both traders let evict_seats = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), vec![ EvictTraderAccountBackup { @@ -92,7 +103,7 @@ async fn test_evict_seat_multiple_authorized() { .unwrap(); // Assert that neither trader are in the market state - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.get(&trader_one.user.pubkey()).is_none()); assert!(traders.get(&trader_two.user.pubkey()).is_none()); } @@ -102,19 +113,26 @@ async fn test_evict_seat_permissionless_succeeds_when_evicting_empty_seats() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority, } = bootstrap_default(5).await; + let meta = sdk.get_market_metadata(&market).await.unwrap(); let mut new_traders = vec![]; // Need to fill market with traders let num_new_traders = NUM_SEATS / 2; for _ in 0..num_new_traders { - let trader = - setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; let claim_seat = create_claim_seat_authorized_instruction( &trader.user.pubkey(), - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), ); @@ -139,9 +157,9 @@ async fn test_evict_seat_permissionless_succeeds_when_evicting_empty_seats() { } let evict_seats = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &evictor.pubkey(), traders_to_evict .iter() @@ -165,7 +183,7 @@ async fn test_evict_seat_permissionless_succeeds_when_evicting_empty_seats() { .unwrap(); // Assert that all traders were evicted - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); let eviction_successful = traders_to_evict .iter() .all(|i| traders.get(&new_traders[*i].user.pubkey()).is_none()); @@ -178,37 +196,47 @@ async fn test_evict_seat_permissionless_succeeds_when_full_and_only_evicts_one() let PhoenixTestClient { ctx: _, sdk, + market, mint_authority, } = bootstrap_default(5).await; - let trader_one = - setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let meta = sdk.get_market_metadata(&market).await.unwrap(); + let trader_one = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; - let trader_two = - setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let trader_two = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; - let claim_seat_one = - create_claim_seat_instruction(&trader_one.user.pubkey(), &sdk.active_market_key); + let claim_seat_one = create_claim_seat_instruction(&trader_one.user.pubkey(), &market); let deposit_one = create_deposit_funds_instruction( - &sdk.active_market_key, + &market, &trader_one.user.pubkey(), - &sdk.base_mint, - &sdk.quote_mint, + &meta.base_mint, + &meta.quote_mint, &DepositParams { quote_lots_to_deposit: 1, base_lots_to_deposit: 1, }, ); - let claim_seat_two = - create_claim_seat_instruction(&trader_two.user.pubkey(), &sdk.active_market_key); + let claim_seat_two = create_claim_seat_instruction(&trader_two.user.pubkey(), &market); let deposit_two = create_deposit_funds_instruction( - &sdk.active_market_key, + &market, &trader_two.user.pubkey(), - &sdk.base_mint, - &sdk.quote_mint, + &meta.base_mint, + &meta.quote_mint, &DepositParams { quote_lots_to_deposit: 1, base_lots_to_deposit: 1, @@ -223,7 +251,7 @@ async fn test_evict_seat_permissionless_succeeds_when_full_and_only_evicts_one() .await .unwrap(); - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.get(&trader_one.user.pubkey()).is_some()); assert!(traders.get(&trader_two.user.pubkey()).is_some()); @@ -232,11 +260,8 @@ async fn test_evict_seat_permissionless_succeeds_when_full_and_only_evicts_one() for _ in 0..num_new_traders { let trader = Pubkey::new_unique(); - let claim_seat = create_claim_seat_authorized_instruction( - &trader, - &sdk.active_market_key, - &sdk.client.payer.pubkey(), - ); + let claim_seat = + create_claim_seat_authorized_instruction(&trader, &market, &sdk.client.payer.pubkey()); let result = sdk .client @@ -245,19 +270,15 @@ async fn test_evict_seat_permissionless_succeeds_when_full_and_only_evicts_one() println!("Result: {:?}", result); } - let market_bytes = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_bytes = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, market_bytes) = market_bytes.split_at(size_of::()); let market_header = bytemuck::try_from_bytes::(header_bytes).unwrap(); - let market = load_with_dispatch(&market_header.market_size_params, market_bytes) + let phoenix_market = load_with_dispatch(&market_header.market_size_params, market_bytes) .unwrap() .inner; - let registered_traders = market.get_registered_traders(); + let registered_traders = phoenix_market.get_registered_traders(); println!("Capacity: {:?}", registered_traders.capacity()); println!("Length: {:?}", registered_traders.len()); @@ -268,9 +289,9 @@ async fn test_evict_seat_permissionless_succeeds_when_full_and_only_evicts_one() let unauthorized_keypair = Keypair::new(); let evict_seats = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &unauthorized_keypair.pubkey(), vec![ EvictTraderAccountBackup { @@ -298,7 +319,7 @@ async fn test_evict_seat_permissionless_succeeds_when_full_and_only_evicts_one() .unwrap(); // Assert that trader one was evicted but trader two remains - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.get(&trader_one.user.pubkey()).is_none()); assert!(traders.get(&trader_two.user.pubkey()).is_some()); } @@ -309,17 +330,16 @@ async fn test_evict_seat_fails_on_designated_market_maker() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; + let meta = sdk.get_market_metadata(&market).await.unwrap(); // Add seat for trader let trader = Pubkey::new_unique(); - let claim_seat = create_claim_seat_authorized_instruction( - &trader, - &sdk.active_market_key, - &sdk.client.payer.pubkey(), - ); + let claim_seat = + create_claim_seat_authorized_instruction(&trader, &market, &sdk.client.payer.pubkey()); sdk.client .sign_send_instructions(vec![claim_seat], vec![]) @@ -327,15 +347,14 @@ async fn test_evict_seat_fails_on_designated_market_maker() { .unwrap(); // Add designated MM - let add_as_mm = - create_add_dmm_instruction(&sdk.active_market_key, &sdk.client.payer.pubkey(), &trader); + let add_as_mm = create_add_dmm_instruction(&market, &sdk.client.payer.pubkey(), &trader); sdk.client .sign_send_instructions(vec![add_as_mm], vec![]) .await .unwrap(); - let (seat_manager_address, _) = get_seat_manager_address(&sdk.active_market_key); + let (seat_manager_address, _) = get_seat_manager_address(&market); let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -347,9 +366,9 @@ async fn test_evict_seat_fails_on_designated_market_maker() { // Evict seats for dmm - should fail let evict_seat = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), vec![EvictTraderAccountBackup { trader_pubkey: trader, @@ -363,7 +382,7 @@ async fn test_evict_seat_fails_on_designated_market_maker() { .await .unwrap(); - let (seat_manager_address, _) = get_seat_manager_address(&sdk.active_market_key); + let (seat_manager_address, _) = get_seat_manager_address(&market); let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -378,14 +397,22 @@ async fn test_evict_seat_fails_on_designated_market_maker() { async fn test_evict_seat_refunds_claim_seat_deposit() { let PhoenixTestClient { ctx: _, + market, sdk, mint_authority, } = bootstrap_default(5).await; - let trader = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint) - .await - .user; - let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &sdk.active_market_key); + let meta = sdk.get_market_metadata(&market).await.unwrap(); + + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await + .user; + let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &market); sdk.client .sign_send_instructions(vec![claim_seat_ix], vec![&trader]) @@ -400,9 +427,9 @@ async fn test_evict_seat_refunds_claim_seat_deposit() { .unwrap() .lamports; let evict_seat_ix = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), vec![EvictTraderAccountBackup { trader_pubkey: trader.pubkey(), @@ -421,8 +448,7 @@ async fn test_evict_seat_refunds_claim_seat_deposit() { ) .await .unwrap(); - let seat_deposit_collector_address = - get_seat_deposit_collector_address(&sdk.active_market_key).0; + let seat_deposit_collector_address = get_seat_deposit_collector_address(&market).0; assert!(sdk .client @@ -450,13 +476,21 @@ async fn test_evict_seat_no_refunds_if_trader_closes_ata() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority, } = bootstrap_default(5).await; - let trader = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint) - .await - .user; - let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &sdk.active_market_key); + let meta = sdk.get_market_metadata(&market).await.unwrap(); + + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await + .user; + let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &market); sdk.client .sign_send_instructions(vec![claim_seat_ix], vec![&trader]) @@ -464,7 +498,7 @@ async fn test_evict_seat_no_refunds_if_trader_closes_ata() { .unwrap(); // Close trader ata. Must burn all tokens first - let base_ata = get_associated_token_address(&trader.pubkey(), &sdk.base_mint); + let base_ata = get_associated_token_address(&trader.pubkey(), &meta.base_mint); let base_amount = spl_token::state::Account::unpack_from_slice( sdk.client .get_account_data(&base_ata) @@ -477,14 +511,14 @@ async fn test_evict_seat_no_refunds_if_trader_closes_ata() { let base_burn_ix = burn( &spl_token::id(), &base_ata, - &sdk.base_mint, + &meta.base_mint, &trader.pubkey(), &[&trader.pubkey()], base_amount, ) .unwrap(); - let quote_ata = get_associated_token_address(&trader.pubkey(), &sdk.quote_mint); + let quote_ata = get_associated_token_address(&trader.pubkey(), &meta.quote_mint); let quote_amount = spl_token::state::Account::unpack_from_slice( sdk.client .get_account_data("e_ata) @@ -498,7 +532,7 @@ async fn test_evict_seat_no_refunds_if_trader_closes_ata() { let quote_burn_ix = burn( &spl_token::id(), "e_ata, - &sdk.quote_mint, + &meta.quote_mint, &trader.pubkey(), &[&trader.pubkey()], quote_amount, @@ -542,9 +576,9 @@ async fn test_evict_seat_no_refunds_if_trader_closes_ata() { .lamports; let evict_seat_ix = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), vec![EvictTraderAccountBackup { trader_pubkey: trader.pubkey(), @@ -565,8 +599,7 @@ async fn test_evict_seat_no_refunds_if_trader_closes_ata() { .unwrap(); // Seat deposit collector should have no more lamports, due to using deposit to create ATAs - let seat_deposit_collector_address = - get_seat_deposit_collector_address(&sdk.active_market_key).0; + let seat_deposit_collector_address = get_seat_deposit_collector_address(&market).0; assert!(sdk .client .get_account(&seat_deposit_collector_address) @@ -588,13 +621,21 @@ async fn test_evict_seat_change_ata_owners_uses_backup_token_accounts() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority, } = bootstrap_default(5).await; - let trader = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint) - .await - .user; - let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &sdk.active_market_key); + let meta = sdk.get_market_metadata(&market).await.unwrap(); + + let trader = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await + .user; + let claim_seat_ix = create_claim_seat_instruction(&trader.pubkey(), &market); sdk.client .sign_send_instructions(vec![claim_seat_ix], vec![&trader]) @@ -603,7 +644,7 @@ async fn test_evict_seat_change_ata_owners_uses_backup_token_accounts() { // Change ATA owners let new_owner = Pubkey::new_unique(); - let base_ata = get_associated_token_address(&trader.pubkey(), &sdk.base_mint); + let base_ata = get_associated_token_address(&trader.pubkey(), &meta.base_mint); let change_owner = spl_token::instruction::set_authority( &spl_token::id(), &base_ata, @@ -614,7 +655,7 @@ async fn test_evict_seat_change_ata_owners_uses_backup_token_accounts() { ) .unwrap(); - let quote_ata = get_associated_token_address(&trader.pubkey(), &sdk.quote_mint); + let quote_ata = get_associated_token_address(&trader.pubkey(), &meta.quote_mint); let quote_change_owner = spl_token::instruction::set_authority( &spl_token::id(), "e_ata, @@ -643,7 +684,7 @@ async fn test_evict_seat_change_ata_owners_uses_backup_token_accounts() { let create_backup_base_token = spl_token::instruction::initialize_account3( &spl_token::id(), &new_base_token_account.pubkey(), - &sdk.base_mint, + &meta.base_mint, &trader.pubkey(), ) .unwrap(); @@ -658,7 +699,7 @@ async fn test_evict_seat_change_ata_owners_uses_backup_token_accounts() { let create_backup_quote_token = spl_token::instruction::initialize_account3( &spl_token::id(), &new_quote_token_account.pubkey(), - &sdk.quote_mint, + &meta.quote_mint, &trader.pubkey(), ); @@ -697,9 +738,9 @@ async fn test_evict_seat_change_ata_owners_uses_backup_token_accounts() { // Evict seat with backup token accounts let evict_seat_ix = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), vec![EvictTraderAccountBackup { trader_pubkey: trader.pubkey(), @@ -733,8 +774,7 @@ async fn test_evict_seat_change_ata_owners_uses_backup_token_accounts() { .unwrap() .lamports; - let seat_deposit_collector_address = - get_seat_deposit_collector_address(&sdk.active_market_key).0; + let seat_deposit_collector_address = get_seat_deposit_collector_address(&market).0; // Seat deposit collector account should be empty after refunding signer for creation of backup accounts assert!(sdk diff --git a/tests/test_name_market_authority_successor.rs b/tests/test_name_market_authority_successor.rs index 911c38f..29a764c 100644 --- a/tests/test_name_market_authority_successor.rs +++ b/tests/test_name_market_authority_successor.rs @@ -1,8 +1,8 @@ use std::mem::size_of; -use ellipsis_client::program_test::*; use phoenix::program::*; use phoenix_seat_manager::instruction_builders::create_name_market_authority_successor_instruction; +use solana_program_test::*; use solana_sdk::pubkey::Pubkey; use solana_sdk::signature::Keypair; @@ -14,13 +14,18 @@ use crate::setup::init::PhoenixTestClient; #[tokio::test] async fn test_name_market_authority_successor() { - let PhoenixTestClient { ctx: _, sdk, .. } = bootstrap_default(0).await; + let PhoenixTestClient { + ctx: _, + sdk, + market, + .. + } = bootstrap_default(0).await; // Create seat manager instruction to name market authority successor let successor = Pubkey::new_unique(); let name_market_authority_successor_ix = create_name_market_authority_successor_instruction( - &sdk.active_market_key, + &market, &sdk.client.payer.pubkey(), &successor, ); @@ -35,11 +40,7 @@ async fn test_name_market_authority_successor() { .unwrap(); // Verify that the market authority successor is set to the new keypair - let market_account_data = sdk - .client - .get_account_data(&sdk.active_market_key) - .await - .unwrap(); + let market_account_data = sdk.client.get_account_data(&market).await.unwrap(); let (header_bytes, _bytes) = market_account_data.split_at(size_of::()); let header = bytemuck::try_from_bytes::(header_bytes).unwrap(); @@ -50,14 +51,19 @@ async fn test_name_market_authority_successor() { #[tokio::test] async fn test_name_market_authority_unauthorized_seat_authority_signed() { // Same setup as test_name_market_authority_successor except authority is not the payer not a random pubkey - let PhoenixTestClient { ctx: _, sdk, .. } = bootstrap_default(0).await; + let PhoenixTestClient { + ctx: _, + sdk, + market, + .. + } = bootstrap_default(0).await; // Create seat manager instruction to name market authority successor let successor = Pubkey::new_unique(); let incorrect_authority = Keypair::new(); let name_market_authority_successor_ix = create_name_market_authority_successor_instruction( - &sdk.active_market_key, + &market, &incorrect_authority.pubkey(), &successor, ); diff --git a/tests/test_name_seat_manager_successor.rs b/tests/test_name_seat_manager_successor.rs index f7d86ca..f79ee4d 100644 --- a/tests/test_name_seat_manager_successor.rs +++ b/tests/test_name_seat_manager_successor.rs @@ -15,6 +15,7 @@ async fn test_name_seat_manager_successor_happy_path() { let PhoenixTestClient { ctx: _, sdk, + market, mint_authority: _, } = bootstrap_default(5).await; @@ -22,7 +23,7 @@ async fn test_name_seat_manager_successor_happy_path() { let name_successor_ix = create_name_seat_manager_successor_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &successor, ); @@ -31,7 +32,7 @@ async fn test_name_seat_manager_successor_happy_path() { .await .unwrap(); - let (seat_manager_address, _) = get_seat_manager_address(&sdk.active_market_key); + let (seat_manager_address, _) = get_seat_manager_address(&market); let seat_manager_data = sdk .client .get_account_data(&seat_manager_address) @@ -47,6 +48,7 @@ async fn test_name_seat_manager_sucesssor_fails_if_authority_not_signer_or_autho let PhoenixTestClient { ctx: _, mut sdk, + market, mint_authority: _, } = bootstrap_default(5).await; @@ -57,11 +59,8 @@ async fn test_name_seat_manager_sucesssor_fails_if_authority_not_signer_or_autho .unwrap(); // Fails if authority mismatch with seat manager account (real authority is sdk.client.pubkey) - let name_successor_ix = create_name_seat_manager_successor_instruction( - &unauthorized.pubkey(), - &sdk.active_market_key, - &successor, - ); + let name_successor_ix = + create_name_seat_manager_successor_instruction(&unauthorized.pubkey(), &market, &successor); assert!(sdk .client @@ -72,7 +71,7 @@ async fn test_name_seat_manager_sucesssor_fails_if_authority_not_signer_or_autho // Fails if authority is not a signer let mut name_successor_ix = create_name_seat_manager_successor_instruction( &sdk.client.payer.pubkey(), - &sdk.active_market_key, + &market, &successor, ); diff --git a/tests/test_seat_manager.rs b/tests/test_seat_manager.rs index c4faa8a..75d66b0 100644 --- a/tests/test_seat_manager.rs +++ b/tests/test_seat_manager.rs @@ -1,4 +1,3 @@ -use ellipsis_client::program_test::*; use phoenix::program::create_deposit_funds_instruction; use phoenix::program::deposit::DepositParams; use phoenix_seat_manager::instruction_builders::create_claim_seat_instruction; @@ -7,6 +6,7 @@ use phoenix_seat_manager::instruction_builders::EvictTraderAccountBackup; use rand::seq::IteratorRandom; use rand::thread_rng; use solana_program::system_instruction; +use solana_program_test::*; use solana_sdk::compute_budget::ComputeBudgetInstruction; use solana_sdk::signature::{Keypair, Signer}; @@ -25,17 +25,25 @@ async fn test_seat_manager() { let PhoenixTestClient { ctx, sdk, + market, mint_authority, } = bootstrap_default(0).await; + let meta = sdk.get_market_metadata(&market).await.unwrap(); // Create 30 let mut market_traders = vec![]; for i in 0..NUM_SEATS { - let t = setup_account(&sdk.client, &mint_authority, sdk.base_mint, sdk.quote_mint).await; + let t = setup_account( + &sdk.client, + &mint_authority, + meta.base_mint, + meta.quote_mint, + ) + .await; airdrop(&sdk.client, &t.user.pubkey(), 100_000_000) .await .unwrap(); if i % 100 == 0 { - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.len() == i); let mut rng = thread_rng(); let sample = traders @@ -56,9 +64,9 @@ async fn test_seat_manager() { 1781760, ), create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &t.user.pubkey(), sample, ), @@ -69,16 +77,16 @@ async fn test_seat_manager() { .unwrap(); // Can't evict a seat while the market is not full - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.len() == i); println!("Created {} traders", i); } let deposit_ix = create_deposit_funds_instruction( - &sdk.active_market_key, + &market, &t.user.pubkey(), - &sdk.base_mint, - &sdk.quote_mint, + &meta.base_mint, + &meta.quote_mint, &DepositParams { quote_lots_to_deposit: 1, base_lots_to_deposit: 1, @@ -95,16 +103,16 @@ async fn test_seat_manager() { spl_associated_token_account::instruction::create_associated_token_account_idempotent( &sdk.client.payer.pubkey(), &t.user.pubkey(), - &sdk.base_mint, + &meta.base_mint, &spl_token::id(), ), spl_associated_token_account::instruction::create_associated_token_account_idempotent( &sdk.client.payer.pubkey(), &t.user.pubkey(), - &sdk.quote_mint, + &meta.quote_mint, &spl_token::id(), ), - create_claim_seat_instruction(&t.user.pubkey(), &sdk.active_market_key), + create_claim_seat_instruction(&t.user.pubkey(), &market), deposit_ix, ], vec![&sdk.client.payer, &t.user], @@ -115,7 +123,7 @@ async fn test_seat_manager() { } let t = Keypair::new(); - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.len() == NUM_SEATS); let mut rng = thread_rng(); let sample = traders @@ -129,9 +137,9 @@ async fn test_seat_manager() { // Can evict at most 1 seat when the market is full let evict_seat_ix = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &t.pubkey(), sample, ); @@ -145,7 +153,7 @@ async fn test_seat_manager() { ) .await .unwrap(); - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); assert!(traders.len() == NUM_SEATS - 1); // Seat manager authority can evict multiple seats @@ -158,9 +166,9 @@ async fn test_seat_manager() { }) .choose_multiple(&mut rng, 3); let evict_seat_ix = create_evict_seat_instruction( - &sdk.active_market_key, - &sdk.base_mint, - &sdk.quote_mint, + &market, + &meta.base_mint, + &meta.quote_mint, &sdk.client.payer.pubkey(), sample, ); @@ -175,6 +183,7 @@ async fn test_seat_manager() { ) .await .unwrap(); - let traders = sdk.get_traders().await; + let traders = sdk.get_traders_with_market_key(&market).await.unwrap(); + assert!(traders.len() == NUM_SEATS - 4); }