From 64617f4e7000a6fbfddea3c3db05e8e8faf9d39e Mon Sep 17 00:00:00 2001 From: jordy25519 Date: Tue, 11 Mar 2025 12:12:08 +0800 Subject: [PATCH 1/3] bump deps: anchor-lang => 0.31, solana crates => 2.1.x --- Cargo.lock | 2993 +++++++++++++++++++------- Cargo.toml | 16 +- crates/drift-idl-gen/Cargo.toml | 2 +- crates/drift-idl-gen/src/lib.rs | 6 +- crates/pubsub-client/Cargo.toml | 9 +- crates/pubsub-client/src/lib.rs | 16 +- crates/src/drift_idl.rs | 828 +++---- crates/src/event_subscriber.rs | 2 +- crates/src/jit_client.rs | 4 +- crates/src/swift_order_subscriber.rs | 12 +- 10 files changed, 2665 insertions(+), 1223 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1fb3f759..9fa7d4e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,17 +109,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "ahash" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" -dependencies = [ - "getrandom 0.2.15", - "once_cell", - "version_check", -] - [[package]] name = "ahash" version = "0.8.11" @@ -130,7 +119,7 @@ dependencies = [ "getrandom 0.2.15", "once_cell", "version_check", - "zerocopy", + "zerocopy 0.7.35", ] [[package]] @@ -159,9 +148,9 @@ dependencies = [ [[package]] name = "anchor-attribute-access-control" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47fe28365b33e8334dd70ae2f34a43892363012fe239cf37d2ee91693575b1f8" +checksum = "37013051defd745a5437d6842bd404e5480e14ad4e4f0441dd9a81a4b9aea1d6" dependencies = [ "anchor-syn", "proc-macro2", @@ -171,12 +160,12 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c288d496168268d198d9b53ee9f4f9d260a55ba4df9877ea1d4486ad6109e0f" +checksum = "92db0f793e924e18462b3fac53c5759a8248649a8072788b5e88a4af714998c8" dependencies = [ "anchor-syn", - "bs58 0.5.1", + "bs58", "proc-macro2", "quote", "syn 1.0.109", @@ -184,9 +173,9 @@ dependencies = [ [[package]] name = "anchor-attribute-constant" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b77b6948d0eeaaa129ce79eea5bbbb9937375a9241d909ca8fb9e006bb6e90" +checksum = "7a98126ebfc96d6248899caadc9ea7c2403420c4f5c994e541802bce9f423674" dependencies = [ "anchor-syn", "quote", @@ -195,9 +184,9 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d20bb569c5a557c86101b944721d865e1fd0a4c67c381d31a44a84f07f84828" +checksum = "f8a4dcb403f872fbcd0910fc39a3e05bb6c43a8399f915a1878e62eb680fbb23" dependencies = [ "anchor-syn", "quote", @@ -206,9 +195,9 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cebd8d0671a3a9dc3160c48598d652c34c77de6be4d44345b8b514323284d57" +checksum = "420d651b2703ccff86f6c4b7c394140cb85049787c078a5f8280506121d48065" dependencies = [ "anchor-syn", "proc-macro2", @@ -218,14 +207,14 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb2a5eb0860e661ab31aff7bb5e0288357b176380e985bade4ccb395981b42d" +checksum = "d258f3a9f47db7f4199888df0ee67e42b960a7acb8f5c336b585d4eb243b9665" dependencies = [ "anchor-lang-idl", "anchor-syn", "anyhow", - "bs58 0.5.1", + "bs58", "heck", "proc-macro2", "quote", @@ -235,9 +224,9 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04368b5abef4266250ca8d1d12f4dff860242681e4ec22b885dcfe354fd35aa1" +checksum = "097147501de51105d8dbdad9bd5a96a1b17ecbb2cee9f200d6167031372eab3b" dependencies = [ "anchor-syn", "quote", @@ -246,12 +235,12 @@ dependencies = [ [[package]] name = "anchor-derive-serde" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0bb0e0911ad4a70cab880cdd6287fe1e880a1a9d8e4e6defa8e9044b9796a6c" +checksum = "d5a24721da4ed67f0a1391cac27ea7e51c255cbd94cdcc6728a0aa56227628d0" dependencies = [ "anchor-syn", - "borsh-derive-internal 0.10.4", + "borsh-derive-internal", "proc-macro2", "quote", "syn 1.0.109", @@ -259,9 +248,9 @@ dependencies = [ [[package]] name = "anchor-derive-space" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef415ff156dc82e9ecb943189b0cb241b3a6bfc26a180234dc21bd3ef3ce0cb" +checksum = "f41986f84d238a2f7a807f3a98da5df0e97ebe23f29f7d67b8cdd4fd80bc1ba1" dependencies = [ "proc-macro2", "quote", @@ -270,9 +259,9 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6620c9486d9d36a4389cab5e37dc34a42ed0bfaa62e6a75a2999ce98f8f2e373" +checksum = "eba81a0543fee1b7b610fe9ebedbae6a14e8d3e85a6a6dd48871d48a08880195" dependencies = [ "anchor-attribute-access-control", "anchor-attribute-account", @@ -283,21 +272,19 @@ dependencies = [ "anchor-derive-accounts", "anchor-derive-serde", "anchor-derive-space", - "arrayref", "base64 0.21.7", "bincode", "borsh 0.10.4", "bytemuck", - "getrandom 0.2.15", - "solana-program 1.18.26", - "thiserror", + "solana-program", + "thiserror 1.0.69", ] [[package]] name = "anchor-lang-idl" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31cf97b4e6f7d6144a05e435660fcf757dbc3446d38d0e2b851d11ed13625bba" +checksum = "32e8599d21995f68e296265aa5ab0c3cef582fd58afec014d01bd0bce18a4418" dependencies = [ "anchor-lang-idl-spec", "anyhow", @@ -319,12 +306,12 @@ dependencies = [ [[package]] name = "anchor-syn" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f99daacb53b55cfd37ce14d6c9905929721137fd4c67bbab44a19802aecb622f" +checksum = "564685b759db12a2424d1b2688cfdf0fec26a023813bc461274754fb0e5d97b0" dependencies = [ "anyhow", - "bs58 0.5.1", + "bs58", "heck", "proc-macro2", "quote", @@ -332,7 +319,7 @@ dependencies = [ "serde_json", "sha2 0.10.8", "syn 1.0.109", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -553,12 +540,6 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eab1c04a571841102f5345a8fc0f6bb3d31c315dec879b5c6e42e40ce7ffa34e" -[[package]] -name = "assert_matches" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" - [[package]] name = "async-compression" version = "0.4.20" @@ -581,7 +562,18 @@ checksum = "d556ec1359574147ec0c4fc5eb525f3f23263a592b1a9c07e0a75b427de55c97" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", +] + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", ] [[package]] @@ -647,15 +639,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bitmaps" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" -dependencies = [ - "typenum", -] - [[package]] name = "blake3" version = "1.6.1" @@ -676,7 +659,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ - "block-padding", "generic-array", ] @@ -689,22 +671,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "block-padding" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" - -[[package]] -name = "borsh" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15bf3650200d8bffa99015595e10f1fbd17de07abbc25bb067da79e769939bfa" -dependencies = [ - "borsh-derive 0.9.3", - "hashbrown 0.11.2", -] - [[package]] name = "borsh" version = "0.10.4" @@ -725,27 +691,14 @@ dependencies = [ "cfg_aliases", ] -[[package]] -name = "borsh-derive" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775" -dependencies = [ - "borsh-derive-internal 0.9.3", - "borsh-schema-derive-internal 0.9.3", - "proc-macro-crate 0.1.5", - "proc-macro2", - "syn 1.0.109", -] - [[package]] name = "borsh-derive" version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "831213f80d9423998dd696e2c5345aba6be7a0bd8cd19e31c5243e13df1cef89" dependencies = [ - "borsh-derive-internal 0.10.4", - "borsh-schema-derive-internal 0.10.4", + "borsh-derive-internal", + "borsh-schema-derive-internal", "proc-macro-crate 0.1.5", "proc-macro2", "syn 1.0.109", @@ -758,21 +711,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8b668d39970baad5356d7c83a86fee3a539e6f93bf6764c97368243e17a0487" dependencies = [ "once_cell", - "proc-macro-crate 3.2.0", - "proc-macro2", - "quote", - "syn 2.0.99", -] - -[[package]] -name = "borsh-derive-internal" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5449c28a7b352f2d1e592a8a28bf139bc71afb0764a14f3c02500935d8c44065" -dependencies = [ + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.100", ] [[package]] @@ -786,17 +728,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "borsh-schema-derive-internal" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdbd5696d8bfa21d53d9fe39a714a18538bad11492a42d066dbbc395fb1951c0" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "borsh-schema-derive-internal" version = "0.10.4" @@ -829,12 +760,6 @@ dependencies = [ "alloc-stdlib", ] -[[package]] -name = "bs58" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" - [[package]] name = "bs58" version = "0.5.1" @@ -877,7 +802,7 @@ checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -888,9 +813,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" +checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" [[package]] name = "cc" @@ -915,6 +840,17 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "cfg_eval" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45565fc9416b9896014f5732ac776f810ee53a66730c17e4020c3ec064a8f88f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.100", +] + [[package]] name = "chrono" version = "0.4.40" @@ -1053,15 +989,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossbeam-channel" -version = "0.5.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ba6d68e24814cb8de6bb986db8222d3a027d15872cabc0d18817bc3c0e4471" -dependencies = [ - "crossbeam-utils", -] - [[package]] name = "crossbeam-deque" version = "0.8.6" @@ -1125,18 +1052,46 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "3.2.1" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0" +checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" dependencies = [ "byteorder", "digest 0.9.0", "rand_core 0.5.1", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rand_core 0.6.4", + "rustc_version", "serde", "subtle", "zeroize", ] +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.100", +] + [[package]] name = "darling" version = "0.20.10" @@ -1158,7 +1113,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -1169,7 +1124,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -1237,19 +1192,19 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] name = "drift-idl-gen" -version = "0.1.3" +version = "0.1.4" dependencies = [ "proc-macro2", "quote", "serde", "serde_json", "sha2 0.10.8", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -1264,7 +1219,7 @@ dependencies = [ "solana-account-decoder", "solana-rpc-client-api", "solana-sdk", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "tokio-tungstenite", @@ -1276,7 +1231,7 @@ name = "drift-rs" version = "1.0.0-alpha.11" dependencies = [ "abi_stable", - "ahash 0.8.11", + "ahash", "anchor-lang", "base64 0.22.1", "bytemuck", @@ -1284,7 +1239,7 @@ dependencies = [ "dashmap", "drift-idl-gen", "drift-pubsub-client", - "env_logger", + "env_logger 0.11.7", "futures-util", "hex", "hex-literal", @@ -1298,11 +1253,11 @@ dependencies = [ "solana-rpc-client-api", "solana-sdk", "solana-transaction-status", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "tokio-tungstenite", - "toml", + "toml 0.8.20", ] [[package]] @@ -1326,7 +1281,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 3.2.0", "ed25519", "rand 0.7.3", "serde", @@ -1348,9 +1303,9 @@ dependencies = [ [[package]] name = "either" -version = "1.14.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7914353092ddf589ad78f25c5c1c21b7f80b0ff8621e7c814c3485b5306da9d" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "encode_unicode" @@ -1384,7 +1339,7 @@ checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -1399,14 +1354,27 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.6" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "env_logger" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcaee3d8e3cfc3fd92428d477bc97fc29ec8716d180c0d74c643bb26166660e0" +checksum = "c3716d7a920fb4fac5d84e9d4bce8ceb321e9414b4409da61b07b75c1e3d0697" dependencies = [ "anstream", "anstyle", "env_filter", - "humantime", + "jiff", "log", ] @@ -1438,6 +1406,27 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "five8_const" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b4f62f0f8ca357f93ae90c8c2dd1041a1f665fde2f889ea9b1787903829015" +dependencies = [ + "five8_core", +] + +[[package]] +name = "five8_core" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94474d15a76982be62ca8a39570dccce148d98c238ebb7408b0a21b2c4bdddc4" + [[package]] name = "flate2" version = "1.1.0" @@ -1534,7 +1523,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -1582,21 +1571,10 @@ version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ - "serde", "typenum", "version_check", ] -[[package]] -name = "gethostname" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "getrandom" version = "0.1.16" @@ -1647,17 +1625,6 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43503cc176394dd30a6525f5f36e838339b8b5619be33ed9a7783841580a97b6" -[[package]] -name = "goblin" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7666983ed0dd8d21a6f6576ee00053ca0926fb281a5522577a4dbd0f1b54143" -dependencies = [ - "log", - "plain", - "scroll", -] - [[package]] name = "h2" version = "0.3.26" @@ -1669,7 +1636,7 @@ dependencies = [ "futures-core", "futures-sink", "futures-util", - "http", + "http 0.2.12", "indexmap", "slab", "tokio", @@ -1686,22 +1653,13 @@ dependencies = [ "byteorder", ] -[[package]] -name = "hashbrown" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" -dependencies = [ - "ahash 0.7.8", -] - [[package]] name = "hashbrown" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.11", + "ahash", ] [[package]] @@ -1725,6 +1683,15 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + [[package]] name = "hex" version = "0.4.3" @@ -1778,6 +1745,17 @@ dependencies = [ "itoa", ] +[[package]] +name = "http" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + [[package]] name = "http-body" version = "0.4.6" @@ -1785,7 +1763,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", - "http", + "http 0.2.12", "pin-project-lite", ] @@ -1818,7 +1796,7 @@ dependencies = [ "futures-core", "futures-util", "h2", - "http", + "http 0.2.12", "http-body", "httparse", "httpdate", @@ -1838,7 +1816,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", - "http", + "http 0.2.12", "hyper", "rustls", "tokio", @@ -1983,7 +1961,7 @@ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -2013,27 +1991,11 @@ dependencies = [ "icu_properties", ] -[[package]] -name = "im" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" -dependencies = [ - "bitmaps", - "rand_core 0.6.4", - "rand_xoshiro", - "rayon", - "serde", - "sized-chunks", - "typenum", - "version_check", -] - [[package]] name = "indexmap" -version = "2.7.1" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" +checksum = "3954d50fe15b02142bf25d3b8bdadb634ec3948f103d04ffe3031bc8fe9d7058" dependencies = [ "equivalent", "hashbrown 0.15.2", @@ -2097,6 +2059,30 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +[[package]] +name = "jiff" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d699bc6dfc879fb1bf9bdff0d4c56f0884fc6f0d0eb0fba397a6d00cd9a6b85e" +dependencies = [ + "jiff-static", + "log", + "portable-atomic", + "portable-atomic-util", + "serde", +] + +[[package]] +name = "jiff-static" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d16e75759ee0aa64c57a56acbf43916987b20c77373cb7e808979e02b93c9f9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.100", +] + [[package]] name = "jobserver" version = "0.1.32" @@ -2210,23 +2196,11 @@ dependencies = [ "libsecp256k1-core", ] -[[package]] -name = "light-poseidon" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" -dependencies = [ - "ark-bn254", - "ark-ff", - "num-bigint 0.4.6", - "thiserror", -] - [[package]] name = "linux-raw-sys" -version = "0.4.15" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" +checksum = "6db9c683daf087dc577b7506e9695b3d556a9f3849903fa28186283afd6809e9" [[package]] name = "litemap" @@ -2392,7 +2366,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -2451,10 +2425,10 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" dependencies = [ - "proc-macro-crate 3.2.0", + "proc-macro-crate 3.3.0", "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -2474,9 +2448,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.20.3" +version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" +checksum = "cde51589ab56b20a6f686b2c68f7a0bd6add753d697abf720d63f8db3ab7b1ad" [[package]] name = "opaque-debug" @@ -2507,7 +2481,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -2557,15 +2531,6 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac", -] - [[package]] name = "pbkdf2" version = "0.11.0" @@ -2608,12 +2573,6 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" -[[package]] -name = "plain" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" - [[package]] name = "polyval" version = "0.6.2" @@ -2632,13 +2591,22 @@ version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" +[[package]] +name = "portable-atomic-util" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507" +dependencies = [ + "portable-atomic", +] + [[package]] name = "ppv-lite86" -version = "0.2.20" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" dependencies = [ - "zerocopy", + "zerocopy 0.8.23", ] [[package]] @@ -2647,14 +2615,14 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" dependencies = [ - "toml", + "toml 0.5.11", ] [[package]] name = "proc-macro-crate" -version = "3.2.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" +checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35" dependencies = [ "toml_edit", ] @@ -2710,6 +2678,17 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "rand" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3779b94aeb87e8bd4e834cee3650289ee9e0d5677f976ecdb6d219e5f4f6cd94" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.3", + "zerocopy 0.8.23", +] + [[package]] name = "rand_chacha" version = "0.2.2" @@ -2730,6 +2709,16 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.3", +] + [[package]] name = "rand_core" version = "0.5.1" @@ -2749,21 +2738,21 @@ dependencies = [ ] [[package]] -name = "rand_hc" -version = "0.2.0" +name = "rand_core" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" dependencies = [ - "rand_core 0.5.1", + "getrandom 0.3.1", ] [[package]] -name = "rand_xoshiro" -version = "0.6.0" +name = "rand_hc" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" dependencies = [ - "rand_core 0.6.4", + "rand_core 0.5.1", ] [[package]] @@ -2846,7 +2835,7 @@ dependencies = [ "futures-core", "futures-util", "h2", - "http", + "http 0.2.12", "http-body", "hyper", "hyper-rustls", @@ -2885,18 +2874,18 @@ checksum = "5a735987236a8e238bf0296c7e351b999c188ccc11477f311b82b55c93984216" dependencies = [ "anyhow", "async-trait", - "http", + "http 0.2.12", "reqwest", "serde", "task-local-extensions", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "ring" -version = "0.17.11" +version = "0.17.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da5349ae27d3887ca812fb375b45a4fbb36d8d12d2df394968cd86e35683fe73" +checksum = "70ac5d832aa16abd7d1def883a8545280c20a60f523a370aa3a9617c2b8550ee" dependencies = [ "cc", "cfg-if", @@ -2912,12 +2901,6 @@ 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.1" @@ -2929,9 +2912,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.44" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +checksum = "f7178faa4b75a30e269c71e61c353ce2748cf3d76f0c44c393f4e60abf49b825" dependencies = [ "bitflags 2.9.0", "errno", @@ -2998,26 +2981,6 @@ 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.99", -] - [[package]] name = "sct" version = "0.7.1" @@ -3059,31 +3022,40 @@ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" [[package]] name = "serde" -version = "1.0.218" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" +checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" dependencies = [ "serde_derive", ] +[[package]] +name = "serde-big-array" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11fc7cc2c76d73e0f27ee52abbd64eec84d46f370c88371120433196934e4b7f" +dependencies = [ + "serde", +] + [[package]] name = "serde_bytes" -version = "0.11.16" +version = "0.11.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "364fec0df39c49a083c9a8a18a23a6bcfd9af130fe9fe321d18520a0d113e09e" +checksum = "8437fd221bde2d4ca316d61b90e337e9e702b3820b87d63caa9ba6c02bd06d96" dependencies = [ "serde", ] [[package]] name = "serde_derive" -version = "1.0.218" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" +checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -3098,6 +3070,15 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_spanned" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -3112,24 +3093,25 @@ dependencies = [ [[package]] name = "serde_with" -version = "2.3.3" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" +checksum = "d6b6f7f2fcb69f747921f79f3926bd1e203fce4fef62c268dd3abfb6d86029aa" dependencies = [ "serde", + "serde_derive", "serde_with_macros", ] [[package]] name = "serde_with_macros" -version = "2.3.3" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" +checksum = "8d00caa5193a3c8362ac2b73be6b9e768aa5a4b2f721d8f4b339600c3cb51f8e" dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -3167,18 +3149,6 @@ dependencies = [ "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" @@ -3195,6 +3165,16 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" +[[package]] +name = "signal-hook" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" +dependencies = [ + "libc", + "signal-hook-registry", +] + [[package]] name = "signal-hook-registry" version = "1.4.2" @@ -3216,16 +3196,6 @@ 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" @@ -3251,563 +3221,1854 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "solana-account" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f949fe4edaeaea78c844023bfc1c898e0b1f5a100f8a8d2d0f85d0a7b090258" +dependencies = [ + "bincode", + "serde", + "serde_bytes", + "serde_derive", + "solana-account-info", + "solana-clock", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-sysvar", +] + [[package]] name = "solana-account-decoder" -version = "2.0.25" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53daef52ae83f42533a90511caa01cc7c9e74b4b7323353cfdf9d6c0f678eaef" +checksum = "c472eebf9ec7ee72c8d25e990a2eaf6b0b783619ef84d7954c408d6442ad5e57" dependencies = [ "Inflector", "base64 0.22.1", "bincode", - "bs58 0.5.1", + "bs58", "bv", "lazy_static", "serde", "serde_derive", "serde_json", + "solana-account", + "solana-account-decoder-client-types", + "solana-clock", "solana-config-program", - "solana-sdk", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-instruction", + "solana-nonce", + "solana-program", + "solana-program-pack", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-slot-hashes", + "solana-slot-history", + "solana-sysvar", "spl-token", - "spl-token-2022", + "spl-token-2022 7.0.0", "spl-token-group-interface", "spl-token-metadata-interface", - "thiserror", + "thiserror 2.0.12", "zstd", ] [[package]] -name = "solana-compute-budget" -version = "2.0.25" +name = "solana-account-decoder-client-types" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1cfca9ec0fd1554e06378f00139f2930a5ced9aef06e9a729384d9b8555f549" +checksum = "9b3485b583fcc58b5fa121fa0b4acb90061671fb1a9769493e8b4ad586581f47" dependencies = [ - "rustc_version", - "solana-sdk", + "base64 0.22.1", + "bs58", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-pubkey", + "zstd", ] [[package]] -name = "solana-config-program" -version = "2.0.25" +name = "solana-account-info" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbd988b44a577b8696f8ac1d019104569ee11a6ed7ebd1ad05dd7961ae1066b0" +checksum = "e0c17d606a298a205fae325489fbed88ee6dc4463c111672172327e741c8905d" dependencies = [ "bincode", - "chrono", "serde", - "serde_derive", - "solana-program-runtime", - "solana-sdk", + "solana-program-error", + "solana-program-memory", + "solana-pubkey", ] [[package]] -name = "solana-curve25519" -version = "2.0.25" +name = "solana-address-lookup-table-interface" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864508e8505a48ff523ab57f9fea3c4d25298b34e9c4d531d9681ca5ff6e85cb" +checksum = "d1673f67efe870b64a65cb39e6194be5b26527691ce5922909939961a6e6b395" dependencies = [ + "bincode", "bytemuck", - "bytemuck_derive", - "curve25519-dalek", - "solana-program 2.0.25", - "thiserror", -] - -[[package]] -name = "solana-frozen-abi" -version = "1.18.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03ab2c30c15311b511c0d1151e4ab6bc9a3e080a37e7c6e7c2d96f5784cf9434" -dependencies = [ - "block-buffer 0.10.4", - "bs58 0.4.0", - "bv", - "either", - "generic-array", - "im", - "lazy_static", - "log", - "memmap2", - "rustc_version", "serde", - "serde_bytes", "serde_derive", - "sha2 0.10.8", - "solana-frozen-abi-macro", - "subtle", - "thiserror", + "solana-clock", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-slot-hashes", ] [[package]] -name = "solana-frozen-abi-macro" -version = "1.18.26" +name = "solana-atomic-u64" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c142f779c3633ac83c84d04ff06c70e1f558c876f13358bed77ba629c7417932" +checksum = "d52e52720efe60465b052b9e7445a01c17550666beec855cce66f44766697bc2" dependencies = [ - "proc-macro2", - "quote", - "rustc_version", - "syn 2.0.99", + "parking_lot", ] [[package]] -name = "solana-inline-spl" -version = "2.0.25" +name = "solana-big-mod-exp" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "249898a382e247bdfc77da695131b39c5ee2c549bb7903b540c8250f71f11410" +checksum = "75db7f2bbac3e62cfd139065d15bcda9e2428883ba61fc8d27ccb251081e7567" dependencies = [ - "bytemuck", - "rustc_version", - "solana-sdk", + "num-bigint 0.4.6", + "num-traits", + "solana-define-syscall", ] [[package]] -name = "solana-measure" -version = "2.0.25" +name = "solana-bincode" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5043b757438d51cf02c1c501261f8ef757f638aebeb7a2c3b4138d14c2ab9013" +checksum = "19a3787b8cf9c9fe3dd360800e8b70982b9e5a8af9e11c354b6665dd4a003adc" dependencies = [ - "log", - "solana-sdk", + "bincode", + "serde", + "solana-instruction", ] [[package]] -name = "solana-metrics" -version = "2.0.25" +name = "solana-blake3-hasher" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93eaffc1528f7fd599c71090773460d2cba0556a351e2ed5343b6aeb7c965209" +checksum = "a1a0801e25a1b31a14494fc80882a036be0ffd290efc4c2d640bfcca120a4672" dependencies = [ - "crossbeam-channel", - "gethostname", - "lazy_static", - "log", - "reqwest", - "solana-sdk", - "thiserror", + "blake3", + "solana-define-syscall", + "solana-hash", + "solana-sanitize", ] [[package]] -name = "solana-program" -version = "1.18.26" +name = "solana-bn254" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c10f4588cefd716b24a1a40dd32c278e43a560ab8ce4de6b5805c9d113afdfa1" +checksum = "9abc69625158faaab02347370b91c0d8e0fe347bf9287239f0fbe8f5864d91da" dependencies = [ "ark-bn254", "ark-ec", "ark-ff", "ark-serialize", - "base64 0.21.7", - "bincode", - "bitflags 2.9.0", - "blake3", - "borsh 0.10.4", - "borsh 0.9.3", - "borsh 1.5.5", - "bs58 0.4.0", - "bv", "bytemuck", - "cc", - "console_error_panic_hook", - "console_log", - "curve25519-dalek", - "getrandom 0.2.15", - "itertools 0.10.5", - "js-sys", - "lazy_static", - "libc", - "libsecp256k1", - "light-poseidon", - "log", - "memoffset", - "num-bigint 0.4.6", - "num-derive", - "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 1.18.26", - "thiserror", - "tiny-bip39", - "wasm-bindgen", - "zeroize", + "solana-define-syscall", + "thiserror 2.0.12", ] [[package]] -name = "solana-program" -version = "2.0.25" +name = "solana-borsh" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edfc9d51ff9264b62e316197ae3512278406b332ea2c63427dd69a26a3467fd4" +checksum = "718333bcd0a1a7aed6655aa66bef8d7fb047944922b2d3a18f49cbc13e73d004" dependencies = [ - "ark-bn254", - "ark-ec", - "ark-ff", - "ark-serialize", - "base64 0.22.1", - "bincode", - "bitflags 2.9.0", - "blake3", "borsh 0.10.4", "borsh 1.5.5", - "bs58 0.5.1", - "bv", - "bytemuck", - "bytemuck_derive", - "console_error_panic_hook", - "console_log", - "curve25519-dalek", - "getrandom 0.2.15", - "js-sys", - "lazy_static", - "libsecp256k1", - "log", - "memoffset", - "num-bigint 0.4.6", - "num-derive", - "num-traits", - "parking_lot", - "rand 0.8.5", - "rustc_version", - "rustversion", - "serde", - "serde_bytes", - "serde_derive", - "sha2 0.10.8", - "sha3 0.10.8", - "solana-sdk-macro 2.0.25", - "thiserror", - "wasm-bindgen", ] [[package]] -name = "solana-program-runtime" -version = "2.0.25" +name = "solana-client-traits" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34dca89ad99351a625ba6c297383b6ab04164c700b842f5564b58a806624485f" +checksum = "83f0071874e629f29e0eb3dab8a863e98502ac7aba55b7e0df1803fc5cac72a7" +dependencies = [ + "solana-account", + "solana-commitment-config", + "solana-epoch-info", + "solana-hash", + "solana-instruction", + "solana-keypair", + "solana-message", + "solana-pubkey", + "solana-signature", + "solana-signer", + "solana-system-interface", + "solana-transaction", + "solana-transaction-error", +] + +[[package]] +name = "solana-clock" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c2177a1b9fe8326004f1151a5acd124420b737811080b1035df31349e4d892" dependencies = [ - "base64 0.22.1", - "bincode", - "eager", - "enum-iterator", - "itertools 0.12.1", - "libc", - "log", - "num-derive", - "num-traits", - "percentage", - "rand 0.8.5", - "rustc_version", "serde", - "solana-compute-budget", - "solana-measure", - "solana-metrics", - "solana-sdk", - "solana-type-overrides", - "solana-vote", - "solana_rbpf", - "thiserror", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", ] [[package]] -name = "solana-rpc-client" -version = "2.0.25" +name = "solana-cluster-type" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d0fe46a77023e6127400b83cd3b96ce189b704331284d0c2540acfc76c241f1" +checksum = "7ace9fea2daa28354d107ea879cff107181d85cd4e0f78a2bedb10e1a428c97e" dependencies = [ - "async-trait", - "base64 0.22.1", - "bincode", - "bs58 0.5.1", - "indicatif", - "log", - "reqwest", - "reqwest-middleware", - "semver", "serde", "serde_derive", - "serde_json", - "solana-account-decoder", - "solana-rpc-client-api", - "solana-sdk", - "solana-transaction-status", - "solana-version", - "solana-vote-program", - "tokio", + "solana-hash", ] [[package]] -name = "solana-rpc-client-api" -version = "2.0.25" +name = "solana-commitment-config" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49a9ecb6a43cffa504ac83b083b11d8b66d392e909c297b0d3bd9bb7b844cc4f" +checksum = "ac49c4dde3edfa832de1697e9bcdb7c3b3f7cb7a1981b7c62526c8bb6700fb73" dependencies = [ - "anyhow", - "base64 0.22.1", - "bs58 0.5.1", - "jsonrpc-core", - "reqwest", - "reqwest-middleware", - "semver", "serde", "serde_derive", - "serde_json", - "solana-account-decoder", - "solana-inline-spl", - "solana-sdk", - "solana-transaction-status", - "solana-version", - "thiserror", ] [[package]] -name = "solana-sdk" -version = "2.0.25" +name = "solana-compute-budget" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0317d412207639326f2393c935769d2d7429d0882d509d0dca8dc0bb55aca6a1" +checksum = "eab40b24943ca51f1214fcf7979807640ea82a8387745f864cf3cd93d1337b01" dependencies = [ - "bincode", - "bitflags 2.9.0", - "borsh 1.5.5", - "bs58 0.5.1", - "bytemuck", - "bytemuck_derive", - "byteorder", + "solana-fee-structure", + "solana-program-entrypoint", +] + +[[package]] +name = "solana-compute-budget-interface" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a5df17b195d312b66dccdde9beec6709766d8230cb4718c4c08854f780d0309" +dependencies = [ + "borsh 1.5.5", + "serde", + "serde_derive", + "solana-instruction", + "solana-sdk-ids", +] + +[[package]] +name = "solana-config-program" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ab5647203179631940e0659a635e5d3f514ba60f6457251f8f8fbf3830e56b0" +dependencies = [ + "bincode", "chrono", + "serde", + "serde_derive", + "solana-account", + "solana-bincode", + "solana-instruction", + "solana-log-collector", + "solana-packet", + "solana-program-runtime", + "solana-pubkey", + "solana-sdk-ids", + "solana-short-vec", + "solana-stake-interface", + "solana-system-interface", + "solana-transaction-context", +] + +[[package]] +name = "solana-cpi" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc71126edddc2ba014622fc32d0f5e2e78ec6c5a1e0eb511b85618c09e9ea11" +dependencies = [ + "solana-account-info", + "solana-define-syscall", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-stable-layout", +] + +[[package]] +name = "solana-curve25519" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f213e3a853a23814dee39d730cd3a5583b7b1e6b37b2cd4d940bbe62df7acc16" +dependencies = [ + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "solana-define-syscall", + "subtle", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-decode-error" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a6a6383af236708048f8bd8d03db8ca4ff7baf4a48e5d580f4cce545925470" +dependencies = [ + "num-traits", +] + +[[package]] +name = "solana-define-syscall" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf784bb2cb3e02cac9801813c30187344228d2ae952534902108f6150573a33d" + +[[package]] +name = "solana-derivation-path" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "939756d798b25c5ec3cca10e06212bdca3b1443cb9bb740a38124f58b258737b" +dependencies = [ "derivation-path", - "digest 0.10.7", + "qstring", + "uriparse", +] + +[[package]] +name = "solana-ed25519-program" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0c4dfce08d71d8f1e9b7d1b4e2c7101a8109903ad481acbbc1119a73d459f2" +dependencies = [ + "bytemuck", + "bytemuck_derive", "ed25519-dalek", - "ed25519-dalek-bip32", - "generic-array", - "getrandom 0.1.16", - "hmac 0.12.1", - "itertools 0.12.1", - "js-sys", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-sdk-ids", +] + +[[package]] +name = "solana-epoch-info" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90ef6f0b449290b0b9f32973eefd95af35b01c5c0c34c569f936c34c5b20d77b" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "solana-epoch-rewards" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86b575d3dd323b9ea10bb6fe89bf6bf93e249b215ba8ed7f68f1a3633f384db7" +dependencies = [ + "serde", + "serde_derive", + "solana-hash", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-epoch-rewards-hasher" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c5fd2662ae7574810904585fd443545ed2b568dbd304b25a31e79ccc76e81b" +dependencies = [ + "siphasher", + "solana-hash", + "solana-pubkey", +] + +[[package]] +name = "solana-epoch-schedule" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fce071fbddecc55d727b1d7ed16a629afe4f6e4c217bc8d00af3b785f6f67ed" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-example-mocks" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84461d56cbb8bb8d539347151e0525b53910102e4bced875d49d5139708e39d3" +dependencies = [ + "serde", + "serde_derive", + "solana-address-lookup-table-interface", + "solana-clock", + "solana-hash", + "solana-instruction", + "solana-keccak-hasher", + "solana-message", + "solana-nonce", + "solana-pubkey", + "solana-sdk-ids", + "solana-system-interface", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-feature-gate-interface" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9c7fbf3e58b64a667c5f35e90af580538a95daea7001ff7806c0662d301bdf" +dependencies = [ + "bincode", + "serde", + "serde_derive", + "solana-account", + "solana-account-info", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-system-interface", +] + +[[package]] +name = "solana-feature-set" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89e1d3b52b4a014efeaaab67f14e40af3972a4be61c523d612860db8e3145529" +dependencies = [ + "ahash", "lazy_static", - "libsecp256k1", + "solana-epoch-schedule", + "solana-hash", + "solana-pubkey", + "solana-sha256-hasher", +] + +[[package]] +name = "solana-fee-calculator" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d89bc408da0fb3812bc3008189d148b4d3e08252c79ad810b245482a3f70cd8d" +dependencies = [ "log", + "serde", + "serde_derive", +] + +[[package]] +name = "solana-fee-structure" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f45f94a88efdb512805563181dfa1c85c60a21b6e6d602bf24a2ea88f9399d6e" +dependencies = [ + "serde", + "serde_derive", + "solana-message", + "solana-native-token", +] + +[[package]] +name = "solana-genesis-config" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "968dabd2b92d57131473eddbd475339da530e14f54397386abf303de3a2595a2" +dependencies = [ + "bincode", + "chrono", "memmap2", - "num_enum", - "pbkdf2 0.11.0", - "qstring", + "serde", + "serde_derive", + "solana-account", + "solana-clock", + "solana-cluster-type", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-hash", + "solana-inflation", + "solana-keypair", + "solana-logger", + "solana-native-token", + "solana-poh-config", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-sha256-hasher", + "solana-shred-version", + "solana-signer", + "solana-time-utils", +] + +[[package]] +name = "solana-hard-forks" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c28371f878e2ead55611d8ba1b5fb879847156d04edea13693700ad1a28baf" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "solana-hash" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf7bcb14392900fe02e4e34e90234fbf0c673d4e327888410ba99fa2ba0f4e99" +dependencies = [ + "borsh 1.5.5", + "bs58", + "bytemuck", + "bytemuck_derive", + "js-sys", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-sanitize", + "wasm-bindgen", +] + +[[package]] +name = "solana-inflation" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23eef6a09eb8e568ce6839573e4966850e85e9ce71e6ae1a6c930c1c43947de3" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "solana-inline-spl" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "951545bd7d0ab4a878cfc7375ac9f1a475cb6936626677b2ba1d25e7b9f3910b" +dependencies = [ + "bytemuck", + "solana-pubkey", +] + +[[package]] +name = "solana-instruction" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce496a475e5062ba5de97215ab39d9c358f9c9df4bb7f3a45a1f1a8bd9065ed" +dependencies = [ + "bincode", + "borsh 1.5.5", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-define-syscall", + "solana-pubkey", + "wasm-bindgen", +] + +[[package]] +name = "solana-instructions-sysvar" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "427f2d0d6dc0bb49f16cef5e7f975180d2e80aab9bdd3b2af68e2d029ec63f43" +dependencies = [ + "bitflags 2.9.0", + "solana-account-info", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-sanitize", + "solana-sdk-ids", + "solana-serialize-utils", + "solana-sysvar-id", +] + +[[package]] +name = "solana-keccak-hasher" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7aeb957fbd42a451b99235df4942d96db7ef678e8d5061ef34c9b34cae12f79" +dependencies = [ + "sha3", + "solana-define-syscall", + "solana-hash", + "solana-sanitize", +] + +[[package]] +name = "solana-keypair" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dbb7042c2e0c561afa07242b2099d55c57bd1b1da3b6476932197d84e15e3e4" +dependencies = [ + "bs58", + "ed25519-dalek", + "ed25519-dalek-bip32", "rand 0.7.3", - "rand 0.8.5", - "rustc_version", - "rustversion", + "solana-derivation-path", + "solana-pubkey", + "solana-seed-derivable", + "solana-seed-phrase", + "solana-signature", + "solana-signer", + "wasm-bindgen", +] + +[[package]] +name = "solana-last-restart-slot" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a6360ac2fdc72e7463565cd256eedcf10d7ef0c28a1249d261ec168c1b55cdd" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-loader-v2-interface" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8ab08006dad78ae7cd30df8eea0539e207d08d91eaefb3e1d49a446e1c49654" +dependencies = [ "serde", "serde_bytes", "serde_derive", - "serde_json", - "serde_with", - "sha2 0.10.8", - "sha3 0.10.8", - "siphasher", - "solana-program 2.0.25", - "solana-sdk-macro 2.0.25", - "thiserror", - "uriparse", - "wasm-bindgen", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", +] + +[[package]] +name = "solana-loader-v3-interface" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4be76cfa9afd84ca2f35ebc09f0da0f0092935ccdac0595d98447f259538c2" +dependencies = [ + "serde", + "serde_bytes", + "serde_derive", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-system-interface", +] + +[[package]] +name = "solana-loader-v4-interface" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "706a777242f1f39a83e2a96a2a6cb034cb41169c6ecbee2cf09cb873d9659e7e" +dependencies = [ + "serde", + "serde_bytes", + "serde_derive", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-system-interface", +] + +[[package]] +name = "solana-log-collector" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aa28cd428e0af919d2fafd31c646835622abfd7ed4dba4df68e3c00f461bc66" +dependencies = [ + "log", +] + +[[package]] +name = "solana-logger" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db8e777ec1afd733939b532a42492d888ec7c88d8b4127a5d867eb45c6eb5cd5" +dependencies = [ + "env_logger 0.9.3", + "lazy_static", + "libc", + "log", + "signal-hook", +] + +[[package]] +name = "solana-measure" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fced2cfeff80f0214af86bc27bc6e798465a45b70329c3b468bb75957c082" + +[[package]] +name = "solana-message" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "268486ba8a294ed22a4d7c1ec05f540c3dbe71cfa7c6c54b6d4d13668d895678" +dependencies = [ + "bincode", + "blake3", + "lazy_static", + "serde", + "serde_derive", + "solana-bincode", + "solana-hash", + "solana-instruction", + "solana-pubkey", + "solana-sanitize", + "solana-sdk-ids", + "solana-short-vec", + "solana-system-interface", + "solana-transaction-error", + "wasm-bindgen", +] + +[[package]] +name = "solana-msg" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36a1a14399afaabc2781a1db09cb14ee4cc4ee5c7a5a3cfcc601811379a8092" +dependencies = [ + "solana-define-syscall", +] + +[[package]] +name = "solana-native-token" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33e9de00960197412e4be3902a6cd35e60817c511137aca6c34c66cd5d4017ec" + +[[package]] +name = "solana-nonce" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703e22eb185537e06204a5bd9d509b948f0066f2d1d814a6f475dafb3ddf1325" +dependencies = [ + "serde", + "serde_derive", + "solana-fee-calculator", + "solana-hash", + "solana-pubkey", + "solana-sha256-hasher", +] + +[[package]] +name = "solana-nonce-account" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cde971a20b8dbf60144d6a84439dda86b5466e00e2843091fe731083cda614da" +dependencies = [ + "solana-account", + "solana-hash", + "solana-nonce", + "solana-sdk-ids", +] + +[[package]] +name = "solana-offchain-message" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b526398ade5dea37f1f147ce55dae49aa017a5d7326606359b0445ca8d946581" +dependencies = [ + "num_enum", + "solana-hash", + "solana-packet", + "solana-pubkey", + "solana-sanitize", + "solana-sha256-hasher", + "solana-signature", + "solana-signer", +] + +[[package]] +name = "solana-packet" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "004f2d2daf407b3ec1a1ca5ec34b3ccdfd6866dd2d3c7d0715004a96e4b6d127" +dependencies = [ + "bincode", + "bitflags 2.9.0", + "cfg_eval", + "serde", + "serde_derive", + "serde_with", +] + +[[package]] +name = "solana-poh-config" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d650c3b4b9060082ac6b0efbbb66865089c58405bfb45de449f3f2b91eccee75" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "solana-precompile-error" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ff64daa2933c22982b323d88d0cdf693201ef56ac381ae16737fd5f579e07d6" +dependencies = [ + "num-traits", + "solana-decode-error", +] + +[[package]] +name = "solana-precompiles" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a460ab805ec063802105b463ecb5eb02c3ffe469e67a967eea8a6e778e0bc06" +dependencies = [ + "lazy_static", + "solana-ed25519-program", + "solana-feature-set", + "solana-message", + "solana-precompile-error", + "solana-pubkey", + "solana-sdk-ids", + "solana-secp256k1-program", + "solana-secp256r1-program", +] + +[[package]] +name = "solana-presigner" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81a57a24e6a4125fc69510b6774cd93402b943191b6cddad05de7281491c90fe" +dependencies = [ + "solana-pubkey", + "solana-signature", + "solana-signer", +] + +[[package]] +name = "solana-program" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "586469467e93ceb79048f8d8e3a619bf61d05396ee7de95cb40280301a589d05" +dependencies = [ + "bincode", + "blake3", + "borsh 0.10.4", + "borsh 1.5.5", + "bs58", + "bytemuck", + "console_error_panic_hook", + "console_log", + "getrandom 0.2.15", + "lazy_static", + "log", + "memoffset", + "num-bigint 0.4.6", + "num-derive", + "num-traits", + "rand 0.8.5", + "serde", + "serde_bytes", + "serde_derive", + "solana-account-info", + "solana-address-lookup-table-interface", + "solana-atomic-u64", + "solana-big-mod-exp", + "solana-bincode", + "solana-blake3-hasher", + "solana-borsh", + "solana-clock", + "solana-cpi", + "solana-decode-error", + "solana-define-syscall", + "solana-epoch-rewards", + "solana-epoch-schedule", + "solana-example-mocks", + "solana-feature-gate-interface", + "solana-fee-calculator", + "solana-hash", + "solana-instruction", + "solana-instructions-sysvar", + "solana-keccak-hasher", + "solana-last-restart-slot", + "solana-loader-v2-interface", + "solana-loader-v3-interface", + "solana-loader-v4-interface", + "solana-message", + "solana-msg", + "solana-native-token", + "solana-nonce", + "solana-program-entrypoint", + "solana-program-error", + "solana-program-memory", + "solana-program-option", + "solana-program-pack", + "solana-pubkey", + "solana-rent", + "solana-sanitize", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-secp256k1-recover", + "solana-serde-varint", + "solana-serialize-utils", + "solana-sha256-hasher", + "solana-short-vec", + "solana-slot-hashes", + "solana-slot-history", + "solana-stable-layout", + "solana-stake-interface", + "solana-system-interface", + "solana-sysvar", + "solana-sysvar-id", + "solana-vote-interface", + "thiserror 2.0.12", + "wasm-bindgen", +] + +[[package]] +name = "solana-program-entrypoint" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "473ffe73c68d93e9f2aa726ad2985fe52760052709aaab188100a42c618060ec" +dependencies = [ + "solana-account-info", + "solana-msg", + "solana-program-error", + "solana-pubkey", +] + +[[package]] +name = "solana-program-error" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8ae2c1a8d0d4ae865882d5770a7ebca92bab9c685e43f0461682c6c05a35bfa" +dependencies = [ + "borsh 1.5.5", + "num-traits", + "serde", + "serde_derive", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-pubkey", +] + +[[package]] +name = "solana-program-memory" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b0268f6c89825fb634a34bd0c3b8fdaeaecfc3728be1d622a8ee6dd577b60d4" +dependencies = [ + "num-traits", + "solana-define-syscall", +] + +[[package]] +name = "solana-program-option" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc677a2e9bc616eda6dbdab834d463372b92848b2bfe4a1ed4e4b4adba3397d0" + +[[package]] +name = "solana-program-pack" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "319f0ef15e6e12dc37c597faccb7d62525a509fec5f6975ecb9419efddeb277b" +dependencies = [ + "solana-program-error", +] + +[[package]] +name = "solana-program-runtime" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c3d36fed5548b1a8625eb071df6031a95aa69f884e29bf244821e53c49372bc" +dependencies = [ + "base64 0.22.1", + "bincode", + "enum-iterator", + "itertools 0.12.1", + "log", + "percentage", + "rand 0.8.5", + "serde", + "solana-account", + "solana-clock", + "solana-compute-budget", + "solana-epoch-rewards", + "solana-epoch-schedule", + "solana-feature-set", + "solana-hash", + "solana-instruction", + "solana-last-restart-slot", + "solana-log-collector", + "solana-measure", + "solana-precompiles", + "solana-pubkey", + "solana-rent", + "solana-sbpf", + "solana-sdk-ids", + "solana-slot-hashes", + "solana-stable-layout", + "solana-sysvar", + "solana-sysvar-id", + "solana-timings", + "solana-transaction-context", + "solana-type-overrides", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-pubkey" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40db1ff5a0f8aea2c158d78ab5f2cf897848964251d1df42fef78efd3c85b863" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.5", + "bs58", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-decode-error", + "solana-define-syscall", + "solana-sanitize", + "solana-sha256-hasher", + "wasm-bindgen", +] + +[[package]] +name = "solana-quic-definitions" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e606feac5110eb5d8afaa43ccaeea3ec49ccec36773387930b5ba545e745aea2" +dependencies = [ + "solana-keypair", +] + +[[package]] +name = "solana-rent" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1aea8fdea9de98ca6e8c2da5827707fb3842833521b528a713810ca685d2480" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-rent-collector" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c1e19f5d5108b0d824244425e43bc78bbb9476e2199e979b0230c9f632d3bf4" +dependencies = [ + "serde", + "serde_derive", + "solana-account", + "solana-clock", + "solana-epoch-schedule", + "solana-genesis-config", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", +] + +[[package]] +name = "solana-rent-debits" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f6f9113c6003492e74438d1288e30cffa8ccfdc2ef7b49b9e816d8034da18cd" +dependencies = [ + "solana-pubkey", + "solana-reward-info", +] + +[[package]] +name = "solana-reserved-account-keys" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b293f4246626c0e0a991531f08848a713ada965612e99dc510963f04d12cae7" +dependencies = [ + "lazy_static", + "solana-feature-set", + "solana-pubkey", + "solana-sdk-ids", +] + +[[package]] +name = "solana-reward-info" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18205b69139b1ae0ab8f6e11cdcb627328c0814422ad2482000fa2ca54ae4a2f" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "solana-rpc-client" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cb874b757d9d3c646f031132b20d43538309060a32d02b4aebb0f8fc2cd159a" +dependencies = [ + "async-trait", + "base64 0.22.1", + "bincode", + "bs58", + "indicatif", + "log", + "reqwest", + "reqwest-middleware", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-account-decoder-client-types", + "solana-clock", + "solana-commitment-config", + "solana-epoch-info", + "solana-epoch-schedule", + "solana-feature-gate-interface", + "solana-hash", + "solana-instruction", + "solana-message", + "solana-pubkey", + "solana-rpc-client-api", + "solana-signature", + "solana-transaction", + "solana-transaction-error", + "solana-transaction-status-client-types", + "solana-version", + "tokio", +] + +[[package]] +name = "solana-rpc-client-api" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7105452c4f039fd2c07e6fda811ff23bd270c99f91ac160308f02701eb19043" +dependencies = [ + "anyhow", + "base64 0.22.1", + "bs58", + "jsonrpc-core", + "reqwest", + "reqwest-middleware", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-account-decoder-client-types", + "solana-clock", + "solana-commitment-config", + "solana-fee-calculator", + "solana-inflation", + "solana-inline-spl", + "solana-pubkey", + "solana-signer", + "solana-transaction-error", + "solana-transaction-status-client-types", + "solana-version", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-sanitize" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61f1bc1357b8188d9c4a3af3fc55276e56987265eb7ad073ae6f8180ee54cecf" + +[[package]] +name = "solana-sbpf" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66a3ce7a0f4d6830124ceb2c263c36d1ee39444ec70146eb49b939e557e72b96" +dependencies = [ + "byteorder", + "combine", + "hash32", + "libc", + "log", + "rand 0.8.5", + "rustc-demangle", + "thiserror 1.0.69", + "winapi", +] + +[[package]] +name = "solana-sdk" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4808e8d7f3c931657e615042d4176b423e66f64dc99e3dc3c735a197e512029b" +dependencies = [ + "bincode", + "bs58", + "getrandom 0.1.16", + "js-sys", + "serde", + "serde_json", + "solana-account", + "solana-bn254", + "solana-client-traits", + "solana-cluster-type", + "solana-commitment-config", + "solana-compute-budget-interface", + "solana-decode-error", + "solana-derivation-path", + "solana-ed25519-program", + "solana-epoch-info", + "solana-epoch-rewards-hasher", + "solana-feature-set", + "solana-fee-structure", + "solana-genesis-config", + "solana-hard-forks", + "solana-inflation", + "solana-instruction", + "solana-keypair", + "solana-message", + "solana-native-token", + "solana-nonce-account", + "solana-offchain-message", + "solana-packet", + "solana-poh-config", + "solana-precompile-error", + "solana-precompiles", + "solana-presigner", + "solana-program", + "solana-program-memory", + "solana-pubkey", + "solana-quic-definitions", + "solana-rent-collector", + "solana-rent-debits", + "solana-reserved-account-keys", + "solana-reward-info", + "solana-sanitize", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-secp256k1-program", + "solana-secp256k1-recover", + "solana-secp256r1-program", + "solana-seed-derivable", + "solana-seed-phrase", + "solana-serde", + "solana-serde-varint", + "solana-short-vec", + "solana-shred-version", + "solana-signature", + "solana-signer", + "solana-system-transaction", + "solana-time-utils", + "solana-transaction", + "solana-transaction-context", + "solana-transaction-error", + "solana-validator-exit", + "thiserror 2.0.12", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk-ids" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c5d8b9cc68d5c88b062a33e23a6466722467dde0035152d8fb1afbcdf350a5f" +dependencies = [ + "solana-pubkey", +] + +[[package]] +name = "solana-sdk-macro" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86280da8b99d03560f6ab5aca9de2e38805681df34e0bb8f238e69b29433b9df" +dependencies = [ + "bs58", + "proc-macro2", + "quote", + "syn 2.0.100", +] + +[[package]] +name = "solana-secp256k1-program" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0a1caa972414cc78122c32bdae65ac5fe89df7db598585a5cde19d16a20280a" +dependencies = [ + "bincode", + "digest 0.10.7", + "libsecp256k1", + "serde", + "serde_derive", + "sha3", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-sdk-ids", +] + +[[package]] +name = "solana-secp256k1-recover" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa3120b6cdaa270f39444f5093a90a7b03d296d362878f7a6991d6de3bbe496" +dependencies = [ + "borsh 1.5.5", + "libsecp256k1", + "solana-define-syscall", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-secp256r1-program" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9ea9282950921611bd9e0200da7236fbb1d4f8388942f8451bd55e9f3cb228f" +dependencies = [ + "bytemuck", + "openssl", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-sdk-ids", +] + +[[package]] +name = "solana-security-txt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" + +[[package]] +name = "solana-seed-derivable" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beb82b5adb266c6ea90e5cf3967235644848eac476c5a1f2f9283a143b7c97f" +dependencies = [ + "solana-derivation-path", +] + +[[package]] +name = "solana-seed-phrase" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36187af2324f079f65a675ec22b31c24919cb4ac22c79472e85d819db9bbbc15" +dependencies = [ + "hmac 0.12.1", + "pbkdf2", + "sha2 0.10.8", +] + +[[package]] +name = "solana-serde" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1931484a408af466e14171556a47adaa215953c7f48b24e5f6b0282763818b04" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-serde-varint" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcc07d00200d82e6def2f7f7a45738e3406b17fe54a18adcf0defa16a97ccadb" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-serialize-utils" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "817a284b63197d2b27afdba829c5ab34231da4a9b4e763466a003c40ca4f535e" +dependencies = [ + "solana-instruction", + "solana-pubkey", + "solana-sanitize", +] + +[[package]] +name = "solana-sha256-hasher" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0037386961c0d633421f53560ad7c80675c0447cba4d1bb66d60974dd486c7ea" +dependencies = [ + "sha2 0.10.8", + "solana-define-syscall", + "solana-hash", +] + +[[package]] +name = "solana-short-vec" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c54c66f19b9766a56fa0057d060de8378676cb64987533fa088861858fc5a69" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-shred-version" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afd3db0461089d1ad1a78d9ba3f15b563899ca2386351d38428faa5350c60a98" +dependencies = [ + "solana-hard-forks", + "solana-hash", + "solana-sha256-hasher", +] + +[[package]] +name = "solana-signature" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d251c8f3dc015f320b4161daac7f108156c837428e5a8cc61136d25beb11d6" +dependencies = [ + "bs58", + "ed25519-dalek", + "rand 0.8.5", + "serde", + "serde-big-array", + "serde_derive", + "solana-sanitize", +] + +[[package]] +name = "solana-signer" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c41991508a4b02f021c1342ba00bcfa098630b213726ceadc7cb032e051975b" +dependencies = [ + "solana-pubkey", + "solana-signature", + "solana-transaction-error", +] + +[[package]] +name = "solana-slot-hashes" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c8691982114513763e88d04094c9caa0376b867a29577939011331134c301ce" +dependencies = [ + "serde", + "serde_derive", + "solana-hash", + "solana-sdk-ids", + "solana-sysvar-id", +] + +[[package]] +name = "solana-slot-history" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97ccc1b2067ca22754d5283afb2b0126d61eae734fc616d23871b0943b0d935e" +dependencies = [ + "bv", + "serde", + "serde_derive", + "solana-sdk-ids", + "solana-sysvar-id", +] + +[[package]] +name = "solana-stable-layout" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f14f7d02af8f2bc1b5efeeae71bc1c2b7f0f65cd75bcc7d8180f2c762a57f54" +dependencies = [ + "solana-instruction", + "solana-pubkey", +] + +[[package]] +name = "solana-stake-interface" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5269e89fde216b4d7e1d1739cf5303f8398a1ff372a81232abbee80e554a838c" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.5", + "num-traits", + "serde", + "serde_derive", + "solana-clock", + "solana-cpi", + "solana-decode-error", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-system-interface", + "solana-sysvar-id", +] + +[[package]] +name = "solana-system-interface" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94d7c18cb1a91c6be5f5a8ac9276a1d7c737e39a21beba9ea710ab4b9c63bc90" +dependencies = [ + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-decode-error", + "solana-instruction", + "solana-pubkey", + "wasm-bindgen", +] + +[[package]] +name = "solana-system-transaction" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bd98a25e5bcba8b6be8bcbb7b84b24c2a6a8178d7fb0e3077a916855ceba91a" +dependencies = [ + "solana-hash", + "solana-keypair", + "solana-message", + "solana-pubkey", + "solana-signer", + "solana-system-interface", + "solana-transaction", +] + +[[package]] +name = "solana-sysvar" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf6b44740d7f0c9f375d045c165bc0aab4a90658f92d6835aeb0649afaeaff9a" +dependencies = [ + "base64 0.22.1", + "bincode", + "bytemuck", + "bytemuck_derive", + "lazy_static", + "serde", + "serde_derive", + "solana-account-info", + "solana-clock", + "solana-define-syscall", + "solana-epoch-rewards", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-hash", + "solana-instruction", + "solana-instructions-sysvar", + "solana-last-restart-slot", + "solana-program-entrypoint", + "solana-program-error", + "solana-program-memory", + "solana-pubkey", + "solana-rent", + "solana-sanitize", + "solana-sdk-ids", + "solana-sdk-macro", + "solana-slot-hashes", + "solana-slot-history", + "solana-stake-interface", + "solana-sysvar-id", ] [[package]] -name = "solana-sdk-macro" -version = "1.18.26" +name = "solana-sysvar-id" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b75d0f193a27719257af19144fdaebec0415d1c9e9226ae4bd29b791be5e9bd" +checksum = "5762b273d3325b047cfda250787f8d796d781746860d5d0a746ee29f3e8812c1" dependencies = [ - "bs58 0.4.0", - "proc-macro2", - "quote", - "rustversion", - "syn 2.0.99", + "solana-pubkey", + "solana-sdk-ids", ] [[package]] -name = "solana-sdk-macro" -version = "2.0.25" +name = "solana-time-utils" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6af261afb0e8c39252a04d026e3ea9c405342b08c871a2ad8aa5448e068c784c" + +[[package]] +name = "solana-timings" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e67cfa02398779e136a8d353a05715eaeee46d98f31e9ce0c68e79c14fe92b63" +checksum = "49d9eabdce318cb07c60a23f1cc367b43e177c79225b5c2a081869ad182172ad" dependencies = [ - "bs58 0.5.1", - "proc-macro2", - "quote", - "rustversion", - "syn 2.0.99", + "eager", + "enum-iterator", + "solana-pubkey", ] [[package]] -name = "solana-security-txt" -version = "1.1.1" +name = "solana-transaction" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" +checksum = "753b3e9afed170e4cfc0ea1e87b5dfdc6d4a50270869414edd24c6ea1f529b29" +dependencies = [ + "bincode", + "serde", + "serde_derive", + "solana-bincode", + "solana-feature-set", + "solana-hash", + "solana-instruction", + "solana-keypair", + "solana-message", + "solana-precompiles", + "solana-pubkey", + "solana-reserved-account-keys", + "solana-sanitize", + "solana-sdk-ids", + "solana-short-vec", + "solana-signature", + "solana-signer", + "solana-system-interface", + "solana-transaction-error", + "wasm-bindgen", +] + +[[package]] +name = "solana-transaction-context" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5022de04cbba05377f68bf848c8c1322ead733f88a657bf792bb40f3257b8218" +dependencies = [ + "bincode", + "serde", + "serde_derive", + "solana-account", + "solana-instruction", + "solana-pubkey", + "solana-rent", + "solana-signature", +] + +[[package]] +name = "solana-transaction-error" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "222a9dc8fdb61c6088baab34fc3a8b8473a03a7a5fd404ed8dd502fa79b67cb1" +dependencies = [ + "serde", + "serde_derive", + "solana-instruction", + "solana-sanitize", +] [[package]] name = "solana-transaction-status" -version = "2.0.25" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae2fa2a1376f1038a85684ff3ed27edcd728174be376e7a5bf06288c69c1502b" +checksum = "64f739fb4230787b010aa4a49d3feda8b53aac145a9bc3ac2dd44337c6ecb544" dependencies = [ "Inflector", "base64 0.22.1", "bincode", "borsh 1.5.5", - "bs58 0.5.1", + "bs58", "lazy_static", "log", "serde", "serde_derive", "serde_json", "solana-account-decoder", - "solana-sdk", + "solana-clock", + "solana-hash", + "solana-instruction", + "solana-loader-v2-interface", + "solana-message", + "solana-program", + "solana-pubkey", + "solana-reserved-account-keys", + "solana-reward-info", + "solana-sdk-ids", + "solana-signature", + "solana-system-interface", + "solana-transaction", + "solana-transaction-error", + "solana-transaction-status-client-types", "spl-associated-token-account", "spl-memo", "spl-token", - "spl-token-2022", + "spl-token-2022 7.0.0", "spl-token-group-interface", "spl-token-metadata-interface", - "thiserror", + "thiserror 2.0.12", +] + +[[package]] +name = "solana-transaction-status-client-types" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5ac91c8f0465c566164044ad7b3d18d15dfabab1b8b4a4a01cb83c047efdaae" +dependencies = [ + "base64 0.22.1", + "bincode", + "bs58", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-commitment-config", + "solana-message", + "solana-reward-info", + "solana-signature", + "solana-transaction", + "solana-transaction-context", + "solana-transaction-error", + "thiserror 2.0.12", ] [[package]] name = "solana-type-overrides" -version = "2.0.25" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be383ce031e41e068bd7b1fb2123591bb2e9decf69e7db6a71d119022a2e388" +checksum = "d39dc2e501edfea7ce1cec2fe2a2428aedfea1cc9c31747931e0d90d5c57b020" dependencies = [ "lazy_static", "rand 0.8.5", ] [[package]] -name = "solana-version" -version = "2.0.25" +name = "solana-validator-exit" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99dc39839c1689109eb38c511439dcbeba2f199c9aa57833075b82f666cc5bb0" -dependencies = [ - "log", - "rustc_version", - "semver", - "serde", - "serde_derive", - "solana-sdk", -] +checksum = "7bbf6d7a3c0b28dd5335c52c0e9eae49d0ae489a8f324917faf0ded65a812c1d" [[package]] -name = "solana-vote" -version = "2.0.25" +name = "solana-version" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "588025ee332b31103346dd4d95ea07cb5cab1f4d5b118dd799153924137aef9b" +checksum = "4f60a01e2721bfd2e094b465440ae461d75acd363e9653565a73d2c586becb3b" dependencies = [ - "itertools 0.12.1", - "log", - "rustc_version", + "semver", "serde", "serde_derive", - "solana-sdk", - "thiserror", + "solana-feature-set", + "solana-sanitize", + "solana-serde-varint", ] [[package]] -name = "solana-vote-program" -version = "2.0.25" +name = "solana-vote-interface" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0cb5dd78227039d3c430b04fa5d1101766907db2fced2da993d40658b352173" +checksum = "c1e9f6a1651310a94cd5a1a6b7f33ade01d9e5ea38a2220becb5fd737b756514" dependencies = [ "bincode", - "log", "num-derive", "num-traits", - "rustc_version", "serde", "serde_derive", - "solana-metrics", - "solana-program 2.0.25", - "solana-program-runtime", - "solana-sdk", - "thiserror", + "solana-clock", + "solana-decode-error", + "solana-hash", + "solana-instruction", + "solana-pubkey", + "solana-rent", + "solana-sdk-ids", + "solana-serde-varint", + "solana-serialize-utils", + "solana-short-vec", + "solana-system-interface", ] [[package]] -name = "solana-zk-token-sdk" -version = "2.0.25" +name = "solana-zk-sdk" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1267843d1222f0cafdd941a5e56e9eb9e0653054fddeaa580a0a5c123735d2da" +checksum = "d8318220b73552a2765c6545a4be04fc87fe21b6dd0cb8c2b545a66121bf5b8a" dependencies = [ "aes-gcm-siv", "base64 0.22.1", "bincode", "bytemuck", "bytemuck_derive", - "byteorder", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "itertools 0.12.1", + "js-sys", "lazy_static", "merlin", "num-derive", "num-traits", - "rand 0.7.3", + "rand 0.8.5", "serde", "serde_derive", "serde_json", - "sha3 0.9.1", - "solana-curve25519", - "solana-program 2.0.25", - "solana-sdk", + "sha3", + "solana-derivation-path", + "solana-instruction", + "solana-pubkey", + "solana-sdk-ids", + "solana-seed-derivable", + "solana-seed-phrase", + "solana-signature", + "solana-signer", "subtle", - "thiserror", + "thiserror 2.0.12", + "wasm-bindgen", "zeroize", ] -[[package]] -name = "solana_rbpf" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff08afd63f70a1ba712fb0017be41e93b017f7e874785b54bb5ec9aa8949781d" -dependencies = [ - "byteorder", - "combine", - "goblin", - "hash32", - "libc", - "log", - "rand 0.8.5", - "rustc-demangle", - "scroll", - "thiserror", - "winapi", -] - [[package]] name = "spl-associated-token-account" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68034596cf4804880d265f834af1ff2f821ad5293e41fa0f8f59086c181fc38e" +checksum = "76fee7d65013667032d499adc3c895e286197a35a0d3a4643c80e7fd3e9969e3" dependencies = [ - "assert_matches", "borsh 1.5.5", "num-derive", "num-traits", - "solana-program 2.0.25", + "solana-program", + "spl-associated-token-account-client", "spl-token", - "spl-token-2022", - "thiserror", + "spl-token-2022 6.0.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-associated-token-account-client" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f8349dbcbe575f354f9a533a21f272f3eb3808a49e2fdc1c34393b88ba76cb" +dependencies = [ + "solana-instruction", + "solana-pubkey", ] [[package]] name = "spl-discriminator" -version = "0.3.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a38ea8b6dedb7065887f12d62ed62c1743aa70749e8558f963609793f6fb12bc" +checksum = "a7398da23554a31660f17718164e31d31900956054f54f52d5ec1be51cb4f4b3" dependencies = [ "bytemuck", - "solana-program 2.0.25", + "solana-program-error", + "solana-sha256-hasher", "spl-discriminator-derive", ] @@ -3819,7 +5080,7 @@ checksum = "d9e8418ea6269dcfb01c712f0444d2c75542c04448b480e87de59d2865edc750" dependencies = [ "quote", "spl-discriminator-syn", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -3831,44 +5092,68 @@ dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.99", - "thiserror", + "syn 2.0.100", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-elgamal-registry" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce0f668975d2b0536e8a8fd60e56a05c467f06021dae037f1d0cfed0de2e231d" +dependencies = [ + "bytemuck", + "solana-program", + "solana-zk-sdk", + "spl-pod", + "spl-token-confidential-transfer-proof-extraction", ] [[package]] name = "spl-memo" -version = "5.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0dba2f2bb6419523405d21c301a32c9f9568354d4742552e7972af801f4bdb3" +checksum = "9f09647c0974e33366efeb83b8e2daebb329f0420149e74d3a4bd2c08cf9f7cb" dependencies = [ - "solana-program 2.0.25", + "solana-account-info", + "solana-instruction", + "solana-msg", + "solana-program-entrypoint", + "solana-program-error", + "solana-pubkey", ] [[package]] name = "spl-pod" -version = "0.3.1" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c704c88fc457fa649ba3aabe195c79d885c3f26709efaddc453c8de352c90b87" +checksum = "d994afaf86b779104b4a95ba9ca75b8ced3fdb17ee934e38cb69e72afbe17799" dependencies = [ "borsh 1.5.5", "bytemuck", "bytemuck_derive", - "solana-program 2.0.25", - "solana-zk-token-sdk", - "spl-program-error", + "num-derive", + "num-traits", + "solana-decode-error", + "solana-msg", + "solana-program-error", + "solana-program-option", + "solana-pubkey", + "solana-zk-sdk", + "thiserror 2.0.12", ] [[package]] name = "spl-program-error" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7b28bed65356558133751cc32b48a7a5ddfc59ac4e941314630bbed1ac10532" +checksum = "9d39b5186f42b2b50168029d81e58e800b690877ef0b30580d107659250da1d1" dependencies = [ "num-derive", "num-traits", - "solana-program 2.0.25", + "solana-program", "spl-program-error-derive", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3880,116 +5165,231 @@ dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] name = "spl-tlv-account-resolution" -version = "0.7.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37a75a5f0fcc58126693ed78a17042e9dc53f07e357d6be91789f7d62aff61a4" +checksum = "cd99ff1e9ed2ab86e3fd582850d47a739fec1be9f4661cba1782d3a0f26805f3" dependencies = [ "bytemuck", - "solana-program 2.0.25", + "num-derive", + "num-traits", + "solana-account-info", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", "spl-discriminator", "spl-pod", "spl-program-error", "spl-type-length-value", + "thiserror 1.0.69", ] [[package]] name = "spl-token" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed320a6c934128d4f7e54fe00e16b8aeaecf215799d060ae14f93378da6dc834" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-2022" version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a0f06ac7f23dc0984931b1fe309468f14ea58e32660439c1cef19456f5d0e3" +checksum = "5b27f7405010ef816587c944536b0eafbcc35206ab6ba0f2ca79f1d28e488f4f" dependencies = [ "arrayref", "bytemuck", "num-derive", "num-traits", "num_enum", - "solana-program 2.0.25", - "thiserror", + "solana-program", + "solana-security-txt", + "solana-zk-sdk", + "spl-elgamal-registry", + "spl-memo", + "spl-pod", + "spl-token", + "spl-token-confidential-transfer-ciphertext-arithmetic", + "spl-token-confidential-transfer-proof-extraction", + "spl-token-confidential-transfer-proof-generation 0.2.0", + "spl-token-group-interface", + "spl-token-metadata-interface", + "spl-transfer-hook-interface", + "spl-type-length-value", + "thiserror 1.0.69", ] [[package]] name = "spl-token-2022" -version = "4.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9c10f3483e48679619c76598d4e4aebb955bc49b0a5cc63323afbf44135c9bf" +checksum = "9048b26b0df0290f929ff91317c83db28b3ef99af2b3493dd35baa146774924c" dependencies = [ "arrayref", "bytemuck", "num-derive", "num-traits", "num_enum", - "solana-program 2.0.25", + "solana-program", "solana-security-txt", - "solana-zk-token-sdk", + "solana-zk-sdk", + "spl-elgamal-registry", "spl-memo", "spl-pod", "spl-token", + "spl-token-confidential-transfer-ciphertext-arithmetic", + "spl-token-confidential-transfer-proof-extraction", + "spl-token-confidential-transfer-proof-generation 0.3.0", "spl-token-group-interface", "spl-token-metadata-interface", "spl-transfer-hook-interface", "spl-type-length-value", - "thiserror", + "thiserror 2.0.12", ] [[package]] -name = "spl-token-group-interface" +name = "spl-token-confidential-transfer-ciphertext-arithmetic" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170378693c5516090f6d37ae9bad2b9b6125069be68d9acd4865bbe9fc8499fd" +dependencies = [ + "base64 0.22.1", + "bytemuck", + "solana-curve25519", + "solana-zk-sdk", +] + +[[package]] +name = "spl-token-confidential-transfer-proof-extraction" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eff2d6a445a147c9d6dd77b8301b1e116c8299601794b558eafa409b342faf96" +dependencies = [ + "bytemuck", + "solana-curve25519", + "solana-program", + "solana-zk-sdk", + "spl-pod", + "thiserror 2.0.12", +] + +[[package]] +name = "spl-token-confidential-transfer-proof-generation" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8627184782eec1894de8ea26129c61303f1f0adeed65c20e0b10bc584f09356d" +dependencies = [ + "curve25519-dalek 4.1.3", + "solana-zk-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-confidential-transfer-proof-generation" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df8752b85a5ecc1d9f3a43bce3dd9a6a053673aacf5deb513d1cbb88d3534ffd" +checksum = "0e3597628b0d2fe94e7900fd17cdb4cfbb31ee35c66f82809d27d86e44b2848b" +dependencies = [ + "curve25519-dalek 4.1.3", + "solana-zk-sdk", + "thiserror 2.0.12", +] + +[[package]] +name = "spl-token-group-interface" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d595667ed72dbfed8c251708f406d7c2814a3fa6879893b323d56a10bedfc799" dependencies = [ "bytemuck", - "solana-program 2.0.25", + "num-derive", + "num-traits", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", "spl-discriminator", "spl-pod", - "spl-program-error", + "thiserror 1.0.69", ] [[package]] name = "spl-token-metadata-interface" -version = "0.4.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6c2318ddff97e006ed9b1291ebec0750a78547f870f62a69c56fe3b46a5d8fc" +checksum = "dfb9c89dbc877abd735f05547dcf9e6e12c00c11d6d74d8817506cab4c99fdbb" dependencies = [ "borsh 1.5.5", - "solana-program 2.0.25", + "num-derive", + "num-traits", + "solana-borsh", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", "spl-discriminator", "spl-pod", - "spl-program-error", "spl-type-length-value", + "thiserror 1.0.69", ] [[package]] name = "spl-transfer-hook-interface" -version = "0.7.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a110f33d941275d9f868b96daaa993f1e73b6806cc8836e43075b4d3ad8338a7" +checksum = "4aa7503d52107c33c88e845e1351565050362c2314036ddf19a36cd25137c043" dependencies = [ "arrayref", "bytemuck", - "solana-program 2.0.25", + "num-derive", + "num-traits", + "solana-account-info", + "solana-cpi", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", "spl-discriminator", "spl-pod", "spl-program-error", "spl-tlv-account-resolution", "spl-type-length-value", + "thiserror 1.0.69", ] [[package]] name = "spl-type-length-value" -version = "0.5.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdcd73ec187bc409464c60759232e309f83b52a18a9c5610bf281c9c6432918c" +checksum = "ba70ef09b13af616a4c987797870122863cba03acc4284f226a4473b043923f9" dependencies = [ "bytemuck", - "solana-program 2.0.25", + "num-derive", + "num-traits", + "solana-account-info", + "solana-decode-error", + "solana-msg", + "solana-program-error", "spl-discriminator", "spl-pod", - "spl-program-error", + "thiserror 1.0.69", ] [[package]] @@ -4023,9 +5423,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.99" +version = "2.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e02e925281e18ffd9d640e234264753c43edc62d64b2d4cf898f1bc5e75f3fc2" +checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0" dependencies = [ "proc-macro2", "quote", @@ -4046,7 +5446,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -4081,9 +5481,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.17.1" +version = "3.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e5a0acb1f3f55f65cc4a866c361b2fb2a0ff6366785ae6fbb5f85df07ba230" +checksum = "2c317e0a526ee6120d8dabad239c8dadca62b24b6f168914bbbc8e2fb1f0e567" dependencies = [ "cfg-if", "fastrand", @@ -4093,13 +5493,31 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + [[package]] name = "thiserror" version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" +dependencies = [ + "thiserror-impl 2.0.12", ] [[package]] @@ -4110,26 +5528,18 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] -name = "tiny-bip39" -version = "0.8.2" +name = "thiserror-impl" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" +checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", + "proc-macro2", + "quote", + "syn 2.0.100", ] [[package]] @@ -4159,9 +5569,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.43.0" +version = "1.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" +checksum = "9975ea0f48b5aa3972bf2d888c238182458437cc2a19374b81b25cdf1023fb3a" dependencies = [ "backtrace", "bytes", @@ -4183,7 +5593,7 @@ checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -4219,9 +5629,9 @@ dependencies = [ [[package]] name = "tokio-tungstenite" -version = "0.20.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" +checksum = "7a9daff607c6d2bf6c16fd681ccb7eecc83e4e2cdc1ca067ffaadfca5de7f084" dependencies = [ "futures-util", "log", @@ -4253,11 +5663,26 @@ dependencies = [ "serde", ] +[[package]] +name = "toml" +version = "0.8.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + [[package]] name = "toml_datetime" version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] [[package]] name = "toml_edit" @@ -4266,6 +5691,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474" dependencies = [ "indexmap", + "serde", + "serde_spanned", "toml_datetime", "winnow", ] @@ -4318,21 +5745,19 @@ checksum = "e78122066b0cb818b8afd08f7ed22f7fdbc3e90815035726f0840d0d26c0747a" [[package]] name = "tungstenite" -version = "0.20.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9" +checksum = "4793cb5e56680ecbb1d843515b23b6de9a75eb04b66643e256a396d43be33c13" dependencies = [ - "byteorder", "bytes", "data-encoding", - "http", + "http 1.2.0", "httparse", "log", "native-tls", - "rand 0.8.5", + "rand 0.9.0", "sha1", - "thiserror", - "url", + "thiserror 2.0.12", "utf-8", ] @@ -4360,15 +5785,6 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" -[[package]] -name = "unicode-normalization" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" -dependencies = [ - "tinyvec", -] - [[package]] name = "unicode-segmentation" version = "1.12.0" @@ -4521,7 +5937,7 @@ dependencies = [ "log", "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", "wasm-bindgen-shared", ] @@ -4556,7 +5972,7 @@ checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -4612,6 +6028,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys 0.59.0", +] + [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" @@ -4841,7 +6266,7 @@ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", "synstructure", ] @@ -4851,8 +6276,16 @@ version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ - "byteorder", - "zerocopy-derive", + "zerocopy-derive 0.7.35", +] + +[[package]] +name = "zerocopy" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd97444d05a4328b90e75e503a34bad781f14e28a823ad3557f0750df1ebcbc6" +dependencies = [ + "zerocopy-derive 0.8.23", ] [[package]] @@ -4863,7 +6296,18 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6352c01d0edd5db859a63e2605f4ea3183ddbd15e2c4a9e7d32184df75e4f154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.100", ] [[package]] @@ -4883,15 +6327,15 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", "synstructure", ] [[package]] name = "zeroize" -version = "1.3.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" dependencies = [ "zeroize_derive", ] @@ -4904,7 +6348,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] @@ -4926,25 +6370,24 @@ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.99", + "syn 2.0.100", ] [[package]] name = "zstd" -version = "0.11.2+zstd.1.5.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "5.0.2+zstd.1.5.2" +version = "7.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" +checksum = "f3051792fbdc2e1e143244dc28c60f73d8470e93f3f9cbd0ead44da5ed802722" dependencies = [ - "libc", "zstd-sys", ] diff --git a/Cargo.toml b/Cargo.toml index ea32f2f8..a459b008 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ rpc_tests = [] [dependencies] abi_stable = { version = "0.11", default-features = false } ahash = "0.8.11" -anchor-lang = { version = "0.30", features = ["derive"] } +anchor-lang = { version = "0.31", features = ["derive"] } base64 = "0.22" bytemuck = "1.17" dashmap = "6" @@ -36,22 +36,22 @@ rayon = { version = "1.9.0", optional = true } regex = "1.10" serde = { version = "1", features = ["derive"] } serde_json = "1" -solana-account-decoder = "2" -solana-rpc-client = "2" -solana-rpc-client-api = "2" -solana-sdk = "2" -solana-transaction-status = "2" +solana-account-decoder = "2.1" +solana-rpc-client = "2.1" +solana-rpc-client-api = "2.1" +solana-sdk = "2.1" +solana-transaction-status = "2.1" thiserror = "1" tokio = { version = "1.42", features = ["full"] } tokio-stream = "0.1.17" -tokio-tungstenite = { version = "0.20", features = ["native-tls"] } +tokio-tungstenite = { version = "0.26", features = ["native-tls"] } drift-pubsub-client = { version = "0.1.0", path = "crates/pubsub-client" } [dev-dependencies] bytes = "1" hex-literal = "0.4" -toml = "0.5" +toml = "0.8" [build-dependencies] drift-idl-gen = { version = "0.1.3", path = "crates/drift-idl-gen" } diff --git a/crates/drift-idl-gen/Cargo.toml b/crates/drift-idl-gen/Cargo.toml index d2f6ea61..a86f6b5a 100644 --- a/crates/drift-idl-gen/Cargo.toml +++ b/crates/drift-idl-gen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drift-idl-gen" -version = "0.1.3" +version = "0.1.4" edition = "2021" license = "Apache-2.0" repository = "https://github.com/drift-labs/drift-rs" diff --git a/crates/drift-idl-gen/src/lib.rs b/crates/drift-idl-gen/src/lib.rs index dd64e573..a8df3843 100644 --- a/crates/drift-idl-gen/src/lib.rs +++ b/crates/drift-idl-gen/src/lib.rs @@ -335,7 +335,7 @@ fn generate_idl_types(idl: &Idl) -> String { } #[automatically_derived] impl anchor_lang::Discriminator for #struct_name { - const DISCRIMINATOR: [u8; 8] = #discriminator; + const DISCRIMINATOR: &[u8] = &#discriminator; } #zc_tokens #[automatically_derived] @@ -399,7 +399,7 @@ fn generate_idl_types(idl: &Idl) -> String { } #[automatically_derived] impl anchor_lang::Discriminator for #struct_name { - const DISCRIMINATOR: [u8; 8] = #discriminator; + const DISCRIMINATOR: &[u8] = &#discriminator; } #[automatically_derived] impl anchor_lang::InstructionData for #struct_name {} @@ -439,7 +439,7 @@ fn generate_idl_types(idl: &Idl) -> String { } #[automatically_derived] impl anchor_lang::Discriminator for #struct_name { - const DISCRIMINATOR: [u8; 8] = #discriminator; + const DISCRIMINATOR: &[u8] = &#discriminator; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for #struct_name {} diff --git a/crates/pubsub-client/Cargo.toml b/crates/pubsub-client/Cargo.toml index adaaec69..954c87ba 100644 --- a/crates/pubsub-client/Cargo.toml +++ b/crates/pubsub-client/Cargo.toml @@ -13,12 +13,11 @@ gjson = "0.8.1" log = "0.4" serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["raw_value"] } -solana-account-decoder = "2" -solana-sdk = "2" -solana-rpc-client-api = "2" +solana-account-decoder = "2.1" +solana-sdk = "2.1" +solana-rpc-client-api = "2.1" thiserror = "1" tokio = { version = "1.42", features = ["full"] } tokio-stream = "0.1" -# bump after solana-sdk crate updates to 2.1.x -tokio-tungstenite = { version = "0.20.1", features = ["native-tls"] } +tokio-tungstenite = { version = "0.26.0", features = ["native-tls"] } url = "2.5" \ No newline at end of file diff --git a/crates/pubsub-client/src/lib.rs b/crates/pubsub-client/src/lib.rs index 5dcfb0d3..0ee50c99 100644 --- a/crates/pubsub-client/src/lib.rs +++ b/crates/pubsub-client/src/lib.rs @@ -489,14 +489,14 @@ impl PubsubClient { if let Some(response_sender) = inflight_requests.remove(&id) { match err { Some(reason) => { - let _ = response_sender.send(Err(PubsubClientError::RequestFailed { reason, message: text.clone()})); + let _ = response_sender.send(Err(PubsubClientError::RequestFailed { reason, message: text.to_string()})); }, None => { let json_result = gjson::get(text, "result"); let json_result_value = if json_result.exists() { Ok(serde_json::from_str::(json_result.json()).unwrap()) } else { - Err(PubsubClientError::RequestFailed { reason: "missing `result` field".into(), message: text.clone() }) + Err(PubsubClientError::RequestFailed { reason: "missing `result` field".into(), message: text.to_string() }) }; if let Err(err) = response_sender.send(json_result_value) { @@ -510,13 +510,13 @@ impl PubsubClient { } else if let Some((operation, payload, response_sender)) = inflight_subscribes.remove(&id) { match err { Some(reason) => { - let _ = response_sender.send(Err(PubsubClientError::SubscribeFailed { reason, message: text.clone()})); + let _ = response_sender.send(Err(PubsubClientError::SubscribeFailed { reason, message: text.to_string()})); }, None => { // Subscribe Id let sid = gjson::get(text, "result"); if !sid.exists() { - return Err(PubsubClientError::SubscribeFailed { reason: "invalid `result` field".into(), message: text.clone() }); + return Err(PubsubClientError::SubscribeFailed { reason: "invalid `result` field".into(), message: text.to_string() }); } let sid = sid.u64(); @@ -579,8 +579,8 @@ impl PubsubClient { request_id += 1; let method = format!("{operation}Subscribe"); let text = json!({"jsonrpc":"2.0","id":request_id,"method":method,"params":params}).to_string(); - if let Err(err) = ws.send(Message::Text(text.clone())).await { - log::warn!(target: "ws", "sending subscribe failed: {text}, {err:?}"); + if let Err(ref err) = ws.send(Message::Text(text.clone().into())).await { + log::warn!(target: "ws", "sending subscribe failed, {text}, {err:?}"); break 'manager; } inflight_subscribes.insert(request_id, (operation, text, response_sender)); @@ -593,7 +593,7 @@ impl PubsubClient { request_id += 1; let method = format!("{operation}Unsubscribe"); let text = json!({"jsonrpc":"2.0","id":request_id,"method":method,"params":[sid]}).to_string(); - if let Err(err) = ws.send(Message::Text(text.clone())).await { + if let Err(err) = ws.send(Message::Text(text.clone().into())).await { log::warn!(target: "ws", "sending unsubscribe failed: {text}, {err:?}"); } inflight_unsubscribes.insert(request_id, response_sender); @@ -604,7 +604,7 @@ impl PubsubClient { let (method, params, response_sender) = request.expect("request channel"); request_id += 1; let text = json!({"jsonrpc":"2.0","id":request_id,"method":method,"params":params}).to_string(); - if let Err(err) = ws.send(Message::Text(text)).await { + if let Err(err) = ws.send(Message::Text(text.into())).await { log::warn!(target: "ws", "sending request failed. {err:?}"); } inflight_requests.insert(request_id, response_sender); diff --git a/crates/src/drift_idl.rs b/crates/src/drift_idl.rs index 4e0b5035..1d0da23d 100644 --- a/crates/src/drift_idl.rs +++ b/crates/src/drift_idl.rs @@ -32,7 +32,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeUser { - const DISCRIMINATOR: [u8; 8] = [111, 17, 185, 250, 60, 122, 38, 254]; + const DISCRIMINATOR: &[u8] = &[111, 17, 185, 250, 60, 122, 38, 254]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeUser {} @@ -40,7 +40,7 @@ pub mod instructions { pub struct InitializeUserStats {} #[automatically_derived] impl anchor_lang::Discriminator for InitializeUserStats { - const DISCRIMINATOR: [u8; 8] = [254, 243, 72, 98, 251, 130, 168, 213]; + const DISCRIMINATOR: &[u8] = &[254, 243, 72, 98, 251, 130, 168, 213]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeUserStats {} @@ -50,7 +50,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSignedMsgUserOrders { - const DISCRIMINATOR: [u8; 8] = [164, 99, 156, 126, 156, 57, 99, 180]; + const DISCRIMINATOR: &[u8] = &[164, 99, 156, 126, 156, 57, 99, 180]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeSignedMsgUserOrders {} @@ -60,7 +60,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for ResizeSignedMsgUserOrders { - const DISCRIMINATOR: [u8; 8] = [137, 10, 87, 150, 18, 115, 79, 168]; + const DISCRIMINATOR: &[u8] = &[137, 10, 87, 150, 18, 115, 79, 168]; } #[automatically_derived] impl anchor_lang::InstructionData for ResizeSignedMsgUserOrders {} @@ -70,7 +70,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSignedMsgWsDelegates { - const DISCRIMINATOR: [u8; 8] = [40, 132, 96, 219, 184, 193, 80, 8]; + const DISCRIMINATOR: &[u8] = &[40, 132, 96, 219, 184, 193, 80, 8]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeSignedMsgWsDelegates {} @@ -81,7 +81,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for ChangeSignedMsgWsDelegateStatus { - const DISCRIMINATOR: [u8; 8] = [252, 202, 252, 219, 179, 27, 84, 138]; + const DISCRIMINATOR: &[u8] = &[252, 202, 252, 219, 179, 27, 84, 138]; } #[automatically_derived] impl anchor_lang::InstructionData for ChangeSignedMsgWsDelegateStatus {} @@ -89,7 +89,7 @@ pub mod instructions { pub struct InitializeFuelOverflow {} #[automatically_derived] impl anchor_lang::Discriminator for InitializeFuelOverflow { - const DISCRIMINATOR: [u8; 8] = [88, 223, 132, 161, 208, 88, 142, 42]; + const DISCRIMINATOR: &[u8] = &[88, 223, 132, 161, 208, 88, 142, 42]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeFuelOverflow {} @@ -97,7 +97,7 @@ pub mod instructions { pub struct SweepFuel {} #[automatically_derived] impl anchor_lang::Discriminator for SweepFuel { - const DISCRIMINATOR: [u8; 8] = [175, 107, 19, 56, 165, 241, 43, 69]; + const DISCRIMINATOR: &[u8] = &[175, 107, 19, 56, 165, 241, 43, 69]; } #[automatically_derived] impl anchor_lang::InstructionData for SweepFuel {} @@ -105,7 +105,7 @@ pub mod instructions { pub struct ResetFuelSeason {} #[automatically_derived] impl anchor_lang::Discriminator for ResetFuelSeason { - const DISCRIMINATOR: [u8; 8] = [199, 122, 192, 255, 32, 99, 63, 200]; + const DISCRIMINATOR: &[u8] = &[199, 122, 192, 255, 32, 99, 63, 200]; } #[automatically_derived] impl anchor_lang::InstructionData for ResetFuelSeason {} @@ -115,7 +115,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeReferrerName { - const DISCRIMINATOR: [u8; 8] = [235, 126, 231, 10, 42, 164, 26, 61]; + const DISCRIMINATOR: &[u8] = &[235, 126, 231, 10, 42, 164, 26, 61]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeReferrerName {} @@ -127,7 +127,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for Deposit { - const DISCRIMINATOR: [u8; 8] = [242, 35, 198, 137, 82, 225, 242, 182]; + const DISCRIMINATOR: &[u8] = &[242, 35, 198, 137, 82, 225, 242, 182]; } #[automatically_derived] impl anchor_lang::InstructionData for Deposit {} @@ -139,7 +139,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for Withdraw { - const DISCRIMINATOR: [u8; 8] = [183, 18, 70, 156, 148, 109, 161, 34]; + const DISCRIMINATOR: &[u8] = &[183, 18, 70, 156, 148, 109, 161, 34]; } #[automatically_derived] impl anchor_lang::InstructionData for Withdraw {} @@ -150,7 +150,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for TransferDeposit { - const DISCRIMINATOR: [u8; 8] = [20, 20, 147, 223, 41, 63, 204, 111]; + const DISCRIMINATOR: &[u8] = &[20, 20, 147, 223, 41, 63, 204, 111]; } #[automatically_derived] impl anchor_lang::InstructionData for TransferDeposit {} @@ -165,7 +165,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for TransferPools { - const DISCRIMINATOR: [u8; 8] = [197, 103, 154, 25, 107, 90, 60, 94]; + const DISCRIMINATOR: &[u8] = &[197, 103, 154, 25, 107, 90, 60, 94]; } #[automatically_derived] impl anchor_lang::InstructionData for TransferPools {} @@ -175,7 +175,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlacePerpOrder { - const DISCRIMINATOR: [u8; 8] = [69, 161, 93, 202, 120, 126, 76, 185]; + const DISCRIMINATOR: &[u8] = &[69, 161, 93, 202, 120, 126, 76, 185]; } #[automatically_derived] impl anchor_lang::InstructionData for PlacePerpOrder {} @@ -185,7 +185,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrder { - const DISCRIMINATOR: [u8; 8] = [95, 129, 237, 240, 8, 49, 223, 132]; + const DISCRIMINATOR: &[u8] = &[95, 129, 237, 240, 8, 49, 223, 132]; } #[automatically_derived] impl anchor_lang::InstructionData for CancelOrder {} @@ -195,7 +195,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrderByUserId { - const DISCRIMINATOR: [u8; 8] = [107, 211, 250, 133, 18, 37, 57, 100]; + const DISCRIMINATOR: &[u8] = &[107, 211, 250, 133, 18, 37, 57, 100]; } #[automatically_derived] impl anchor_lang::InstructionData for CancelOrderByUserId {} @@ -207,7 +207,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrders { - const DISCRIMINATOR: [u8; 8] = [238, 225, 95, 158, 227, 103, 8, 194]; + const DISCRIMINATOR: &[u8] = &[238, 225, 95, 158, 227, 103, 8, 194]; } #[automatically_derived] impl anchor_lang::InstructionData for CancelOrders {} @@ -217,7 +217,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrdersByIds { - const DISCRIMINATOR: [u8; 8] = [134, 19, 144, 165, 94, 240, 210, 94]; + const DISCRIMINATOR: &[u8] = &[134, 19, 144, 165, 94, 240, 210, 94]; } #[automatically_derived] impl anchor_lang::InstructionData for CancelOrdersByIds {} @@ -228,7 +228,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for ModifyOrder { - const DISCRIMINATOR: [u8; 8] = [47, 124, 117, 255, 201, 197, 130, 94]; + const DISCRIMINATOR: &[u8] = &[47, 124, 117, 255, 201, 197, 130, 94]; } #[automatically_derived] impl anchor_lang::InstructionData for ModifyOrder {} @@ -239,7 +239,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for ModifyOrderByUserId { - const DISCRIMINATOR: [u8; 8] = [158, 77, 4, 253, 252, 194, 161, 179]; + const DISCRIMINATOR: &[u8] = &[158, 77, 4, 253, 252, 194, 161, 179]; } #[automatically_derived] impl anchor_lang::InstructionData for ModifyOrderByUserId {} @@ -250,7 +250,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndTakePerpOrder { - const DISCRIMINATOR: [u8; 8] = [213, 51, 1, 187, 108, 220, 230, 224]; + const DISCRIMINATOR: &[u8] = &[213, 51, 1, 187, 108, 220, 230, 224]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceAndTakePerpOrder {} @@ -261,7 +261,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndMakePerpOrder { - const DISCRIMINATOR: [u8; 8] = [149, 117, 11, 237, 47, 95, 89, 237]; + const DISCRIMINATOR: &[u8] = &[149, 117, 11, 237, 47, 95, 89, 237]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceAndMakePerpOrder {} @@ -272,7 +272,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndMakeSignedMsgPerpOrder { - const DISCRIMINATOR: [u8; 8] = [16, 26, 123, 131, 94, 29, 175, 98]; + const DISCRIMINATOR: &[u8] = &[16, 26, 123, 131, 94, 29, 175, 98]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceAndMakeSignedMsgPerpOrder {} @@ -283,7 +283,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceSignedMsgTakerOrder { - const DISCRIMINATOR: [u8; 8] = [32, 79, 101, 139, 25, 6, 98, 15]; + const DISCRIMINATOR: &[u8] = &[32, 79, 101, 139, 25, 6, 98, 15]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceSignedMsgTakerOrder {} @@ -293,7 +293,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceSpotOrder { - const DISCRIMINATOR: [u8; 8] = [45, 79, 81, 160, 248, 90, 91, 220]; + const DISCRIMINATOR: &[u8] = &[45, 79, 81, 160, 248, 90, 91, 220]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceSpotOrder {} @@ -305,7 +305,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndTakeSpotOrder { - const DISCRIMINATOR: [u8; 8] = [191, 3, 138, 71, 114, 198, 202, 100]; + const DISCRIMINATOR: &[u8] = &[191, 3, 138, 71, 114, 198, 202, 100]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceAndTakeSpotOrder {} @@ -317,7 +317,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndMakeSpotOrder { - const DISCRIMINATOR: [u8; 8] = [149, 158, 85, 66, 239, 9, 243, 98]; + const DISCRIMINATOR: &[u8] = &[149, 158, 85, 66, 239, 9, 243, 98]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceAndMakeSpotOrder {} @@ -327,7 +327,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceOrders { - const DISCRIMINATOR: [u8; 8] = [60, 63, 50, 123, 12, 197, 60, 190]; + const DISCRIMINATOR: &[u8] = &[60, 63, 50, 123, 12, 197, 60, 190]; } #[automatically_derived] impl anchor_lang::InstructionData for PlaceOrders {} @@ -339,7 +339,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for BeginSwap { - const DISCRIMINATOR: [u8; 8] = [174, 109, 228, 1, 242, 105, 232, 105]; + const DISCRIMINATOR: &[u8] = &[174, 109, 228, 1, 242, 105, 232, 105]; } #[automatically_derived] impl anchor_lang::InstructionData for BeginSwap {} @@ -352,7 +352,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for EndSwap { - const DISCRIMINATOR: [u8; 8] = [177, 184, 27, 193, 34, 13, 210, 145]; + const DISCRIMINATOR: &[u8] = &[177, 184, 27, 193, 34, 13, 210, 145]; } #[automatically_derived] impl anchor_lang::InstructionData for EndSwap {} @@ -363,7 +363,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for AddPerpLpShares { - const DISCRIMINATOR: [u8; 8] = [56, 209, 56, 197, 119, 254, 188, 117]; + const DISCRIMINATOR: &[u8] = &[56, 209, 56, 197, 119, 254, 188, 117]; } #[automatically_derived] impl anchor_lang::InstructionData for AddPerpLpShares {} @@ -374,7 +374,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for RemovePerpLpShares { - const DISCRIMINATOR: [u8; 8] = [213, 89, 217, 18, 160, 55, 53, 141]; + const DISCRIMINATOR: &[u8] = &[213, 89, 217, 18, 160, 55, 53, 141]; } #[automatically_derived] impl anchor_lang::InstructionData for RemovePerpLpShares {} @@ -385,7 +385,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for RemovePerpLpSharesInExpiringMarket { - const DISCRIMINATOR: [u8; 8] = [83, 254, 253, 137, 59, 122, 68, 156]; + const DISCRIMINATOR: &[u8] = &[83, 254, 253, 137, 59, 122, 68, 156]; } #[automatically_derived] impl anchor_lang::InstructionData for RemovePerpLpSharesInExpiringMarket {} @@ -396,7 +396,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserName { - const DISCRIMINATOR: [u8; 8] = [135, 25, 185, 56, 165, 53, 34, 136]; + const DISCRIMINATOR: &[u8] = &[135, 25, 185, 56, 165, 53, 34, 136]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserName {} @@ -407,7 +407,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserCustomMarginRatio { - const DISCRIMINATOR: [u8; 8] = [21, 221, 140, 187, 32, 129, 11, 123]; + const DISCRIMINATOR: &[u8] = &[21, 221, 140, 187, 32, 129, 11, 123]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserCustomMarginRatio {} @@ -418,7 +418,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserMarginTradingEnabled { - const DISCRIMINATOR: [u8; 8] = [194, 92, 204, 223, 246, 188, 31, 203]; + const DISCRIMINATOR: &[u8] = &[194, 92, 204, 223, 246, 188, 31, 203]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserMarginTradingEnabled {} @@ -429,7 +429,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserPoolId { - const DISCRIMINATOR: [u8; 8] = [219, 86, 73, 106, 56, 218, 128, 109]; + const DISCRIMINATOR: &[u8] = &[219, 86, 73, 106, 56, 218, 128, 109]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserPoolId {} @@ -440,7 +440,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserDelegate { - const DISCRIMINATOR: [u8; 8] = [139, 205, 141, 141, 113, 36, 94, 187]; + const DISCRIMINATOR: &[u8] = &[139, 205, 141, 141, 113, 36, 94, 187]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserDelegate {} @@ -451,7 +451,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserReduceOnly { - const DISCRIMINATOR: [u8; 8] = [199, 71, 42, 67, 144, 19, 86, 109]; + const DISCRIMINATOR: &[u8] = &[199, 71, 42, 67, 144, 19, 86, 109]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserReduceOnly {} @@ -462,7 +462,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserAdvancedLp { - const DISCRIMINATOR: [u8; 8] = [66, 80, 107, 186, 27, 242, 66, 95]; + const DISCRIMINATOR: &[u8] = &[66, 80, 107, 186, 27, 242, 66, 95]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserAdvancedLp {} @@ -473,7 +473,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserProtectedMakerOrders { - const DISCRIMINATOR: [u8; 8] = [114, 39, 123, 198, 187, 25, 90, 219]; + const DISCRIMINATOR: &[u8] = &[114, 39, 123, 198, 187, 25, 90, 219]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserProtectedMakerOrders {} @@ -481,7 +481,7 @@ pub mod instructions { pub struct DeleteUser {} #[automatically_derived] impl anchor_lang::Discriminator for DeleteUser { - const DISCRIMINATOR: [u8; 8] = [186, 85, 17, 249, 219, 231, 98, 251]; + const DISCRIMINATOR: &[u8] = &[186, 85, 17, 249, 219, 231, 98, 251]; } #[automatically_derived] impl anchor_lang::InstructionData for DeleteUser {} @@ -489,7 +489,7 @@ pub mod instructions { pub struct ForceDeleteUser {} #[automatically_derived] impl anchor_lang::Discriminator for ForceDeleteUser { - const DISCRIMINATOR: [u8; 8] = [2, 241, 195, 172, 227, 24, 254, 158]; + const DISCRIMINATOR: &[u8] = &[2, 241, 195, 172, 227, 24, 254, 158]; } #[automatically_derived] impl anchor_lang::InstructionData for ForceDeleteUser {} @@ -497,7 +497,7 @@ pub mod instructions { pub struct DeleteSignedMsgUserOrders {} #[automatically_derived] impl anchor_lang::Discriminator for DeleteSignedMsgUserOrders { - const DISCRIMINATOR: [u8; 8] = [221, 247, 128, 253, 212, 254, 46, 153]; + const DISCRIMINATOR: &[u8] = &[221, 247, 128, 253, 212, 254, 46, 153]; } #[automatically_derived] impl anchor_lang::InstructionData for DeleteSignedMsgUserOrders {} @@ -505,7 +505,7 @@ pub mod instructions { pub struct ReclaimRent {} #[automatically_derived] impl anchor_lang::Discriminator for ReclaimRent { - const DISCRIMINATOR: [u8; 8] = [218, 200, 19, 197, 227, 89, 192, 22]; + const DISCRIMINATOR: &[u8] = &[218, 200, 19, 197, 227, 89, 192, 22]; } #[automatically_derived] impl anchor_lang::InstructionData for ReclaimRent {} @@ -515,7 +515,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for EnableUserHighLeverageMode { - const DISCRIMINATOR: [u8; 8] = [231, 24, 230, 112, 201, 173, 73, 184]; + const DISCRIMINATOR: &[u8] = &[231, 24, 230, 112, 201, 173, 73, 184]; } #[automatically_derived] impl anchor_lang::InstructionData for EnableUserHighLeverageMode {} @@ -526,7 +526,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for FillPerpOrder { - const DISCRIMINATOR: [u8; 8] = [13, 188, 248, 103, 134, 217, 106, 240]; + const DISCRIMINATOR: &[u8] = &[13, 188, 248, 103, 134, 217, 106, 240]; } #[automatically_derived] impl anchor_lang::InstructionData for FillPerpOrder {} @@ -534,7 +534,7 @@ pub mod instructions { pub struct RevertFill {} #[automatically_derived] impl anchor_lang::Discriminator for RevertFill { - const DISCRIMINATOR: [u8; 8] = [236, 238, 176, 69, 239, 10, 181, 193]; + const DISCRIMINATOR: &[u8] = &[236, 238, 176, 69, 239, 10, 181, 193]; } #[automatically_derived] impl anchor_lang::InstructionData for RevertFill {} @@ -546,7 +546,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for FillSpotOrder { - const DISCRIMINATOR: [u8; 8] = [212, 206, 130, 173, 21, 34, 199, 40]; + const DISCRIMINATOR: &[u8] = &[212, 206, 130, 173, 21, 34, 199, 40]; } #[automatically_derived] impl anchor_lang::InstructionData for FillSpotOrder {} @@ -556,7 +556,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for TriggerOrder { - const DISCRIMINATOR: [u8; 8] = [63, 112, 51, 233, 232, 47, 240, 199]; + const DISCRIMINATOR: &[u8] = &[63, 112, 51, 233, 232, 47, 240, 199]; } #[automatically_derived] impl anchor_lang::InstructionData for TriggerOrder {} @@ -564,7 +564,7 @@ pub mod instructions { pub struct ForceCancelOrders {} #[automatically_derived] impl anchor_lang::Discriminator for ForceCancelOrders { - const DISCRIMINATOR: [u8; 8] = [64, 181, 196, 63, 222, 72, 64, 232]; + const DISCRIMINATOR: &[u8] = &[64, 181, 196, 63, 222, 72, 64, 232]; } #[automatically_derived] impl anchor_lang::InstructionData for ForceCancelOrders {} @@ -572,7 +572,7 @@ pub mod instructions { pub struct UpdateUserIdle {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserIdle { - const DISCRIMINATOR: [u8; 8] = [253, 133, 67, 22, 103, 161, 20, 100]; + const DISCRIMINATOR: &[u8] = &[253, 133, 67, 22, 103, 161, 20, 100]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserIdle {} @@ -580,7 +580,7 @@ pub mod instructions { pub struct LogUserBalances {} #[automatically_derived] impl anchor_lang::Discriminator for LogUserBalances { - const DISCRIMINATOR: [u8; 8] = [162, 21, 35, 251, 32, 57, 161, 210]; + const DISCRIMINATOR: &[u8] = &[162, 21, 35, 251, 32, 57, 161, 210]; } #[automatically_derived] impl anchor_lang::InstructionData for LogUserBalances {} @@ -588,7 +588,7 @@ pub mod instructions { pub struct DisableUserHighLeverageMode {} #[automatically_derived] impl anchor_lang::Discriminator for DisableUserHighLeverageMode { - const DISCRIMINATOR: [u8; 8] = [183, 155, 45, 0, 226, 85, 213, 69]; + const DISCRIMINATOR: &[u8] = &[183, 155, 45, 0, 226, 85, 213, 69]; } #[automatically_derived] impl anchor_lang::InstructionData for DisableUserHighLeverageMode {} @@ -596,7 +596,7 @@ pub mod instructions { pub struct UpdateUserFuelBonus {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserFuelBonus { - const DISCRIMINATOR: [u8; 8] = [88, 175, 201, 190, 222, 100, 143, 57]; + const DISCRIMINATOR: &[u8] = &[88, 175, 201, 190, 222, 100, 143, 57]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserFuelBonus {} @@ -604,7 +604,7 @@ pub mod instructions { pub struct UpdateUserStatsReferrerStatus {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserStatsReferrerStatus { - const DISCRIMINATOR: [u8; 8] = [174, 154, 72, 42, 191, 148, 145, 205]; + const DISCRIMINATOR: &[u8] = &[174, 154, 72, 42, 191, 148, 145, 205]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserStatsReferrerStatus {} @@ -612,7 +612,7 @@ pub mod instructions { pub struct UpdateUserOpenOrdersCount {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserOpenOrdersCount { - const DISCRIMINATOR: [u8; 8] = [104, 39, 65, 210, 250, 163, 100, 134]; + const DISCRIMINATOR: &[u8] = &[104, 39, 65, 210, 250, 163, 100, 134]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserOpenOrdersCount {} @@ -622,7 +622,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for AdminDisableUpdatePerpBidAskTwap { - const DISCRIMINATOR: [u8; 8] = [17, 164, 82, 45, 183, 86, 191, 199]; + const DISCRIMINATOR: &[u8] = &[17, 164, 82, 45, 183, 86, 191, 199]; } #[automatically_derived] impl anchor_lang::InstructionData for AdminDisableUpdatePerpBidAskTwap {} @@ -632,7 +632,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for SettlePnl { - const DISCRIMINATOR: [u8; 8] = [43, 61, 234, 45, 15, 95, 152, 153]; + const DISCRIMINATOR: &[u8] = &[43, 61, 234, 45, 15, 95, 152, 153]; } #[automatically_derived] impl anchor_lang::InstructionData for SettlePnl {} @@ -643,7 +643,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for SettleMultiplePnls { - const DISCRIMINATOR: [u8; 8] = [127, 66, 117, 57, 40, 50, 152, 127]; + const DISCRIMINATOR: &[u8] = &[127, 66, 117, 57, 40, 50, 152, 127]; } #[automatically_derived] impl anchor_lang::InstructionData for SettleMultiplePnls {} @@ -651,7 +651,7 @@ pub mod instructions { pub struct SettleFundingPayment {} #[automatically_derived] impl anchor_lang::Discriminator for SettleFundingPayment { - const DISCRIMINATOR: [u8; 8] = [222, 90, 202, 94, 28, 45, 115, 183]; + const DISCRIMINATOR: &[u8] = &[222, 90, 202, 94, 28, 45, 115, 183]; } #[automatically_derived] impl anchor_lang::InstructionData for SettleFundingPayment {} @@ -661,7 +661,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for SettleLp { - const DISCRIMINATOR: [u8; 8] = [155, 231, 116, 113, 97, 229, 139, 141]; + const DISCRIMINATOR: &[u8] = &[155, 231, 116, 113, 97, 229, 139, 141]; } #[automatically_derived] impl anchor_lang::InstructionData for SettleLp {} @@ -671,7 +671,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for SettleExpiredMarket { - const DISCRIMINATOR: [u8; 8] = [120, 89, 11, 25, 122, 77, 72, 193]; + const DISCRIMINATOR: &[u8] = &[120, 89, 11, 25, 122, 77, 72, 193]; } #[automatically_derived] impl anchor_lang::InstructionData for SettleExpiredMarket {} @@ -683,7 +683,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidatePerp { - const DISCRIMINATOR: [u8; 8] = [75, 35, 119, 247, 191, 18, 139, 2]; + const DISCRIMINATOR: &[u8] = &[75, 35, 119, 247, 191, 18, 139, 2]; } #[automatically_derived] impl anchor_lang::InstructionData for LiquidatePerp {} @@ -693,7 +693,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidatePerpWithFill { - const DISCRIMINATOR: [u8; 8] = [95, 111, 124, 105, 86, 169, 187, 34]; + const DISCRIMINATOR: &[u8] = &[95, 111, 124, 105, 86, 169, 187, 34]; } #[automatically_derived] impl anchor_lang::InstructionData for LiquidatePerpWithFill {} @@ -706,7 +706,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateSpot { - const DISCRIMINATOR: [u8; 8] = [107, 0, 128, 41, 35, 229, 251, 18]; + const DISCRIMINATOR: &[u8] = &[107, 0, 128, 41, 35, 229, 251, 18]; } #[automatically_derived] impl anchor_lang::InstructionData for LiquidateSpot {} @@ -718,7 +718,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateSpotWithSwapBegin { - const DISCRIMINATOR: [u8; 8] = [12, 43, 176, 83, 156, 251, 117, 13]; + const DISCRIMINATOR: &[u8] = &[12, 43, 176, 83, 156, 251, 117, 13]; } #[automatically_derived] impl anchor_lang::InstructionData for LiquidateSpotWithSwapBegin {} @@ -729,7 +729,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateSpotWithSwapEnd { - const DISCRIMINATOR: [u8; 8] = [142, 88, 163, 160, 223, 75, 55, 225]; + const DISCRIMINATOR: &[u8] = &[142, 88, 163, 160, 223, 75, 55, 225]; } #[automatically_derived] impl anchor_lang::InstructionData for LiquidateSpotWithSwapEnd {} @@ -742,7 +742,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateBorrowForPerpPnl { - const DISCRIMINATOR: [u8; 8] = [169, 17, 32, 90, 207, 148, 209, 27]; + const DISCRIMINATOR: &[u8] = &[169, 17, 32, 90, 207, 148, 209, 27]; } #[automatically_derived] impl anchor_lang::InstructionData for LiquidateBorrowForPerpPnl {} @@ -755,7 +755,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidatePerpPnlForDeposit { - const DISCRIMINATOR: [u8; 8] = [237, 75, 198, 235, 233, 186, 75, 35]; + const DISCRIMINATOR: &[u8] = &[237, 75, 198, 235, 233, 186, 75, 35]; } #[automatically_derived] impl anchor_lang::InstructionData for LiquidatePerpPnlForDeposit {} @@ -763,7 +763,7 @@ pub mod instructions { pub struct SetUserStatusToBeingLiquidated {} #[automatically_derived] impl anchor_lang::Discriminator for SetUserStatusToBeingLiquidated { - const DISCRIMINATOR: [u8; 8] = [106, 133, 160, 206, 193, 171, 192, 194]; + const DISCRIMINATOR: &[u8] = &[106, 133, 160, 206, 193, 171, 192, 194]; } #[automatically_derived] impl anchor_lang::InstructionData for SetUserStatusToBeingLiquidated {} @@ -774,7 +774,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for ResolvePerpPnlDeficit { - const DISCRIMINATOR: [u8; 8] = [168, 204, 68, 150, 159, 126, 95, 148]; + const DISCRIMINATOR: &[u8] = &[168, 204, 68, 150, 159, 126, 95, 148]; } #[automatically_derived] impl anchor_lang::InstructionData for ResolvePerpPnlDeficit {} @@ -785,7 +785,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for ResolvePerpBankruptcy { - const DISCRIMINATOR: [u8; 8] = [224, 16, 176, 214, 162, 213, 183, 222]; + const DISCRIMINATOR: &[u8] = &[224, 16, 176, 214, 162, 213, 183, 222]; } #[automatically_derived] impl anchor_lang::InstructionData for ResolvePerpBankruptcy {} @@ -795,7 +795,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for ResolveSpotBankruptcy { - const DISCRIMINATOR: [u8; 8] = [124, 194, 240, 254, 198, 213, 52, 122]; + const DISCRIMINATOR: &[u8] = &[124, 194, 240, 254, 198, 213, 52, 122]; } #[automatically_derived] impl anchor_lang::InstructionData for ResolveSpotBankruptcy {} @@ -805,7 +805,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for SettleRevenueToInsuranceFund { - const DISCRIMINATOR: [u8; 8] = [200, 120, 93, 136, 69, 38, 199, 159]; + const DISCRIMINATOR: &[u8] = &[200, 120, 93, 136, 69, 38, 199, 159]; } #[automatically_derived] impl anchor_lang::InstructionData for SettleRevenueToInsuranceFund {} @@ -815,7 +815,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateFundingRate { - const DISCRIMINATOR: [u8; 8] = [201, 178, 116, 212, 166, 144, 72, 238]; + const DISCRIMINATOR: &[u8] = &[201, 178, 116, 212, 166, 144, 72, 238]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateFundingRate {} @@ -823,7 +823,7 @@ pub mod instructions { pub struct UpdatePrelaunchOracle {} #[automatically_derived] impl anchor_lang::Discriminator for UpdatePrelaunchOracle { - const DISCRIMINATOR: [u8; 8] = [220, 132, 27, 27, 233, 220, 61, 219]; + const DISCRIMINATOR: &[u8] = &[220, 132, 27, 27, 233, 220, 61, 219]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePrelaunchOracle {} @@ -831,7 +831,7 @@ pub mod instructions { pub struct UpdatePerpBidAskTwap {} #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpBidAskTwap { - const DISCRIMINATOR: [u8; 8] = [247, 23, 255, 65, 212, 90, 221, 194]; + const DISCRIMINATOR: &[u8] = &[247, 23, 255, 65, 212, 90, 221, 194]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpBidAskTwap {} @@ -839,7 +839,7 @@ pub mod instructions { pub struct UpdateSpotMarketCumulativeInterest {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketCumulativeInterest { - const DISCRIMINATOR: [u8; 8] = [39, 166, 139, 243, 158, 165, 155, 225]; + const DISCRIMINATOR: &[u8] = &[39, 166, 139, 243, 158, 165, 155, 225]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketCumulativeInterest {} @@ -849,7 +849,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateAmms { - const DISCRIMINATOR: [u8; 8] = [201, 106, 217, 253, 4, 175, 228, 97]; + const DISCRIMINATOR: &[u8] = &[201, 106, 217, 253, 4, 175, 228, 97]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateAmms {} @@ -859,7 +859,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketExpiry { - const DISCRIMINATOR: [u8; 8] = [208, 11, 211, 159, 226, 24, 11, 247]; + const DISCRIMINATOR: &[u8] = &[208, 11, 211, 159, 226, 24, 11, 247]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketExpiry {} @@ -867,7 +867,7 @@ pub mod instructions { pub struct UpdateUserQuoteAssetInsuranceStake {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserQuoteAssetInsuranceStake { - const DISCRIMINATOR: [u8; 8] = [251, 101, 156, 7, 2, 63, 30, 23]; + const DISCRIMINATOR: &[u8] = &[251, 101, 156, 7, 2, 63, 30, 23]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserQuoteAssetInsuranceStake {} @@ -875,7 +875,7 @@ pub mod instructions { pub struct UpdateUserGovTokenInsuranceStake {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserGovTokenInsuranceStake { - const DISCRIMINATOR: [u8; 8] = [143, 99, 235, 187, 20, 159, 184, 84]; + const DISCRIMINATOR: &[u8] = &[143, 99, 235, 187, 20, 159, 184, 84]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserGovTokenInsuranceStake {} @@ -885,7 +885,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserGovTokenInsuranceStakeDevnet { - const DISCRIMINATOR: [u8; 8] = [129, 185, 243, 183, 228, 111, 64, 175]; + const DISCRIMINATOR: &[u8] = &[129, 185, 243, 183, 228, 111, 64, 175]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateUserGovTokenInsuranceStakeDevnet {} @@ -895,7 +895,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [187, 179, 243, 70, 248, 90, 92, 147]; + const DISCRIMINATOR: &[u8] = &[187, 179, 243, 70, 248, 90, 92, 147]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeInsuranceFundStake {} @@ -906,7 +906,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for AddInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [251, 144, 115, 11, 222, 47, 62, 236]; + const DISCRIMINATOR: &[u8] = &[251, 144, 115, 11, 222, 47, 62, 236]; } #[automatically_derived] impl anchor_lang::InstructionData for AddInsuranceFundStake {} @@ -917,7 +917,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for RequestRemoveInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [142, 70, 204, 92, 73, 106, 180, 52]; + const DISCRIMINATOR: &[u8] = &[142, 70, 204, 92, 73, 106, 180, 52]; } #[automatically_derived] impl anchor_lang::InstructionData for RequestRemoveInsuranceFundStake {} @@ -927,7 +927,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for CancelRequestRemoveInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [97, 235, 78, 62, 212, 42, 241, 127]; + const DISCRIMINATOR: &[u8] = &[97, 235, 78, 62, 212, 42, 241, 127]; } #[automatically_derived] impl anchor_lang::InstructionData for CancelRequestRemoveInsuranceFundStake {} @@ -937,7 +937,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for RemoveInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [128, 166, 142, 9, 254, 187, 143, 174]; + const DISCRIMINATOR: &[u8] = &[128, 166, 142, 9, 254, 187, 143, 174]; } #[automatically_derived] impl anchor_lang::InstructionData for RemoveInsuranceFundStake {} @@ -948,7 +948,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for TransferProtocolIfShares { - const DISCRIMINATOR: [u8; 8] = [94, 93, 226, 240, 195, 201, 184, 109]; + const DISCRIMINATOR: &[u8] = &[94, 93, 226, 240, 195, 201, 184, 109]; } #[automatically_derived] impl anchor_lang::InstructionData for TransferProtocolIfShares {} @@ -959,7 +959,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePythPullOracle { - const DISCRIMINATOR: [u8; 8] = [230, 191, 189, 94, 108, 59, 74, 197]; + const DISCRIMINATOR: &[u8] = &[230, 191, 189, 94, 108, 59, 74, 197]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePythPullOracle {} @@ -970,7 +970,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PostPythPullOracleUpdateAtomic { - const DISCRIMINATOR: [u8; 8] = [116, 122, 137, 158, 224, 195, 173, 119]; + const DISCRIMINATOR: &[u8] = &[116, 122, 137, 158, 224, 195, 173, 119]; } #[automatically_derived] impl anchor_lang::InstructionData for PostPythPullOracleUpdateAtomic {} @@ -980,7 +980,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PostMultiPythPullOracleUpdatesAtomic { - const DISCRIMINATOR: [u8; 8] = [243, 79, 204, 228, 227, 208, 100, 244]; + const DISCRIMINATOR: &[u8] = &[243, 79, 204, 228, 227, 208, 100, 244]; } #[automatically_derived] impl anchor_lang::InstructionData for PostMultiPythPullOracleUpdatesAtomic {} @@ -988,7 +988,7 @@ pub mod instructions { pub struct PauseSpotMarketDepositWithdraw {} #[automatically_derived] impl anchor_lang::Discriminator for PauseSpotMarketDepositWithdraw { - const DISCRIMINATOR: [u8; 8] = [183, 119, 59, 170, 137, 35, 242, 86]; + const DISCRIMINATOR: &[u8] = &[183, 119, 59, 170, 137, 35, 242, 86]; } #[automatically_derived] impl anchor_lang::InstructionData for PauseSpotMarketDepositWithdraw {} @@ -996,7 +996,7 @@ pub mod instructions { pub struct Initialize {} #[automatically_derived] impl anchor_lang::Discriminator for Initialize { - const DISCRIMINATOR: [u8; 8] = [175, 175, 109, 31, 13, 152, 155, 237]; + const DISCRIMINATOR: &[u8] = &[175, 175, 109, 31, 13, 152, 155, 237]; } #[automatically_derived] impl anchor_lang::InstructionData for Initialize {} @@ -1024,7 +1024,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSpotMarket { - const DISCRIMINATOR: [u8; 8] = [234, 196, 128, 44, 94, 15, 48, 201]; + const DISCRIMINATOR: &[u8] = &[234, 196, 128, 44, 94, 15, 48, 201]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeSpotMarket {} @@ -1034,7 +1034,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for DeleteInitializedSpotMarket { - const DISCRIMINATOR: [u8; 8] = [31, 140, 67, 191, 189, 20, 101, 221]; + const DISCRIMINATOR: &[u8] = &[31, 140, 67, 191, 189, 20, 101, 221]; } #[automatically_derived] impl anchor_lang::InstructionData for DeleteInitializedSpotMarket {} @@ -1044,7 +1044,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSerumFulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [193, 211, 132, 172, 70, 171, 7, 94]; + const DISCRIMINATOR: &[u8] = &[193, 211, 132, 172, 70, 171, 7, 94]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeSerumFulfillmentConfig {} @@ -1054,7 +1054,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSerumFulfillmentConfigStatus { - const DISCRIMINATOR: [u8; 8] = [171, 109, 240, 251, 95, 1, 149, 89]; + const DISCRIMINATOR: &[u8] = &[171, 109, 240, 251, 95, 1, 149, 89]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSerumFulfillmentConfigStatus {} @@ -1064,7 +1064,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeOpenbookV2FulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [7, 221, 103, 153, 107, 57, 27, 197]; + const DISCRIMINATOR: &[u8] = &[7, 221, 103, 153, 107, 57, 27, 197]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeOpenbookV2FulfillmentConfig {} @@ -1074,7 +1074,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for OpenbookV2FulfillmentConfigStatus { - const DISCRIMINATOR: [u8; 8] = [25, 173, 19, 189, 4, 211, 64, 238]; + const DISCRIMINATOR: &[u8] = &[25, 173, 19, 189, 4, 211, 64, 238]; } #[automatically_derived] impl anchor_lang::InstructionData for OpenbookV2FulfillmentConfigStatus {} @@ -1084,7 +1084,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePhoenixFulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [135, 132, 110, 107, 185, 160, 169, 154]; + const DISCRIMINATOR: &[u8] = &[135, 132, 110, 107, 185, 160, 169, 154]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializePhoenixFulfillmentConfig {} @@ -1094,7 +1094,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PhoenixFulfillmentConfigStatus { - const DISCRIMINATOR: [u8; 8] = [96, 31, 113, 32, 12, 203, 7, 154]; + const DISCRIMINATOR: &[u8] = &[96, 31, 113, 32, 12, 203, 7, 154]; } #[automatically_derived] impl anchor_lang::InstructionData for PhoenixFulfillmentConfigStatus {} @@ -1102,7 +1102,7 @@ pub mod instructions { pub struct UpdateSerumVault {} #[automatically_derived] impl anchor_lang::Discriminator for UpdateSerumVault { - const DISCRIMINATOR: [u8; 8] = [219, 8, 246, 96, 169, 121, 91, 110]; + const DISCRIMINATOR: &[u8] = &[219, 8, 246, 96, 169, 121, 91, 110]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSerumVault {} @@ -1136,7 +1136,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePerpMarket { - const DISCRIMINATOR: [u8; 8] = [132, 9, 229, 118, 117, 118, 117, 62]; + const DISCRIMINATOR: &[u8] = &[132, 9, 229, 118, 117, 118, 117, 62]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializePerpMarket {} @@ -1144,7 +1144,7 @@ pub mod instructions { pub struct InitializePredictionMarket {} #[automatically_derived] impl anchor_lang::Discriminator for InitializePredictionMarket { - const DISCRIMINATOR: [u8; 8] = [248, 70, 198, 224, 224, 105, 125, 195]; + const DISCRIMINATOR: &[u8] = &[248, 70, 198, 224, 224, 105, 125, 195]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializePredictionMarket {} @@ -1154,7 +1154,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for DeleteInitializedPerpMarket { - const DISCRIMINATOR: [u8; 8] = [91, 154, 24, 87, 106, 59, 190, 66]; + const DISCRIMINATOR: &[u8] = &[91, 154, 24, 87, 106, 59, 190, 66]; } #[automatically_derived] impl anchor_lang::InstructionData for DeleteInitializedPerpMarket {} @@ -1166,7 +1166,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for MoveAmmPrice { - const DISCRIMINATOR: [u8; 8] = [235, 109, 2, 82, 219, 118, 6, 159]; + const DISCRIMINATOR: &[u8] = &[235, 109, 2, 82, 219, 118, 6, 159]; } #[automatically_derived] impl anchor_lang::InstructionData for MoveAmmPrice {} @@ -1177,7 +1177,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for RecenterPerpMarketAmm { - const DISCRIMINATOR: [u8; 8] = [24, 87, 10, 115, 165, 190, 80, 139]; + const DISCRIMINATOR: &[u8] = &[24, 87, 10, 115, 165, 190, 80, 139]; } #[automatically_derived] impl anchor_lang::InstructionData for RecenterPerpMarketAmm {} @@ -1187,7 +1187,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketAmmSummaryStats { - const DISCRIMINATOR: [u8; 8] = [122, 101, 249, 238, 209, 9, 241, 245]; + const DISCRIMINATOR: &[u8] = &[122, 101, 249, 238, 209, 9, 241, 245]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketAmmSummaryStats {} @@ -1197,7 +1197,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketExpiry { - const DISCRIMINATOR: [u8; 8] = [44, 221, 227, 151, 131, 140, 22, 110]; + const DISCRIMINATOR: &[u8] = &[44, 221, 227, 151, 131, 140, 22, 110]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketExpiry {} @@ -1205,7 +1205,7 @@ pub mod instructions { pub struct SettleExpiredMarketPoolsToRevenuePool {} #[automatically_derived] impl anchor_lang::Discriminator for SettleExpiredMarketPoolsToRevenuePool { - const DISCRIMINATOR: [u8; 8] = [55, 19, 238, 169, 227, 90, 200, 184]; + const DISCRIMINATOR: &[u8] = &[55, 19, 238, 169, 227, 90, 200, 184]; } #[automatically_derived] impl anchor_lang::InstructionData for SettleExpiredMarketPoolsToRevenuePool {} @@ -1215,7 +1215,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for DepositIntoPerpMarketFeePool { - const DISCRIMINATOR: [u8; 8] = [34, 58, 57, 68, 97, 80, 244, 6]; + const DISCRIMINATOR: &[u8] = &[34, 58, 57, 68, 97, 80, 244, 6]; } #[automatically_derived] impl anchor_lang::InstructionData for DepositIntoPerpMarketFeePool {} @@ -1225,7 +1225,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for DepositIntoSpotMarketVault { - const DISCRIMINATOR: [u8; 8] = [48, 252, 119, 73, 255, 205, 174, 247]; + const DISCRIMINATOR: &[u8] = &[48, 252, 119, 73, 255, 205, 174, 247]; } #[automatically_derived] impl anchor_lang::InstructionData for DepositIntoSpotMarketVault {} @@ -1235,7 +1235,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for DepositIntoSpotMarketRevenuePool { - const DISCRIMINATOR: [u8; 8] = [92, 40, 151, 42, 122, 254, 139, 246]; + const DISCRIMINATOR: &[u8] = &[92, 40, 151, 42, 122, 254, 139, 246]; } #[automatically_derived] impl anchor_lang::InstructionData for DepositIntoSpotMarketRevenuePool {} @@ -1245,7 +1245,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for RepegAmmCurve { - const DISCRIMINATOR: [u8; 8] = [3, 36, 102, 89, 180, 128, 120, 213]; + const DISCRIMINATOR: &[u8] = &[3, 36, 102, 89, 180, 128, 120, 213]; } #[automatically_derived] impl anchor_lang::InstructionData for RepegAmmCurve {} @@ -1253,7 +1253,7 @@ pub mod instructions { pub struct UpdatePerpMarketAmmOracleTwap {} #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketAmmOracleTwap { - const DISCRIMINATOR: [u8; 8] = [241, 74, 114, 123, 206, 153, 24, 202]; + const DISCRIMINATOR: &[u8] = &[241, 74, 114, 123, 206, 153, 24, 202]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketAmmOracleTwap {} @@ -1261,7 +1261,7 @@ pub mod instructions { pub struct ResetPerpMarketAmmOracleTwap {} #[automatically_derived] impl anchor_lang::Discriminator for ResetPerpMarketAmmOracleTwap { - const DISCRIMINATOR: [u8; 8] = [127, 10, 55, 164, 123, 226, 47, 24]; + const DISCRIMINATOR: &[u8] = &[127, 10, 55, 164, 123, 226, 47, 24]; } #[automatically_derived] impl anchor_lang::InstructionData for ResetPerpMarketAmmOracleTwap {} @@ -1271,7 +1271,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateK { - const DISCRIMINATOR: [u8; 8] = [72, 98, 9, 139, 129, 229, 172, 56]; + const DISCRIMINATOR: &[u8] = &[72, 98, 9, 139, 129, 229, 172, 56]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateK {} @@ -1282,7 +1282,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMarginRatio { - const DISCRIMINATOR: [u8; 8] = [130, 173, 107, 45, 119, 105, 26, 113]; + const DISCRIMINATOR: &[u8] = &[130, 173, 107, 45, 119, 105, 26, 113]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketMarginRatio {} @@ -1293,7 +1293,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketHighLeverageMarginRatio { - const DISCRIMINATOR: [u8; 8] = [88, 112, 86, 49, 24, 116, 74, 157]; + const DISCRIMINATOR: &[u8] = &[88, 112, 86, 49, 24, 116, 74, 157]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketHighLeverageMarginRatio {} @@ -1303,7 +1303,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketFundingPeriod { - const DISCRIMINATOR: [u8; 8] = [171, 161, 69, 91, 129, 139, 161, 28]; + const DISCRIMINATOR: &[u8] = &[171, 161, 69, 91, 129, 139, 161, 28]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketFundingPeriod {} @@ -1315,7 +1315,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxImbalances { - const DISCRIMINATOR: [u8; 8] = [15, 206, 73, 133, 60, 8, 86, 89]; + const DISCRIMINATOR: &[u8] = &[15, 206, 73, 133, 60, 8, 86, 89]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketMaxImbalances {} @@ -1326,7 +1326,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketLiquidationFee { - const DISCRIMINATOR: [u8; 8] = [90, 137, 9, 145, 41, 8, 148, 117]; + const DISCRIMINATOR: &[u8] = &[90, 137, 9, 145, 41, 8, 148, 117]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketLiquidationFee {} @@ -1336,7 +1336,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateInsuranceFundUnstakingPeriod { - const DISCRIMINATOR: [u8; 8] = [44, 69, 43, 226, 204, 223, 202, 52]; + const DISCRIMINATOR: &[u8] = &[44, 69, 43, 226, 204, 223, 202, 52]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateInsuranceFundUnstakingPeriod {} @@ -1346,7 +1346,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketPoolId { - const DISCRIMINATOR: [u8; 8] = [22, 213, 197, 160, 139, 193, 81, 149]; + const DISCRIMINATOR: &[u8] = &[22, 213, 197, 160, 139, 193, 81, 149]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketPoolId {} @@ -1357,7 +1357,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketLiquidationFee { - const DISCRIMINATOR: [u8; 8] = [11, 13, 255, 53, 56, 136, 104, 177]; + const DISCRIMINATOR: &[u8] = &[11, 13, 255, 53, 56, 136, 104, 177]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketLiquidationFee {} @@ -1367,7 +1367,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateWithdrawGuardThreshold { - const DISCRIMINATOR: [u8; 8] = [56, 18, 39, 61, 155, 211, 44, 133]; + const DISCRIMINATOR: &[u8] = &[56, 18, 39, 61, 155, 211, 44, 133]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateWithdrawGuardThreshold {} @@ -1379,7 +1379,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketIfFactor { - const DISCRIMINATOR: [u8; 8] = [147, 30, 224, 34, 18, 230, 105, 4]; + const DISCRIMINATOR: &[u8] = &[147, 30, 224, 34, 18, 230, 105, 4]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketIfFactor {} @@ -1389,7 +1389,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketRevenueSettlePeriod { - const DISCRIMINATOR: [u8; 8] = [81, 92, 126, 41, 250, 225, 156, 219]; + const DISCRIMINATOR: &[u8] = &[81, 92, 126, 41, 250, 225, 156, 219]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketRevenueSettlePeriod {} @@ -1399,7 +1399,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketStatus { - const DISCRIMINATOR: [u8; 8] = [78, 94, 16, 188, 193, 110, 231, 31]; + const DISCRIMINATOR: &[u8] = &[78, 94, 16, 188, 193, 110, 231, 31]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketStatus {} @@ -1409,7 +1409,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketPausedOperations { - const DISCRIMINATOR: [u8; 8] = [100, 61, 153, 81, 180, 12, 6, 248]; + const DISCRIMINATOR: &[u8] = &[100, 61, 153, 81, 180, 12, 6, 248]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketPausedOperations {} @@ -1419,7 +1419,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketAssetTier { - const DISCRIMINATOR: [u8; 8] = [253, 209, 231, 14, 242, 208, 243, 130]; + const DISCRIMINATOR: &[u8] = &[253, 209, 231, 14, 242, 208, 243, 130]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketAssetTier {} @@ -1433,7 +1433,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMarginWeights { - const DISCRIMINATOR: [u8; 8] = [109, 33, 87, 195, 255, 36, 6, 81]; + const DISCRIMINATOR: &[u8] = &[109, 33, 87, 195, 255, 36, 6, 81]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketMarginWeights {} @@ -1446,7 +1446,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketBorrowRate { - const DISCRIMINATOR: [u8; 8] = [71, 239, 236, 153, 210, 62, 254, 76]; + const DISCRIMINATOR: &[u8] = &[71, 239, 236, 153, 210, 62, 254, 76]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketBorrowRate {} @@ -1456,7 +1456,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMaxTokenDeposits { - const DISCRIMINATOR: [u8; 8] = [56, 191, 79, 18, 26, 121, 80, 208]; + const DISCRIMINATOR: &[u8] = &[56, 191, 79, 18, 26, 121, 80, 208]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketMaxTokenDeposits {} @@ -1466,7 +1466,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMaxTokenBorrows { - const DISCRIMINATOR: [u8; 8] = [57, 102, 204, 212, 253, 95, 13, 199]; + const DISCRIMINATOR: &[u8] = &[57, 102, 204, 212, 253, 95, 13, 199]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketMaxTokenBorrows {} @@ -1476,7 +1476,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketScaleInitialAssetWeightStart { - const DISCRIMINATOR: [u8; 8] = [217, 204, 204, 118, 204, 130, 225, 147]; + const DISCRIMINATOR: &[u8] = &[217, 204, 204, 118, 204, 130, 225, 147]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketScaleInitialAssetWeightStart {} @@ -1488,7 +1488,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketOracle { - const DISCRIMINATOR: [u8; 8] = [114, 184, 102, 37, 246, 186, 180, 99]; + const DISCRIMINATOR: &[u8] = &[114, 184, 102, 37, 246, 186, 180, 99]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketOracle {} @@ -1499,7 +1499,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketStepSizeAndTickSize { - const DISCRIMINATOR: [u8; 8] = [238, 153, 137, 80, 206, 59, 250, 61]; + const DISCRIMINATOR: &[u8] = &[238, 153, 137, 80, 206, 59, 250, 61]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketStepSizeAndTickSize {} @@ -1509,7 +1509,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMinOrderSize { - const DISCRIMINATOR: [u8; 8] = [93, 128, 11, 119, 26, 20, 181, 50]; + const DISCRIMINATOR: &[u8] = &[93, 128, 11, 119, 26, 20, 181, 50]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketMinOrderSize {} @@ -1519,7 +1519,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketOrdersEnabled { - const DISCRIMINATOR: [u8; 8] = [190, 79, 206, 15, 26, 229, 229, 43]; + const DISCRIMINATOR: &[u8] = &[190, 79, 206, 15, 26, 229, 229, 43]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketOrdersEnabled {} @@ -1529,7 +1529,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketIfPausedOperations { - const DISCRIMINATOR: [u8; 8] = [101, 215, 79, 74, 59, 41, 79, 12]; + const DISCRIMINATOR: &[u8] = &[101, 215, 79, 74, 59, 41, 79, 12]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketIfPausedOperations {} @@ -1539,7 +1539,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketName { - const DISCRIMINATOR: [u8; 8] = [17, 208, 1, 1, 162, 211, 188, 224]; + const DISCRIMINATOR: &[u8] = &[17, 208, 1, 1, 162, 211, 188, 224]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketName {} @@ -1549,7 +1549,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketStatus { - const DISCRIMINATOR: [u8; 8] = [71, 201, 175, 122, 255, 207, 196, 207]; + const DISCRIMINATOR: &[u8] = &[71, 201, 175, 122, 255, 207, 196, 207]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketStatus {} @@ -1559,7 +1559,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketPausedOperations { - const DISCRIMINATOR: [u8; 8] = [53, 16, 136, 132, 30, 220, 121, 85]; + const DISCRIMINATOR: &[u8] = &[53, 16, 136, 132, 30, 220, 121, 85]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketPausedOperations {} @@ -1569,7 +1569,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketContractTier { - const DISCRIMINATOR: [u8; 8] = [236, 128, 15, 95, 203, 214, 68, 117]; + const DISCRIMINATOR: &[u8] = &[236, 128, 15, 95, 203, 214, 68, 117]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketContractTier {} @@ -1580,7 +1580,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketImfFactor { - const DISCRIMINATOR: [u8; 8] = [207, 194, 56, 132, 35, 67, 71, 244]; + const DISCRIMINATOR: &[u8] = &[207, 194, 56, 132, 35, 67, 71, 244]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketImfFactor {} @@ -1591,7 +1591,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketUnrealizedAssetWeight { - const DISCRIMINATOR: [u8; 8] = [135, 132, 205, 165, 109, 150, 166, 106]; + const DISCRIMINATOR: &[u8] = &[135, 132, 205, 165, 109, 150, 166, 106]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketUnrealizedAssetWeight {} @@ -1601,7 +1601,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketConcentrationCoef { - const DISCRIMINATOR: [u8; 8] = [24, 78, 232, 126, 169, 176, 230, 16]; + const DISCRIMINATOR: &[u8] = &[24, 78, 232, 126, 169, 176, 230, 16]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketConcentrationCoef {} @@ -1611,7 +1611,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketCurveUpdateIntensity { - const DISCRIMINATOR: [u8; 8] = [50, 131, 6, 156, 226, 231, 189, 72]; + const DISCRIMINATOR: &[u8] = &[50, 131, 6, 156, 226, 231, 189, 72]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketCurveUpdateIntensity {} @@ -1621,7 +1621,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketTargetBaseAssetAmountPerLp { - const DISCRIMINATOR: [u8; 8] = [62, 87, 68, 115, 29, 150, 150, 165]; + const DISCRIMINATOR: &[u8] = &[62, 87, 68, 115, 29, 150, 150, 165]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketTargetBaseAssetAmountPerLp {} @@ -1631,7 +1631,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketPerLpBase { - const DISCRIMINATOR: [u8; 8] = [103, 152, 103, 102, 89, 144, 193, 71]; + const DISCRIMINATOR: &[u8] = &[103, 152, 103, 102, 89, 144, 193, 71]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketPerLpBase {} @@ -1641,7 +1641,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateLpCooldownTime { - const DISCRIMINATOR: [u8; 8] = [198, 133, 88, 41, 241, 119, 61, 14]; + const DISCRIMINATOR: &[u8] = &[198, 133, 88, 41, 241, 119, 61, 14]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateLpCooldownTime {} @@ -1651,7 +1651,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpFeeStructure { - const DISCRIMINATOR: [u8; 8] = [23, 178, 111, 203, 73, 22, 140, 75]; + const DISCRIMINATOR: &[u8] = &[23, 178, 111, 203, 73, 22, 140, 75]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpFeeStructure {} @@ -1661,7 +1661,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotFeeStructure { - const DISCRIMINATOR: [u8; 8] = [97, 216, 105, 131, 113, 246, 142, 141]; + const DISCRIMINATOR: &[u8] = &[97, 216, 105, 131, 113, 246, 142, 141]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotFeeStructure {} @@ -1671,7 +1671,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateInitialPctToLiquidate { - const DISCRIMINATOR: [u8; 8] = [210, 133, 225, 128, 194, 50, 13, 109]; + const DISCRIMINATOR: &[u8] = &[210, 133, 225, 128, 194, 50, 13, 109]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateInitialPctToLiquidate {} @@ -1681,7 +1681,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateLiquidationDuration { - const DISCRIMINATOR: [u8; 8] = [28, 154, 20, 249, 102, 192, 73, 71]; + const DISCRIMINATOR: &[u8] = &[28, 154, 20, 249, 102, 192, 73, 71]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateLiquidationDuration {} @@ -1691,7 +1691,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateLiquidationMarginBufferRatio { - const DISCRIMINATOR: [u8; 8] = [132, 224, 243, 160, 154, 82, 97, 215]; + const DISCRIMINATOR: &[u8] = &[132, 224, 243, 160, 154, 82, 97, 215]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateLiquidationMarginBufferRatio {} @@ -1701,7 +1701,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateOracleGuardRails { - const DISCRIMINATOR: [u8; 8] = [131, 112, 10, 59, 32, 54, 40, 164]; + const DISCRIMINATOR: &[u8] = &[131, 112, 10, 59, 32, 54, 40, 164]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateOracleGuardRails {} @@ -1711,7 +1711,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateStateSettlementDuration { - const DISCRIMINATOR: [u8; 8] = [97, 68, 199, 235, 131, 80, 61, 173]; + const DISCRIMINATOR: &[u8] = &[97, 68, 199, 235, 131, 80, 61, 173]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateStateSettlementDuration {} @@ -1721,7 +1721,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateStateMaxNumberOfSubAccounts { - const DISCRIMINATOR: [u8; 8] = [155, 123, 214, 2, 221, 166, 204, 85]; + const DISCRIMINATOR: &[u8] = &[155, 123, 214, 2, 221, 166, 204, 85]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateStateMaxNumberOfSubAccounts {} @@ -1731,7 +1731,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateStateMaxInitializeUserFee { - const DISCRIMINATOR: [u8; 8] = [237, 225, 25, 237, 193, 45, 77, 97]; + const DISCRIMINATOR: &[u8] = &[237, 225, 25, 237, 193, 45, 77, 97]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateStateMaxInitializeUserFee {} @@ -1743,7 +1743,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketOracle { - const DISCRIMINATOR: [u8; 8] = [182, 113, 111, 160, 67, 174, 89, 191]; + const DISCRIMINATOR: &[u8] = &[182, 113, 111, 160, 67, 174, 89, 191]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketOracle {} @@ -1753,7 +1753,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketBaseSpread { - const DISCRIMINATOR: [u8; 8] = [71, 95, 84, 168, 9, 157, 198, 65]; + const DISCRIMINATOR: &[u8] = &[71, 95, 84, 168, 9, 157, 198, 65]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketBaseSpread {} @@ -1763,7 +1763,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateAmmJitIntensity { - const DISCRIMINATOR: [u8; 8] = [181, 191, 53, 109, 166, 249, 55, 142]; + const DISCRIMINATOR: &[u8] = &[181, 191, 53, 109, 166, 249, 55, 142]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateAmmJitIntensity {} @@ -1773,7 +1773,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxSpread { - const DISCRIMINATOR: [u8; 8] = [80, 252, 122, 62, 40, 218, 91, 100]; + const DISCRIMINATOR: &[u8] = &[80, 252, 122, 62, 40, 218, 91, 100]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketMaxSpread {} @@ -1784,7 +1784,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketStepSizeAndTickSize { - const DISCRIMINATOR: [u8; 8] = [231, 255, 97, 25, 146, 139, 174, 4]; + const DISCRIMINATOR: &[u8] = &[231, 255, 97, 25, 146, 139, 174, 4]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketStepSizeAndTickSize {} @@ -1794,7 +1794,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketName { - const DISCRIMINATOR: [u8; 8] = [211, 31, 21, 210, 64, 108, 66, 201]; + const DISCRIMINATOR: &[u8] = &[211, 31, 21, 210, 64, 108, 66, 201]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketName {} @@ -1804,7 +1804,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMinOrderSize { - const DISCRIMINATOR: [u8; 8] = [226, 74, 5, 89, 108, 223, 46, 141]; + const DISCRIMINATOR: &[u8] = &[226, 74, 5, 89, 108, 223, 46, 141]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketMinOrderSize {} @@ -1814,7 +1814,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxSlippageRatio { - const DISCRIMINATOR: [u8; 8] = [235, 37, 40, 196, 70, 146, 54, 201]; + const DISCRIMINATOR: &[u8] = &[235, 37, 40, 196, 70, 146, 54, 201]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketMaxSlippageRatio {} @@ -1824,7 +1824,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxFillReserveFraction { - const DISCRIMINATOR: [u8; 8] = [19, 172, 114, 154, 42, 135, 161, 133]; + const DISCRIMINATOR: &[u8] = &[19, 172, 114, 154, 42, 135, 161, 133]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketMaxFillReserveFraction {} @@ -1834,7 +1834,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxOpenInterest { - const DISCRIMINATOR: [u8; 8] = [194, 79, 149, 224, 246, 102, 186, 140]; + const DISCRIMINATOR: &[u8] = &[194, 79, 149, 224, 246, 102, 186, 140]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketMaxOpenInterest {} @@ -1845,7 +1845,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketNumberOfUsers { - const DISCRIMINATOR: [u8; 8] = [35, 62, 144, 177, 180, 62, 215, 196]; + const DISCRIMINATOR: &[u8] = &[35, 62, 144, 177, 180, 62, 215, 196]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketNumberOfUsers {} @@ -1855,7 +1855,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketFeeAdjustment { - const DISCRIMINATOR: [u8; 8] = [194, 174, 87, 102, 43, 148, 32, 112]; + const DISCRIMINATOR: &[u8] = &[194, 174, 87, 102, 43, 148, 32, 112]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketFeeAdjustment {} @@ -1865,7 +1865,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketFeeAdjustment { - const DISCRIMINATOR: [u8; 8] = [148, 182, 3, 126, 157, 114, 220, 99]; + const DISCRIMINATOR: &[u8] = &[148, 182, 3, 126, 157, 114, 220, 99]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketFeeAdjustment {} @@ -1877,7 +1877,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketFuel { - const DISCRIMINATOR: [u8; 8] = [252, 141, 110, 101, 27, 99, 182, 21]; + const DISCRIMINATOR: &[u8] = &[252, 141, 110, 101, 27, 99, 182, 21]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpMarketFuel {} @@ -1891,7 +1891,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketFuel { - const DISCRIMINATOR: [u8; 8] = [226, 253, 76, 71, 17, 2, 171, 169]; + const DISCRIMINATOR: &[u8] = &[226, 253, 76, 71, 17, 2, 171, 169]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotMarketFuel {} @@ -1905,7 +1905,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitUserFuel { - const DISCRIMINATOR: [u8; 8] = [132, 191, 228, 141, 201, 138, 60, 48]; + const DISCRIMINATOR: &[u8] = &[132, 191, 228, 141, 201, 138, 60, 48]; } #[automatically_derived] impl anchor_lang::InstructionData for InitUserFuel {} @@ -1915,7 +1915,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateAdmin { - const DISCRIMINATOR: [u8; 8] = [161, 176, 40, 213, 60, 184, 179, 228]; + const DISCRIMINATOR: &[u8] = &[161, 176, 40, 213, 60, 184, 179, 228]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateAdmin {} @@ -1925,7 +1925,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateWhitelistMint { - const DISCRIMINATOR: [u8; 8] = [161, 15, 162, 19, 148, 120, 144, 151]; + const DISCRIMINATOR: &[u8] = &[161, 15, 162, 19, 148, 120, 144, 151]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateWhitelistMint {} @@ -1935,7 +1935,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateDiscountMint { - const DISCRIMINATOR: [u8; 8] = [32, 252, 122, 211, 66, 31, 47, 241]; + const DISCRIMINATOR: &[u8] = &[32, 252, 122, 211, 66, 31, 47, 241]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateDiscountMint {} @@ -1945,7 +1945,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateExchangeStatus { - const DISCRIMINATOR: [u8; 8] = [83, 160, 252, 250, 129, 116, 49, 223]; + const DISCRIMINATOR: &[u8] = &[83, 160, 252, 250, 129, 116, 49, 223]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateExchangeStatus {} @@ -1955,7 +1955,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpAuctionDuration { - const DISCRIMINATOR: [u8; 8] = [126, 110, 52, 174, 30, 206, 215, 90]; + const DISCRIMINATOR: &[u8] = &[126, 110, 52, 174, 30, 206, 215, 90]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePerpAuctionDuration {} @@ -1965,7 +1965,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotAuctionDuration { - const DISCRIMINATOR: [u8; 8] = [182, 178, 203, 72, 187, 143, 157, 107]; + const DISCRIMINATOR: &[u8] = &[182, 178, 203, 72, 187, 143, 157, 107]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateSpotAuctionDuration {} @@ -1973,7 +1973,7 @@ pub mod instructions { pub struct InitializeProtocolIfSharesTransferConfig {} #[automatically_derived] impl anchor_lang::Discriminator for InitializeProtocolIfSharesTransferConfig { - const DISCRIMINATOR: [u8; 8] = [89, 131, 239, 200, 178, 141, 106, 194]; + const DISCRIMINATOR: &[u8] = &[89, 131, 239, 200, 178, 141, 106, 194]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeProtocolIfSharesTransferConfig {} @@ -1984,7 +1984,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateProtocolIfSharesTransferConfig { - const DISCRIMINATOR: [u8; 8] = [34, 135, 47, 91, 220, 24, 212, 53]; + const DISCRIMINATOR: &[u8] = &[34, 135, 47, 91, 220, 24, 212, 53]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateProtocolIfSharesTransferConfig {} @@ -1994,7 +1994,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePrelaunchOracle { - const DISCRIMINATOR: [u8; 8] = [169, 178, 84, 25, 175, 62, 29, 247]; + const DISCRIMINATOR: &[u8] = &[169, 178, 84, 25, 175, 62, 29, 247]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializePrelaunchOracle {} @@ -2004,7 +2004,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePrelaunchOracleParams { - const DISCRIMINATOR: [u8; 8] = [98, 205, 147, 243, 18, 75, 83, 207]; + const DISCRIMINATOR: &[u8] = &[98, 205, 147, 243, 18, 75, 83, 207]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdatePrelaunchOracleParams {} @@ -2014,7 +2014,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for DeletePrelaunchOracle { - const DISCRIMINATOR: [u8; 8] = [59, 169, 100, 49, 69, 17, 173, 253]; + const DISCRIMINATOR: &[u8] = &[59, 169, 100, 49, 69, 17, 173, 253]; } #[automatically_derived] impl anchor_lang::InstructionData for DeletePrelaunchOracle {} @@ -2024,7 +2024,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePythPullOracle { - const DISCRIMINATOR: [u8; 8] = [249, 140, 253, 243, 248, 74, 240, 238]; + const DISCRIMINATOR: &[u8] = &[249, 140, 253, 243, 248, 74, 240, 238]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializePythPullOracle {} @@ -2034,7 +2034,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePythLazerOracle { - const DISCRIMINATOR: [u8; 8] = [140, 107, 33, 214, 235, 219, 103, 20]; + const DISCRIMINATOR: &[u8] = &[140, 107, 33, 214, 235, 219, 103, 20]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializePythLazerOracle {} @@ -2044,7 +2044,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for PostPythLazerOracleUpdate { - const DISCRIMINATOR: [u8; 8] = [218, 237, 170, 245, 39, 143, 166, 33]; + const DISCRIMINATOR: &[u8] = &[218, 237, 170, 245, 39, 143, 166, 33]; } #[automatically_derived] impl anchor_lang::InstructionData for PostPythLazerOracleUpdate {} @@ -2054,7 +2054,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeHighLeverageModeConfig { - const DISCRIMINATOR: [u8; 8] = [213, 167, 93, 246, 208, 130, 90, 248]; + const DISCRIMINATOR: &[u8] = &[213, 167, 93, 246, 208, 130, 90, 248]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeHighLeverageModeConfig {} @@ -2065,7 +2065,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateHighLeverageModeConfig { - const DISCRIMINATOR: [u8; 8] = [64, 122, 212, 93, 141, 217, 202, 55]; + const DISCRIMINATOR: &[u8] = &[64, 122, 212, 93, 141, 217, 202, 55]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateHighLeverageModeConfig {} @@ -2075,7 +2075,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeProtectedMakerModeConfig { - const DISCRIMINATOR: [u8; 8] = [67, 103, 220, 67, 88, 32, 252, 8]; + const DISCRIMINATOR: &[u8] = &[67, 103, 220, 67, 88, 32, 252, 8]; } #[automatically_derived] impl anchor_lang::InstructionData for InitializeProtectedMakerModeConfig {} @@ -2087,7 +2087,7 @@ pub mod instructions { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateProtectedMakerModeConfig { - const DISCRIMINATOR: [u8; 8] = [86, 166, 235, 253, 67, 202, 223, 17]; + const DISCRIMINATOR: &[u8] = &[86, 166, 235, 253, 67, 202, 223, 17]; } #[automatically_derived] impl anchor_lang::InstructionData for UpdateProtectedMakerModeConfig {} @@ -3954,7 +3954,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for OpenbookV2FulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [3, 43, 58, 106, 131, 132, 199, 171]; + const DISCRIMINATOR: &[u8] = &[3, 43, 58, 106, 131, 132, 199, 171]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for OpenbookV2FulfillmentConfig {} @@ -4019,7 +4019,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PhoenixV1FulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [233, 45, 62, 40, 35, 129, 48, 72]; + const DISCRIMINATOR: &[u8] = &[233, 45, 62, 40, 35, 129, 48, 72]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PhoenixV1FulfillmentConfig {} @@ -4089,7 +4089,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SerumV3FulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [65, 160, 197, 112, 239, 168, 103, 185]; + const DISCRIMINATOR: &[u8] = &[65, 160, 197, 112, 239, 168, 103, 185]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SerumV3FulfillmentConfig {} @@ -4148,7 +4148,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for HighLeverageModeConfig { - const DISCRIMINATOR: [u8; 8] = [3, 196, 90, 189, 193, 64, 228, 234]; + const DISCRIMINATOR: &[u8] = &[3, 196, 90, 189, 193, 64, 228, 234]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for HighLeverageModeConfig {} @@ -4213,7 +4213,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [110, 202, 14, 42, 95, 73, 90, 95]; + const DISCRIMINATOR: &[u8] = &[110, 202, 14, 42, 95, 73, 90, 95]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InsuranceFundStake {} @@ -4273,7 +4273,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ProtocolIfSharesTransferConfig { - const DISCRIMINATOR: [u8; 8] = [188, 1, 213, 98, 23, 148, 30, 1]; + const DISCRIMINATOR: &[u8] = &[188, 1, 213, 98, 23, 148, 30, 1]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ProtocolIfSharesTransferConfig {} @@ -4335,7 +4335,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PrelaunchOracle { - const DISCRIMINATOR: [u8; 8] = [92, 14, 139, 234, 72, 244, 68, 26]; + const DISCRIMINATOR: &[u8] = &[92, 14, 139, 234, 72, 244, 68, 26]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PrelaunchOracle {} @@ -4425,7 +4425,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PerpMarket { - const DISCRIMINATOR: [u8; 8] = [10, 223, 12, 44, 107, 245, 55, 247]; + const DISCRIMINATOR: &[u8] = &[10, 223, 12, 44, 107, 245, 55, 247]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PerpMarket {} @@ -4484,7 +4484,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ProtectedMakerModeConfig { - const DISCRIMINATOR: [u8; 8] = [47, 86, 90, 9, 224, 255, 10, 69]; + const DISCRIMINATOR: &[u8] = &[47, 86, 90, 9, 224, 255, 10, 69]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ProtectedMakerModeConfig {} @@ -4545,7 +4545,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PythLazerOracle { - const DISCRIMINATOR: [u8; 8] = [159, 7, 161, 249, 34, 81, 121, 133]; + const DISCRIMINATOR: &[u8] = &[159, 7, 161, 249, 34, 81, 121, 133]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PythLazerOracle {} @@ -4593,7 +4593,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SignedMsgUserOrders { - const DISCRIMINATOR: [u8; 8] = [70, 6, 50, 248, 222, 1, 143, 49]; + const DISCRIMINATOR: &[u8] = &[70, 6, 50, 248, 222, 1, 143, 49]; } #[automatically_derived] impl anchor_lang::AccountSerialize for SignedMsgUserOrders { @@ -4633,7 +4633,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SignedMsgWsDelegates { - const DISCRIMINATOR: [u8; 8] = [190, 115, 111, 44, 216, 252, 108, 85]; + const DISCRIMINATOR: &[u8] = &[190, 115, 111, 44, 216, 252, 108, 85]; } #[automatically_derived] impl anchor_lang::AccountSerialize for SignedMsgWsDelegates { @@ -4746,7 +4746,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SpotMarket { - const DISCRIMINATOR: [u8; 8] = [100, 177, 8, 107, 168, 65, 65, 39]; + const DISCRIMINATOR: &[u8] = &[100, 177, 8, 107, 168, 65, 65, 39]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SpotMarket {} @@ -4826,7 +4826,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for State { - const DISCRIMINATOR: [u8; 8] = [216, 146, 107, 94, 104, 75, 182, 177]; + const DISCRIMINATOR: &[u8] = &[216, 146, 107, 94, 104, 75, 182, 177]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for State {} @@ -4912,7 +4912,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for User { - const DISCRIMINATOR: [u8; 8] = [159, 117, 95, 227, 239, 151, 58, 236]; + const DISCRIMINATOR: &[u8] = &[159, 117, 95, 227, 239, 151, 58, 236]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for User {} @@ -4993,7 +4993,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UserStats { - const DISCRIMINATOR: [u8; 8] = [176, 223, 136, 27, 122, 79, 32, 227]; + const DISCRIMINATOR: &[u8] = &[176, 223, 136, 27, 122, 79, 32, 227]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UserStats {} @@ -5051,7 +5051,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ReferrerName { - const DISCRIMINATOR: [u8; 8] = [105, 133, 170, 110, 52, 42, 28, 182]; + const DISCRIMINATOR: &[u8] = &[105, 133, 170, 110, 52, 42, 28, 182]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ReferrerName {} @@ -5116,7 +5116,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for FuelOverflow { - const DISCRIMINATOR: [u8; 8] = [182, 64, 231, 177, 226, 142, 69, 58]; + const DISCRIMINATOR: &[u8] = &[182, 64, 231, 177, 226, 142, 69, 58]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for FuelOverflow {} @@ -5166,7 +5166,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeUser { - const DISCRIMINATOR: [u8; 8] = [203, 62, 186, 181, 109, 250, 240, 193]; + const DISCRIMINATOR: &[u8] = &[203, 62, 186, 181, 109, 250, 240, 193]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeUser {} @@ -5259,7 +5259,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeUserStats { - const DISCRIMINATOR: [u8; 8] = [193, 37, 127, 56, 10, 44, 65, 13]; + const DISCRIMINATOR: &[u8] = &[193, 37, 127, 56, 10, 44, 65, 13]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeUserStats {} @@ -5346,7 +5346,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSignedMsgUserOrders { - const DISCRIMINATOR: [u8; 8] = [49, 255, 141, 186, 72, 235, 186, 237]; + const DISCRIMINATOR: &[u8] = &[49, 255, 141, 186, 72, 235, 186, 237]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeSignedMsgUserOrders {} @@ -5426,7 +5426,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ResizeSignedMsgUserOrders { - const DISCRIMINATOR: [u8; 8] = [125, 177, 239, 3, 35, 33, 152, 87]; + const DISCRIMINATOR: &[u8] = &[125, 177, 239, 3, 35, 33, 152, 87]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ResizeSignedMsgUserOrders {} @@ -5497,7 +5497,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSignedMsgWsDelegates { - const DISCRIMINATOR: [u8; 8] = [171, 35, 226, 71, 228, 189, 130, 139]; + const DISCRIMINATOR: &[u8] = &[171, 35, 226, 71, 228, 189, 130, 139]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeSignedMsgWsDelegates {} @@ -5572,7 +5572,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ChangeSignedMsgWsDelegateStatus { - const DISCRIMINATOR: [u8; 8] = [115, 165, 130, 151, 247, 6, 159, 9]; + const DISCRIMINATOR: &[u8] = &[115, 165, 130, 151, 247, 6, 159, 9]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ChangeSignedMsgWsDelegateStatus {} @@ -5645,7 +5645,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeFuelOverflow { - const DISCRIMINATOR: [u8; 8] = [87, 122, 96, 232, 83, 190, 67, 60]; + const DISCRIMINATOR: &[u8] = &[87, 122, 96, 232, 83, 190, 67, 60]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeFuelOverflow {} @@ -5731,7 +5731,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SweepFuel { - const DISCRIMINATOR: [u8; 8] = [213, 69, 211, 253, 19, 221, 144, 63]; + const DISCRIMINATOR: &[u8] = &[213, 69, 211, 253, 19, 221, 144, 63]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SweepFuel {} @@ -5807,7 +5807,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ResetFuelSeason { - const DISCRIMINATOR: [u8; 8] = [1, 202, 193, 87, 106, 234, 121, 179]; + const DISCRIMINATOR: &[u8] = &[1, 202, 193, 87, 106, 234, 121, 179]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ResetFuelSeason {} @@ -5886,7 +5886,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeReferrerName { - const DISCRIMINATOR: [u8; 8] = [162, 6, 98, 89, 149, 201, 160, 208]; + const DISCRIMINATOR: &[u8] = &[162, 6, 98, 89, 149, 201, 160, 208]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeReferrerName {} @@ -5980,7 +5980,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for Deposit { - const DISCRIMINATOR: [u8; 8] = [148, 146, 121, 66, 207, 173, 21, 227]; + const DISCRIMINATOR: &[u8] = &[148, 146, 121, 66, 207, 173, 21, 227]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for Deposit {} @@ -6075,7 +6075,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for Withdraw { - const DISCRIMINATOR: [u8; 8] = [250, 14, 222, 36, 223, 62, 75, 248]; + const DISCRIMINATOR: &[u8] = &[250, 14, 222, 36, 223, 62, 75, 248]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for Withdraw {} @@ -6173,7 +6173,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for TransferDeposit { - const DISCRIMINATOR: [u8; 8] = [71, 147, 10, 190, 58, 115, 100, 21]; + const DISCRIMINATOR: &[u8] = &[71, 147, 10, 190, 58, 115, 100, 21]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for TransferDeposit {} @@ -6265,7 +6265,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for TransferPools { - const DISCRIMINATOR: [u8; 8] = [95, 222, 82, 35, 146, 141, 77, 239]; + const DISCRIMINATOR: &[u8] = &[95, 222, 82, 35, 146, 141, 77, 239]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for TransferPools {} @@ -6370,7 +6370,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlacePerpOrder { - const DISCRIMINATOR: [u8; 8] = [246, 108, 77, 100, 111, 83, 209, 236]; + const DISCRIMINATOR: &[u8] = &[246, 108, 77, 100, 111, 83, 209, 236]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlacePerpOrder {} @@ -6440,7 +6440,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrder { - const DISCRIMINATOR: [u8; 8] = [113, 49, 205, 244, 82, 104, 158, 85]; + const DISCRIMINATOR: &[u8] = &[113, 49, 205, 244, 82, 104, 158, 85]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for CancelOrder {} @@ -6510,7 +6510,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrderByUserId { - const DISCRIMINATOR: [u8; 8] = [242, 196, 53, 34, 121, 232, 149, 144]; + const DISCRIMINATOR: &[u8] = &[242, 196, 53, 34, 121, 232, 149, 144]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for CancelOrderByUserId {} @@ -6580,7 +6580,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrders { - const DISCRIMINATOR: [u8; 8] = [91, 217, 110, 30, 16, 2, 55, 83]; + const DISCRIMINATOR: &[u8] = &[91, 217, 110, 30, 16, 2, 55, 83]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for CancelOrders {} @@ -6650,7 +6650,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for CancelOrdersByIds { - const DISCRIMINATOR: [u8; 8] = [111, 71, 138, 14, 8, 97, 11, 44]; + const DISCRIMINATOR: &[u8] = &[111, 71, 138, 14, 8, 97, 11, 44]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for CancelOrdersByIds {} @@ -6720,7 +6720,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ModifyOrder { - const DISCRIMINATOR: [u8; 8] = [123, 5, 147, 45, 173, 23, 156, 131]; + const DISCRIMINATOR: &[u8] = &[123, 5, 147, 45, 173, 23, 156, 131]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ModifyOrder {} @@ -6790,7 +6790,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ModifyOrderByUserId { - const DISCRIMINATOR: [u8; 8] = [87, 55, 202, 75, 9, 179, 204, 73]; + const DISCRIMINATOR: &[u8] = &[87, 55, 202, 75, 9, 179, 204, 73]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ModifyOrderByUserId {} @@ -6861,7 +6861,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndTakePerpOrder { - const DISCRIMINATOR: [u8; 8] = [106, 246, 39, 196, 36, 127, 12, 84]; + const DISCRIMINATOR: &[u8] = &[106, 246, 39, 196, 36, 127, 12, 84]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceAndTakePerpOrder {} @@ -6939,7 +6939,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndMakePerpOrder { - const DISCRIMINATOR: [u8; 8] = [139, 129, 243, 60, 209, 20, 25, 195]; + const DISCRIMINATOR: &[u8] = &[139, 129, 243, 60, 209, 20, 25, 195]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceAndMakePerpOrder {} @@ -7028,7 +7028,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndMakeSignedMsgPerpOrder { - const DISCRIMINATOR: [u8; 8] = [240, 219, 156, 22, 147, 139, 152, 165]; + const DISCRIMINATOR: &[u8] = &[240, 219, 156, 22, 147, 139, 152, 165]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceAndMakeSignedMsgPerpOrder {} @@ -7121,7 +7121,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceSignedMsgTakerOrder { - const DISCRIMINATOR: [u8; 8] = [202, 134, 30, 82, 84, 234, 248, 40]; + const DISCRIMINATOR: &[u8] = &[202, 134, 30, 82, 84, 234, 248, 40]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceSignedMsgTakerOrder {} @@ -7206,7 +7206,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceSpotOrder { - const DISCRIMINATOR: [u8; 8] = [174, 248, 135, 120, 62, 178, 165, 88]; + const DISCRIMINATOR: &[u8] = &[174, 248, 135, 120, 62, 178, 165, 88]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceSpotOrder {} @@ -7277,7 +7277,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndTakeSpotOrder { - const DISCRIMINATOR: [u8; 8] = [114, 201, 131, 176, 15, 188, 94, 123]; + const DISCRIMINATOR: &[u8] = &[114, 201, 131, 176, 15, 188, 94, 123]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceAndTakeSpotOrder {} @@ -7355,7 +7355,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceAndMakeSpotOrder { - const DISCRIMINATOR: [u8; 8] = [136, 102, 203, 251, 133, 233, 3, 195]; + const DISCRIMINATOR: &[u8] = &[136, 102, 203, 251, 133, 233, 3, 195]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceAndMakeSpotOrder {} @@ -7440,7 +7440,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PlaceOrders { - const DISCRIMINATOR: [u8; 8] = [124, 246, 105, 210, 163, 120, 252, 61]; + const DISCRIMINATOR: &[u8] = &[124, 246, 105, 210, 163, 120, 252, 61]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PlaceOrders {} @@ -7518,7 +7518,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for BeginSwap { - const DISCRIMINATOR: [u8; 8] = [219, 64, 214, 146, 204, 171, 39, 63]; + const DISCRIMINATOR: &[u8] = &[219, 64, 214, 146, 204, 171, 39, 63]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for BeginSwap {} @@ -7636,7 +7636,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for EndSwap { - const DISCRIMINATOR: [u8; 8] = [169, 78, 41, 75, 127, 169, 211, 205]; + const DISCRIMINATOR: &[u8] = &[169, 78, 41, 75, 127, 169, 211, 205]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for EndSwap {} @@ -7746,7 +7746,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for AddPerpLpShares { - const DISCRIMINATOR: [u8; 8] = [136, 244, 213, 15, 170, 246, 138, 57]; + const DISCRIMINATOR: &[u8] = &[136, 244, 213, 15, 170, 246, 138, 57]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for AddPerpLpShares {} @@ -7816,7 +7816,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for RemovePerpLpShares { - const DISCRIMINATOR: [u8; 8] = [28, 42, 13, 175, 57, 117, 166, 250]; + const DISCRIMINATOR: &[u8] = &[28, 42, 13, 175, 57, 117, 166, 250]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for RemovePerpLpShares {} @@ -7885,7 +7885,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for RemovePerpLpSharesInExpiringMarket { - const DISCRIMINATOR: [u8; 8] = [117, 16, 76, 236, 145, 84, 112, 103]; + const DISCRIMINATOR: &[u8] = &[117, 16, 76, 236, 145, 84, 112, 103]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for RemovePerpLpSharesInExpiringMarket {} @@ -7949,7 +7949,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserName { - const DISCRIMINATOR: [u8; 8] = [110, 237, 80, 83, 89, 231, 185, 154]; + const DISCRIMINATOR: &[u8] = &[110, 237, 80, 83, 89, 231, 185, 154]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserName {} @@ -8013,7 +8013,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserCustomMarginRatio { - const DISCRIMINATOR: [u8; 8] = [102, 94, 49, 231, 23, 142, 117, 224]; + const DISCRIMINATOR: &[u8] = &[102, 94, 49, 231, 23, 142, 117, 224]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserCustomMarginRatio {} @@ -8077,7 +8077,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserMarginTradingEnabled { - const DISCRIMINATOR: [u8; 8] = [89, 5, 206, 157, 104, 243, 243, 104]; + const DISCRIMINATOR: &[u8] = &[89, 5, 206, 157, 104, 243, 243, 104]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserMarginTradingEnabled {} @@ -8141,7 +8141,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserPoolId { - const DISCRIMINATOR: [u8; 8] = [215, 193, 254, 33, 60, 226, 249, 100]; + const DISCRIMINATOR: &[u8] = &[215, 193, 254, 33, 60, 226, 249, 100]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserPoolId {} @@ -8205,7 +8205,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserDelegate { - const DISCRIMINATOR: [u8; 8] = [32, 244, 37, 163, 236, 179, 10, 208]; + const DISCRIMINATOR: &[u8] = &[32, 244, 37, 163, 236, 179, 10, 208]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserDelegate {} @@ -8269,7 +8269,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserReduceOnly { - const DISCRIMINATOR: [u8; 8] = [213, 230, 138, 228, 171, 118, 20, 105]; + const DISCRIMINATOR: &[u8] = &[213, 230, 138, 228, 171, 118, 20, 105]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserReduceOnly {} @@ -8333,7 +8333,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserAdvancedLp { - const DISCRIMINATOR: [u8; 8] = [227, 146, 68, 197, 45, 160, 163, 72]; + const DISCRIMINATOR: &[u8] = &[227, 146, 68, 197, 45, 160, 163, 72]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserAdvancedLp {} @@ -8399,7 +8399,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserProtectedMakerOrders { - const DISCRIMINATOR: [u8; 8] = [220, 255, 63, 84, 125, 9, 84, 92]; + const DISCRIMINATOR: &[u8] = &[220, 255, 63, 84, 125, 9, 84, 92]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserProtectedMakerOrders {} @@ -8475,7 +8475,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DeleteUser { - const DISCRIMINATOR: [u8; 8] = [138, 7, 216, 138, 241, 248, 199, 228]; + const DISCRIMINATOR: &[u8] = &[138, 7, 216, 138, 241, 248, 199, 228]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DeleteUser {} @@ -8553,7 +8553,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ForceDeleteUser { - const DISCRIMINATOR: [u8; 8] = [224, 206, 23, 192, 99, 164, 175, 251]; + const DISCRIMINATOR: &[u8] = &[224, 206, 23, 192, 99, 164, 175, 251]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ForceDeleteUser {} @@ -8638,7 +8638,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DeleteSignedMsgUserOrders { - const DISCRIMINATOR: [u8; 8] = [134, 162, 251, 123, 234, 231, 227, 119]; + const DISCRIMINATOR: &[u8] = &[134, 162, 251, 123, 234, 231, 227, 119]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DeleteSignedMsgUserOrders {} @@ -8710,7 +8710,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ReclaimRent { - const DISCRIMINATOR: [u8; 8] = [245, 126, 60, 211, 102, 85, 171, 126]; + const DISCRIMINATOR: &[u8] = &[245, 126, 60, 211, 102, 85, 171, 126]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ReclaimRent {} @@ -8791,7 +8791,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for EnableUserHighLeverageMode { - const DISCRIMINATOR: [u8; 8] = [87, 74, 202, 252, 83, 254, 102, 158]; + const DISCRIMINATOR: &[u8] = &[87, 74, 202, 252, 83, 254, 102, 158]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for EnableUserHighLeverageMode {} @@ -8869,7 +8869,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for FillPerpOrder { - const DISCRIMINATOR: [u8; 8] = [196, 125, 144, 95, 242, 149, 179, 234]; + const DISCRIMINATOR: &[u8] = &[196, 125, 144, 95, 242, 149, 179, 234]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for FillPerpOrder {} @@ -8955,7 +8955,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for RevertFill { - const DISCRIMINATOR: [u8; 8] = [119, 31, 174, 155, 246, 22, 28, 126]; + const DISCRIMINATOR: &[u8] = &[119, 31, 174, 155, 246, 22, 28, 126]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for RevertFill {} @@ -9033,7 +9033,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for FillSpotOrder { - const DISCRIMINATOR: [u8; 8] = [105, 64, 114, 55, 230, 90, 153, 28]; + const DISCRIMINATOR: &[u8] = &[105, 64, 114, 55, 230, 90, 153, 28]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for FillSpotOrder {} @@ -9119,7 +9119,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for TriggerOrder { - const DISCRIMINATOR: [u8; 8] = [236, 61, 42, 190, 152, 12, 106, 116]; + const DISCRIMINATOR: &[u8] = &[236, 61, 42, 190, 152, 12, 106, 116]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for TriggerOrder {} @@ -9195,7 +9195,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ForceCancelOrders { - const DISCRIMINATOR: [u8; 8] = [108, 153, 180, 51, 37, 158, 99, 93]; + const DISCRIMINATOR: &[u8] = &[108, 153, 180, 51, 37, 158, 99, 93]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ForceCancelOrders {} @@ -9271,7 +9271,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserIdle { - const DISCRIMINATOR: [u8; 8] = [229, 30, 7, 22, 26, 184, 224, 191]; + const DISCRIMINATOR: &[u8] = &[229, 30, 7, 22, 26, 184, 224, 191]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserIdle {} @@ -9346,7 +9346,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LogUserBalances { - const DISCRIMINATOR: [u8; 8] = [121, 191, 93, 132, 153, 217, 15, 171]; + const DISCRIMINATOR: &[u8] = &[121, 191, 93, 132, 153, 217, 15, 171]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LogUserBalances {} @@ -9417,7 +9417,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DisableUserHighLeverageMode { - const DISCRIMINATOR: [u8; 8] = [126, 242, 88, 155, 81, 152, 143, 68]; + const DISCRIMINATOR: &[u8] = &[126, 242, 88, 155, 81, 152, 143, 68]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DisableUserHighLeverageMode {} @@ -9493,7 +9493,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserFuelBonus { - const DISCRIMINATOR: [u8; 8] = [179, 14, 130, 214, 107, 254, 33, 235]; + const DISCRIMINATOR: &[u8] = &[179, 14, 130, 214, 107, 254, 33, 235]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserFuelBonus {} @@ -9568,7 +9568,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserStatsReferrerStatus { - const DISCRIMINATOR: [u8; 8] = [88, 125, 77, 90, 13, 11, 141, 158]; + const DISCRIMINATOR: &[u8] = &[88, 125, 77, 90, 13, 11, 141, 158]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserStatsReferrerStatus {} @@ -9639,7 +9639,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserOpenOrdersCount { - const DISCRIMINATOR: [u8; 8] = [21, 201, 16, 50, 34, 238, 126, 254]; + const DISCRIMINATOR: &[u8] = &[21, 201, 16, 50, 34, 238, 126, 254]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserOpenOrdersCount {} @@ -9714,7 +9714,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for AdminDisableUpdatePerpBidAskTwap { - const DISCRIMINATOR: [u8; 8] = [253, 223, 202, 93, 246, 209, 209, 26]; + const DISCRIMINATOR: &[u8] = &[253, 223, 202, 93, 246, 209, 209, 26]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for AdminDisableUpdatePerpBidAskTwap {} @@ -9785,7 +9785,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SettlePnl { - const DISCRIMINATOR: [u8; 8] = [216, 232, 154, 114, 103, 217, 85, 46]; + const DISCRIMINATOR: &[u8] = &[216, 232, 154, 114, 103, 217, 85, 46]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SettlePnl {} @@ -9861,7 +9861,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SettleMultiplePnls { - const DISCRIMINATOR: [u8; 8] = [6, 98, 112, 180, 76, 44, 249, 23]; + const DISCRIMINATOR: &[u8] = &[6, 98, 112, 180, 76, 44, 249, 23]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SettleMultiplePnls {} @@ -9935,7 +9935,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SettleFundingPayment { - const DISCRIMINATOR: [u8; 8] = [138, 197, 211, 110, 76, 124, 91, 34]; + const DISCRIMINATOR: &[u8] = &[138, 197, 211, 110, 76, 124, 91, 34]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SettleFundingPayment {} @@ -9999,7 +9999,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SettleLp { - const DISCRIMINATOR: [u8; 8] = [204, 189, 123, 14, 253, 251, 199, 239]; + const DISCRIMINATOR: &[u8] = &[204, 189, 123, 14, 253, 251, 199, 239]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SettleLp {} @@ -10064,7 +10064,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SettleExpiredMarket { - const DISCRIMINATOR: [u8; 8] = [208, 148, 90, 99, 162, 85, 158, 236]; + const DISCRIMINATOR: &[u8] = &[208, 148, 90, 99, 162, 85, 158, 236]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SettleExpiredMarket {} @@ -10137,7 +10137,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidatePerp { - const DISCRIMINATOR: [u8; 8] = [167, 66, 155, 127, 112, 246, 147, 196]; + const DISCRIMINATOR: &[u8] = &[167, 66, 155, 127, 112, 246, 147, 196]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LiquidatePerp {} @@ -10225,7 +10225,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidatePerpWithFill { - const DISCRIMINATOR: [u8; 8] = [236, 199, 136, 156, 22, 138, 41, 225]; + const DISCRIMINATOR: &[u8] = &[236, 199, 136, 156, 22, 138, 41, 225]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LiquidatePerpWithFill {} @@ -10313,7 +10313,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateSpot { - const DISCRIMINATOR: [u8; 8] = [89, 79, 84, 154, 215, 7, 211, 253]; + const DISCRIMINATOR: &[u8] = &[89, 79, 84, 154, 215, 7, 211, 253]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LiquidateSpot {} @@ -10408,7 +10408,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateSpotWithSwapBegin { - const DISCRIMINATOR: [u8; 8] = [58, 245, 239, 110, 253, 194, 212, 67]; + const DISCRIMINATOR: &[u8] = &[58, 245, 239, 110, 253, 194, 212, 67]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LiquidateSpotWithSwapBegin {} @@ -10538,7 +10538,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateSpotWithSwapEnd { - const DISCRIMINATOR: [u8; 8] = [157, 1, 82, 217, 233, 241, 137, 175]; + const DISCRIMINATOR: &[u8] = &[157, 1, 82, 217, 233, 241, 137, 175]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LiquidateSpotWithSwapEnd {} @@ -10661,7 +10661,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidateBorrowForPerpPnl { - const DISCRIMINATOR: [u8; 8] = [188, 143, 170, 71, 28, 50, 50, 50]; + const DISCRIMINATOR: &[u8] = &[188, 143, 170, 71, 28, 50, 50, 50]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LiquidateBorrowForPerpPnl {} @@ -10749,7 +10749,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for LiquidatePerpPnlForDeposit { - const DISCRIMINATOR: [u8; 8] = [66, 46, 37, 140, 100, 242, 118, 224]; + const DISCRIMINATOR: &[u8] = &[66, 46, 37, 140, 100, 242, 118, 224]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for LiquidatePerpPnlForDeposit {} @@ -10834,7 +10834,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SetUserStatusToBeingLiquidated { - const DISCRIMINATOR: [u8; 8] = [150, 171, 70, 240, 192, 22, 158, 128]; + const DISCRIMINATOR: &[u8] = &[150, 171, 70, 240, 192, 22, 158, 128]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SetUserStatusToBeingLiquidated {} @@ -10907,7 +10907,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ResolvePerpPnlDeficit { - const DISCRIMINATOR: [u8; 8] = [11, 51, 56, 223, 39, 129, 129, 31]; + const DISCRIMINATOR: &[u8] = &[11, 51, 56, 223, 39, 129, 129, 31]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ResolvePerpPnlDeficit {} @@ -10999,7 +10999,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ResolvePerpBankruptcy { - const DISCRIMINATOR: [u8; 8] = [232, 117, 49, 236, 173, 89, 78, 52]; + const DISCRIMINATOR: &[u8] = &[232, 117, 49, 236, 173, 89, 78, 52]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ResolvePerpBankruptcy {} @@ -11111,7 +11111,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ResolveSpotBankruptcy { - const DISCRIMINATOR: [u8; 8] = [186, 115, 37, 134, 49, 132, 252, 139]; + const DISCRIMINATOR: &[u8] = &[186, 115, 37, 134, 49, 132, 252, 139]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ResolveSpotBankruptcy {} @@ -11219,7 +11219,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SettleRevenueToInsuranceFund { - const DISCRIMINATOR: [u8; 8] = [49, 54, 211, 157, 180, 157, 182, 14]; + const DISCRIMINATOR: &[u8] = &[49, 54, 211, 157, 180, 157, 182, 14]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SettleRevenueToInsuranceFund {} @@ -11304,7 +11304,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateFundingRate { - const DISCRIMINATOR: [u8; 8] = [147, 129, 170, 235, 221, 137, 139, 160]; + const DISCRIMINATOR: &[u8] = &[147, 129, 170, 235, 221, 137, 139, 160]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateFundingRate {} @@ -11374,7 +11374,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePrelaunchOracle { - const DISCRIMINATOR: [u8; 8] = [246, 29, 3, 127, 200, 172, 45, 171]; + const DISCRIMINATOR: &[u8] = &[246, 29, 3, 127, 200, 172, 45, 171]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePrelaunchOracle {} @@ -11446,7 +11446,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpBidAskTwap { - const DISCRIMINATOR: [u8; 8] = [75, 78, 22, 179, 238, 41, 216, 90]; + const DISCRIMINATOR: &[u8] = &[75, 78, 22, 179, 238, 41, 216, 90]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpBidAskTwap {} @@ -11527,7 +11527,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketCumulativeInterest { - const DISCRIMINATOR: [u8; 8] = [103, 124, 233, 228, 65, 182, 52, 216]; + const DISCRIMINATOR: &[u8] = &[103, 124, 233, 228, 65, 182, 52, 216]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketCumulativeInterest {} @@ -11601,7 +11601,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateAmms { - const DISCRIMINATOR: [u8; 8] = [199, 237, 7, 202, 212, 96, 167, 243]; + const DISCRIMINATOR: &[u8] = &[199, 237, 7, 202, 212, 96, 167, 243]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateAmms {} @@ -11666,7 +11666,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketExpiry { - const DISCRIMINATOR: [u8; 8] = [124, 96, 183, 195, 2, 49, 222, 97]; + const DISCRIMINATOR: &[u8] = &[124, 96, 183, 195, 2, 49, 222, 97]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketExpiry {} @@ -11739,7 +11739,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserQuoteAssetInsuranceStake { - const DISCRIMINATOR: [u8; 8] = [78, 21, 169, 183, 105, 218, 162, 67]; + const DISCRIMINATOR: &[u8] = &[78, 21, 169, 183, 105, 218, 162, 67]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserQuoteAssetInsuranceStake {} @@ -11827,7 +11827,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserGovTokenInsuranceStake { - const DISCRIMINATOR: [u8; 8] = [43, 203, 49, 187, 213, 150, 189, 95]; + const DISCRIMINATOR: &[u8] = &[43, 203, 49, 187, 213, 150, 189, 95]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserGovTokenInsuranceStake {} @@ -11911,7 +11911,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateUserGovTokenInsuranceStakeDevnet { - const DISCRIMINATOR: [u8; 8] = [7, 243, 156, 21, 134, 61, 166, 81]; + const DISCRIMINATOR: &[u8] = &[7, 243, 156, 21, 134, 61, 166, 81]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateUserGovTokenInsuranceStakeDevnet {} @@ -11981,7 +11981,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [99, 171, 38, 232, 118, 110, 9, 182]; + const DISCRIMINATOR: &[u8] = &[99, 171, 38, 232, 118, 110, 9, 182]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeInsuranceFundStake {} @@ -12083,7 +12083,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for AddInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [0, 49, 78, 210, 146, 42, 143, 8]; + const DISCRIMINATOR: &[u8] = &[0, 49, 78, 210, 146, 42, 143, 8]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for AddInsuranceFundStake {} @@ -12190,7 +12190,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for RequestRemoveInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [19, 15, 248, 88, 171, 187, 152, 24]; + const DISCRIMINATOR: &[u8] = &[19, 15, 248, 88, 171, 187, 152, 24]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for RequestRemoveInsuranceFundStake {} @@ -12272,7 +12272,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for CancelRequestRemoveInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [143, 95, 196, 57, 1, 17, 40, 153]; + const DISCRIMINATOR: &[u8] = &[143, 95, 196, 57, 1, 17, 40, 153]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for CancelRequestRemoveInsuranceFundStake {} @@ -12358,7 +12358,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for RemoveInsuranceFundStake { - const DISCRIMINATOR: [u8; 8] = [64, 21, 182, 166, 31, 13, 139, 114]; + const DISCRIMINATOR: &[u8] = &[64, 21, 182, 166, 31, 13, 139, 114]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for RemoveInsuranceFundStake {} @@ -12463,7 +12463,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for TransferProtocolIfShares { - const DISCRIMINATOR: [u8; 8] = [113, 16, 209, 191, 115, 24, 39, 146]; + const DISCRIMINATOR: &[u8] = &[113, 16, 209, 191, 115, 24, 39, 146]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for TransferProtocolIfShares {} @@ -12559,7 +12559,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePythPullOracle { - const DISCRIMINATOR: [u8; 8] = [163, 16, 49, 37, 171, 99, 61, 60]; + const DISCRIMINATOR: &[u8] = &[163, 16, 49, 37, 171, 99, 61, 60]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePythPullOracle {} @@ -12635,7 +12635,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PostPythPullOracleUpdateAtomic { - const DISCRIMINATOR: [u8; 8] = [14, 125, 28, 5, 52, 143, 144, 18]; + const DISCRIMINATOR: &[u8] = &[14, 125, 28, 5, 52, 143, 144, 18]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PostPythPullOracleUpdateAtomic {} @@ -12710,7 +12710,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PostMultiPythPullOracleUpdatesAtomic { - const DISCRIMINATOR: [u8; 8] = [110, 234, 167, 14, 68, 55, 110, 122]; + const DISCRIMINATOR: &[u8] = &[110, 234, 167, 14, 68, 55, 110, 122]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PostMultiPythPullOracleUpdatesAtomic {} @@ -12781,7 +12781,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PauseSpotMarketDepositWithdraw { - const DISCRIMINATOR: [u8; 8] = [229, 56, 238, 247, 130, 249, 245, 152]; + const DISCRIMINATOR: &[u8] = &[229, 56, 238, 247, 130, 249, 245, 152]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PauseSpotMarketDepositWithdraw {} @@ -12860,7 +12860,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for Initialize { - const DISCRIMINATOR: [u8; 8] = [131, 246, 167, 36, 232, 249, 207, 142]; + const DISCRIMINATOR: &[u8] = &[131, 246, 167, 36, 232, 249, 207, 142]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for Initialize {} @@ -12958,7 +12958,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSpotMarket { - const DISCRIMINATOR: [u8; 8] = [71, 64, 197, 212, 23, 44, 156, 75]; + const DISCRIMINATOR: &[u8] = &[71, 64, 197, 212, 23, 44, 156, 75]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeSpotMarket {} @@ -13072,7 +13072,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DeleteInitializedSpotMarket { - const DISCRIMINATOR: [u8; 8] = [239, 247, 78, 81, 92, 141, 135, 107]; + const DISCRIMINATOR: &[u8] = &[239, 247, 78, 81, 92, 141, 135, 107]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DeleteInitializedSpotMarket {} @@ -13170,7 +13170,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeSerumFulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [19, 53, 42, 248, 46, 49, 92, 179]; + const DISCRIMINATOR: &[u8] = &[19, 53, 42, 248, 46, 49, 92, 179]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeSerumFulfillmentConfig {} @@ -13280,7 +13280,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSerumFulfillmentConfigStatus { - const DISCRIMINATOR: [u8; 8] = [132, 84, 50, 193, 9, 204, 122, 230]; + const DISCRIMINATOR: &[u8] = &[132, 84, 50, 193, 9, 204, 122, 230]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSerumFulfillmentConfigStatus {} @@ -13357,7 +13357,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeOpenbookV2FulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [22, 199, 68, 220, 120, 204, 78, 80]; + const DISCRIMINATOR: &[u8] = &[22, 199, 68, 220, 120, 204, 78, 80]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeOpenbookV2FulfillmentConfig {} @@ -13462,7 +13462,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for OpenbookV2FulfillmentConfigStatus { - const DISCRIMINATOR: [u8; 8] = [165, 142, 230, 255, 126, 234, 45, 16]; + const DISCRIMINATOR: &[u8] = &[165, 142, 230, 255, 126, 234, 45, 16]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for OpenbookV2FulfillmentConfigStatus {} @@ -13539,7 +13539,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePhoenixFulfillmentConfig { - const DISCRIMINATOR: [u8; 8] = [62, 152, 127, 242, 21, 146, 146, 126]; + const DISCRIMINATOR: &[u8] = &[62, 152, 127, 242, 21, 146, 146, 126]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializePhoenixFulfillmentConfig {} @@ -13644,7 +13644,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PhoenixFulfillmentConfigStatus { - const DISCRIMINATOR: [u8; 8] = [220, 133, 48, 129, 233, 8, 182, 172]; + const DISCRIMINATOR: &[u8] = &[220, 133, 48, 129, 233, 8, 182, 172]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PhoenixFulfillmentConfigStatus {} @@ -13714,7 +13714,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSerumVault { - const DISCRIMINATOR: [u8; 8] = [156, 242, 103, 240, 181, 141, 22, 33]; + const DISCRIMINATOR: &[u8] = &[156, 242, 103, 240, 181, 141, 22, 33]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSerumVault {} @@ -13787,7 +13787,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePerpMarket { - const DISCRIMINATOR: [u8; 8] = [25, 16, 69, 186, 57, 158, 209, 76]; + const DISCRIMINATOR: &[u8] = &[25, 16, 69, 186, 57, 158, 209, 76]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializePerpMarket {} @@ -13872,7 +13872,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePredictionMarket { - const DISCRIMINATOR: [u8; 8] = [20, 122, 255, 2, 124, 75, 145, 6]; + const DISCRIMINATOR: &[u8] = &[20, 122, 255, 2, 124, 75, 145, 6]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializePredictionMarket {} @@ -13942,7 +13942,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DeleteInitializedPerpMarket { - const DISCRIMINATOR: [u8; 8] = [40, 7, 193, 147, 191, 12, 100, 252]; + const DISCRIMINATOR: &[u8] = &[40, 7, 193, 147, 191, 12, 100, 252]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DeleteInitializedPerpMarket {} @@ -14012,7 +14012,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for MoveAmmPrice { - const DISCRIMINATOR: [u8; 8] = [236, 153, 176, 246, 97, 108, 58, 10]; + const DISCRIMINATOR: &[u8] = &[236, 153, 176, 246, 97, 108, 58, 10]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for MoveAmmPrice {} @@ -14082,7 +14082,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for RecenterPerpMarketAmm { - const DISCRIMINATOR: [u8; 8] = [152, 45, 182, 137, 52, 102, 161, 100]; + const DISCRIMINATOR: &[u8] = &[152, 45, 182, 137, 52, 102, 161, 100]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for RecenterPerpMarketAmm {} @@ -14154,7 +14154,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketAmmSummaryStats { - const DISCRIMINATOR: [u8; 8] = [99, 157, 213, 53, 50, 43, 173, 112]; + const DISCRIMINATOR: &[u8] = &[99, 157, 213, 53, 50, 43, 173, 112]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketAmmSummaryStats {} @@ -14234,7 +14234,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketExpiry { - const DISCRIMINATOR: [u8; 8] = [0, 190, 50, 234, 33, 65, 89, 123]; + const DISCRIMINATOR: &[u8] = &[0, 190, 50, 234, 33, 65, 89, 123]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketExpiry {} @@ -14305,7 +14305,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for SettleExpiredMarketPoolsToRevenuePool { - const DISCRIMINATOR: [u8; 8] = [94, 227, 127, 9, 147, 38, 93, 45]; + const DISCRIMINATOR: &[u8] = &[94, 227, 127, 9, 147, 38, 93, 45]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for SettleExpiredMarketPoolsToRevenuePool {} @@ -14385,7 +14385,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DepositIntoPerpMarketFeePool { - const DISCRIMINATOR: [u8; 8] = [135, 163, 183, 80, 184, 65, 88, 104]; + const DISCRIMINATOR: &[u8] = &[135, 163, 183, 80, 184, 65, 88, 104]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DepositIntoPerpMarketFeePool {} @@ -14483,7 +14483,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DepositIntoSpotMarketVault { - const DISCRIMINATOR: [u8; 8] = [56, 123, 23, 107, 140, 39, 66, 245]; + const DISCRIMINATOR: &[u8] = &[56, 123, 23, 107, 140, 39, 66, 245]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DepositIntoSpotMarketVault {} @@ -14571,7 +14571,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DepositIntoSpotMarketRevenuePool { - const DISCRIMINATOR: [u8; 8] = [120, 221, 129, 235, 106, 205, 195, 210]; + const DISCRIMINATOR: &[u8] = &[120, 221, 129, 235, 106, 205, 195, 210]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DepositIntoSpotMarketRevenuePool {} @@ -14657,7 +14657,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for RepegAmmCurve { - const DISCRIMINATOR: [u8; 8] = [183, 96, 186, 13, 27, 52, 226, 194]; + const DISCRIMINATOR: &[u8] = &[183, 96, 186, 13, 27, 52, 226, 194]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for RepegAmmCurve {} @@ -14733,7 +14733,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketAmmOracleTwap { - const DISCRIMINATOR: [u8; 8] = [4, 62, 151, 214, 85, 102, 165, 154]; + const DISCRIMINATOR: &[u8] = &[4, 62, 151, 214, 85, 102, 165, 154]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketAmmOracleTwap {} @@ -14809,7 +14809,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for ResetPerpMarketAmmOracleTwap { - const DISCRIMINATOR: [u8; 8] = [31, 97, 152, 72, 18, 20, 35, 195]; + const DISCRIMINATOR: &[u8] = &[31, 97, 152, 72, 18, 20, 35, 195]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for ResetPerpMarketAmmOracleTwap {} @@ -14885,7 +14885,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateK { - const DISCRIMINATOR: [u8; 8] = [173, 8, 27, 196, 81, 191, 36, 109]; + const DISCRIMINATOR: &[u8] = &[173, 8, 27, 196, 81, 191, 36, 109]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateK {} @@ -14960,7 +14960,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMarginRatio { - const DISCRIMINATOR: [u8; 8] = [221, 168, 98, 81, 42, 207, 199, 104]; + const DISCRIMINATOR: &[u8] = &[221, 168, 98, 81, 42, 207, 199, 104]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketMarginRatio {} @@ -15030,7 +15030,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketHighLeverageMarginRatio { - const DISCRIMINATOR: [u8; 8] = [94, 44, 114, 224, 250, 149, 47, 90]; + const DISCRIMINATOR: &[u8] = &[94, 44, 114, 224, 250, 149, 47, 90]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketHighLeverageMarginRatio {} @@ -15100,7 +15100,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketFundingPeriod { - const DISCRIMINATOR: [u8; 8] = [143, 196, 48, 65, 237, 226, 95, 77]; + const DISCRIMINATOR: &[u8] = &[143, 196, 48, 65, 237, 226, 95, 77]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketFundingPeriod {} @@ -15170,7 +15170,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxImbalances { - const DISCRIMINATOR: [u8; 8] = [166, 19, 134, 181, 163, 163, 221, 128]; + const DISCRIMINATOR: &[u8] = &[166, 19, 134, 181, 163, 163, 221, 128]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketMaxImbalances {} @@ -15240,7 +15240,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketLiquidationFee { - const DISCRIMINATOR: [u8; 8] = [12, 91, 76, 183, 11, 62, 192, 215]; + const DISCRIMINATOR: &[u8] = &[12, 91, 76, 183, 11, 62, 192, 215]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketLiquidationFee {} @@ -15310,7 +15310,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateInsuranceFundUnstakingPeriod { - const DISCRIMINATOR: [u8; 8] = [221, 191, 114, 7, 101, 250, 31, 201]; + const DISCRIMINATOR: &[u8] = &[221, 191, 114, 7, 101, 250, 31, 201]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateInsuranceFundUnstakingPeriod {} @@ -15380,7 +15380,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketPoolId { - const DISCRIMINATOR: [u8; 8] = [221, 222, 116, 19, 147, 70, 109, 228]; + const DISCRIMINATOR: &[u8] = &[221, 222, 116, 19, 147, 70, 109, 228]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketPoolId {} @@ -15450,7 +15450,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketLiquidationFee { - const DISCRIMINATOR: [u8; 8] = [233, 115, 0, 78, 143, 75, 33, 75]; + const DISCRIMINATOR: &[u8] = &[233, 115, 0, 78, 143, 75, 33, 75]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketLiquidationFee {} @@ -15520,7 +15520,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateWithdrawGuardThreshold { - const DISCRIMINATOR: [u8; 8] = [164, 77, 57, 122, 175, 179, 81, 84]; + const DISCRIMINATOR: &[u8] = &[164, 77, 57, 122, 175, 179, 81, 84]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateWithdrawGuardThreshold {} @@ -15590,7 +15590,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketIfFactor { - const DISCRIMINATOR: [u8; 8] = [235, 61, 57, 159, 24, 10, 159, 53]; + const DISCRIMINATOR: &[u8] = &[235, 61, 57, 159, 24, 10, 159, 53]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketIfFactor {} @@ -15660,7 +15660,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketRevenueSettlePeriod { - const DISCRIMINATOR: [u8; 8] = [251, 114, 78, 11, 27, 117, 179, 21]; + const DISCRIMINATOR: &[u8] = &[251, 114, 78, 11, 27, 117, 179, 21]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketRevenueSettlePeriod {} @@ -15730,7 +15730,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketStatus { - const DISCRIMINATOR: [u8; 8] = [39, 227, 245, 172, 81, 243, 74, 239]; + const DISCRIMINATOR: &[u8] = &[39, 227, 245, 172, 81, 243, 74, 239]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketStatus {} @@ -15800,7 +15800,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketPausedOperations { - const DISCRIMINATOR: [u8; 8] = [177, 42, 203, 86, 124, 85, 32, 39]; + const DISCRIMINATOR: &[u8] = &[177, 42, 203, 86, 124, 85, 32, 39]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketPausedOperations {} @@ -15870,7 +15870,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketAssetTier { - const DISCRIMINATOR: [u8; 8] = [216, 218, 15, 206, 208, 164, 24, 163]; + const DISCRIMINATOR: &[u8] = &[216, 218, 15, 206, 208, 164, 24, 163]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketAssetTier {} @@ -15940,7 +15940,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMarginWeights { - const DISCRIMINATOR: [u8; 8] = [32, 75, 107, 180, 16, 197, 1, 38]; + const DISCRIMINATOR: &[u8] = &[32, 75, 107, 180, 16, 197, 1, 38]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketMarginWeights {} @@ -16010,7 +16010,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketBorrowRate { - const DISCRIMINATOR: [u8; 8] = [216, 47, 114, 248, 0, 78, 173, 186]; + const DISCRIMINATOR: &[u8] = &[216, 47, 114, 248, 0, 78, 173, 186]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketBorrowRate {} @@ -16080,7 +16080,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMaxTokenDeposits { - const DISCRIMINATOR: [u8; 8] = [89, 241, 13, 153, 229, 206, 230, 40]; + const DISCRIMINATOR: &[u8] = &[89, 241, 13, 153, 229, 206, 230, 40]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketMaxTokenDeposits {} @@ -16150,7 +16150,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMaxTokenBorrows { - const DISCRIMINATOR: [u8; 8] = [76, 222, 78, 65, 19, 17, 10, 26]; + const DISCRIMINATOR: &[u8] = &[76, 222, 78, 65, 19, 17, 10, 26]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketMaxTokenBorrows {} @@ -16220,7 +16220,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketScaleInitialAssetWeightStart { - const DISCRIMINATOR: [u8; 8] = [154, 211, 71, 7, 119, 171, 98, 72]; + const DISCRIMINATOR: &[u8] = &[154, 211, 71, 7, 119, 171, 98, 72]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketScaleInitialAssetWeightStart {} @@ -16295,7 +16295,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketOracle { - const DISCRIMINATOR: [u8; 8] = [36, 174, 101, 206, 244, 70, 211, 189]; + const DISCRIMINATOR: &[u8] = &[36, 174, 101, 206, 244, 70, 211, 189]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketOracle {} @@ -16375,7 +16375,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketStepSizeAndTickSize { - const DISCRIMINATOR: [u8; 8] = [129, 204, 160, 151, 133, 198, 153, 119]; + const DISCRIMINATOR: &[u8] = &[129, 204, 160, 151, 133, 198, 153, 119]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketStepSizeAndTickSize {} @@ -16445,7 +16445,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketMinOrderSize { - const DISCRIMINATOR: [u8; 8] = [7, 136, 27, 144, 153, 150, 80, 125]; + const DISCRIMINATOR: &[u8] = &[7, 136, 27, 144, 153, 150, 80, 125]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketMinOrderSize {} @@ -16515,7 +16515,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketOrdersEnabled { - const DISCRIMINATOR: [u8; 8] = [19, 211, 29, 85, 150, 174, 176, 255]; + const DISCRIMINATOR: &[u8] = &[19, 211, 29, 85, 150, 174, 176, 255]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketOrdersEnabled {} @@ -16585,7 +16585,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketIfPausedOperations { - const DISCRIMINATOR: [u8; 8] = [198, 225, 237, 109, 145, 233, 119, 66]; + const DISCRIMINATOR: &[u8] = &[198, 225, 237, 109, 145, 233, 119, 66]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketIfPausedOperations {} @@ -16655,7 +16655,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketName { - const DISCRIMINATOR: [u8; 8] = [132, 15, 105, 156, 160, 4, 62, 223]; + const DISCRIMINATOR: &[u8] = &[132, 15, 105, 156, 160, 4, 62, 223]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketName {} @@ -16725,7 +16725,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketStatus { - const DISCRIMINATOR: [u8; 8] = [224, 52, 220, 78, 238, 167, 101, 138]; + const DISCRIMINATOR: &[u8] = &[224, 52, 220, 78, 238, 167, 101, 138]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketStatus {} @@ -16795,7 +16795,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketPausedOperations { - const DISCRIMINATOR: [u8; 8] = [51, 168, 150, 68, 102, 63, 155, 3]; + const DISCRIMINATOR: &[u8] = &[51, 168, 150, 68, 102, 63, 155, 3]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketPausedOperations {} @@ -16865,7 +16865,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketContractTier { - const DISCRIMINATOR: [u8; 8] = [222, 107, 185, 64, 127, 171, 165, 198]; + const DISCRIMINATOR: &[u8] = &[222, 107, 185, 64, 127, 171, 165, 198]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketContractTier {} @@ -16935,7 +16935,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketImfFactor { - const DISCRIMINATOR: [u8; 8] = [225, 32, 202, 238, 175, 168, 66, 111]; + const DISCRIMINATOR: &[u8] = &[225, 32, 202, 238, 175, 168, 66, 111]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketImfFactor {} @@ -17005,7 +17005,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketUnrealizedAssetWeight { - const DISCRIMINATOR: [u8; 8] = [96, 83, 120, 200, 98, 169, 198, 236]; + const DISCRIMINATOR: &[u8] = &[96, 83, 120, 200, 98, 169, 198, 236]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketUnrealizedAssetWeight {} @@ -17075,7 +17075,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketConcentrationCoef { - const DISCRIMINATOR: [u8; 8] = [216, 212, 111, 9, 250, 64, 121, 75]; + const DISCRIMINATOR: &[u8] = &[216, 212, 111, 9, 250, 64, 121, 75]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketConcentrationCoef {} @@ -17145,7 +17145,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketCurveUpdateIntensity { - const DISCRIMINATOR: [u8; 8] = [174, 119, 97, 13, 217, 130, 136, 102]; + const DISCRIMINATOR: &[u8] = &[174, 119, 97, 13, 217, 130, 136, 102]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketCurveUpdateIntensity {} @@ -17215,7 +17215,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketTargetBaseAssetAmountPerLp { - const DISCRIMINATOR: [u8; 8] = [140, 252, 191, 7, 247, 96, 68, 225]; + const DISCRIMINATOR: &[u8] = &[140, 252, 191, 7, 247, 96, 68, 225]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketTargetBaseAssetAmountPerLp {} @@ -17288,7 +17288,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketPerLpBase { - const DISCRIMINATOR: [u8; 8] = [223, 224, 23, 54, 113, 122, 152, 77]; + const DISCRIMINATOR: &[u8] = &[223, 224, 23, 54, 113, 122, 152, 77]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketPerLpBase {} @@ -17357,7 +17357,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateLpCooldownTime { - const DISCRIMINATOR: [u8; 8] = [176, 192, 230, 203, 208, 6, 140, 65]; + const DISCRIMINATOR: &[u8] = &[176, 192, 230, 203, 208, 6, 140, 65]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateLpCooldownTime {} @@ -17421,7 +17421,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpFeeStructure { - const DISCRIMINATOR: [u8; 8] = [200, 56, 109, 180, 172, 159, 143, 220]; + const DISCRIMINATOR: &[u8] = &[200, 56, 109, 180, 172, 159, 143, 220]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpFeeStructure {} @@ -17485,7 +17485,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotFeeStructure { - const DISCRIMINATOR: [u8; 8] = [24, 12, 37, 124, 132, 63, 160, 6]; + const DISCRIMINATOR: &[u8] = &[24, 12, 37, 124, 132, 63, 160, 6]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotFeeStructure {} @@ -17549,7 +17549,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateInitialPctToLiquidate { - const DISCRIMINATOR: [u8; 8] = [245, 97, 64, 31, 129, 51, 40, 245]; + const DISCRIMINATOR: &[u8] = &[245, 97, 64, 31, 129, 51, 40, 245]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateInitialPctToLiquidate {} @@ -17613,7 +17613,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateLiquidationDuration { - const DISCRIMINATOR: [u8; 8] = [195, 45, 228, 75, 98, 127, 63, 63]; + const DISCRIMINATOR: &[u8] = &[195, 45, 228, 75, 98, 127, 63, 63]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateLiquidationDuration {} @@ -17677,7 +17677,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateLiquidationMarginBufferRatio { - const DISCRIMINATOR: [u8; 8] = [5, 215, 155, 184, 19, 125, 142, 66]; + const DISCRIMINATOR: &[u8] = &[5, 215, 155, 184, 19, 125, 142, 66]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateLiquidationMarginBufferRatio {} @@ -17741,7 +17741,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateOracleGuardRails { - const DISCRIMINATOR: [u8; 8] = [141, 30, 9, 240, 136, 75, 69, 245]; + const DISCRIMINATOR: &[u8] = &[141, 30, 9, 240, 136, 75, 69, 245]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateOracleGuardRails {} @@ -17805,7 +17805,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateStateSettlementDuration { - const DISCRIMINATOR: [u8; 8] = [117, 8, 77, 34, 122, 119, 61, 165]; + const DISCRIMINATOR: &[u8] = &[117, 8, 77, 34, 122, 119, 61, 165]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateStateSettlementDuration {} @@ -17869,7 +17869,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateStateMaxNumberOfSubAccounts { - const DISCRIMINATOR: [u8; 8] = [105, 137, 80, 95, 51, 50, 190, 95]; + const DISCRIMINATOR: &[u8] = &[105, 137, 80, 95, 51, 50, 190, 95]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateStateMaxNumberOfSubAccounts {} @@ -17933,7 +17933,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateStateMaxInitializeUserFee { - const DISCRIMINATOR: [u8; 8] = [183, 72, 183, 217, 46, 152, 38, 41]; + const DISCRIMINATOR: &[u8] = &[183, 72, 183, 217, 46, 152, 38, 41]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateStateMaxInitializeUserFee {} @@ -18000,7 +18000,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketOracle { - const DISCRIMINATOR: [u8; 8] = [145, 236, 122, 74, 26, 16, 123, 173]; + const DISCRIMINATOR: &[u8] = &[145, 236, 122, 74, 26, 16, 123, 173]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketOracle {} @@ -18080,7 +18080,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketBaseSpread { - const DISCRIMINATOR: [u8; 8] = [103, 167, 141, 61, 192, 229, 25, 38]; + const DISCRIMINATOR: &[u8] = &[103, 167, 141, 61, 192, 229, 25, 38]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketBaseSpread {} @@ -18150,7 +18150,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateAmmJitIntensity { - const DISCRIMINATOR: [u8; 8] = [53, 216, 81, 248, 60, 1, 222, 134]; + const DISCRIMINATOR: &[u8] = &[53, 216, 81, 248, 60, 1, 222, 134]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateAmmJitIntensity {} @@ -18220,7 +18220,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxSpread { - const DISCRIMINATOR: [u8; 8] = [6, 132, 169, 40, 124, 227, 156, 212]; + const DISCRIMINATOR: &[u8] = &[6, 132, 169, 40, 124, 227, 156, 212]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketMaxSpread {} @@ -18290,7 +18290,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketStepSizeAndTickSize { - const DISCRIMINATOR: [u8; 8] = [97, 22, 195, 229, 181, 121, 32, 14]; + const DISCRIMINATOR: &[u8] = &[97, 22, 195, 229, 181, 121, 32, 14]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketStepSizeAndTickSize {} @@ -18360,7 +18360,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketName { - const DISCRIMINATOR: [u8; 8] = [120, 12, 150, 158, 194, 231, 152, 183]; + const DISCRIMINATOR: &[u8] = &[120, 12, 150, 158, 194, 231, 152, 183]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketName {} @@ -18430,7 +18430,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMinOrderSize { - const DISCRIMINATOR: [u8; 8] = [148, 182, 143, 25, 247, 254, 104, 102]; + const DISCRIMINATOR: &[u8] = &[148, 182, 143, 25, 247, 254, 104, 102]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketMinOrderSize {} @@ -18500,7 +18500,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxSlippageRatio { - const DISCRIMINATOR: [u8; 8] = [56, 192, 174, 214, 217, 227, 164, 25]; + const DISCRIMINATOR: &[u8] = &[56, 192, 174, 214, 217, 227, 164, 25]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketMaxSlippageRatio {} @@ -18570,7 +18570,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxFillReserveFraction { - const DISCRIMINATOR: [u8; 8] = [158, 50, 175, 240, 17, 123, 186, 41]; + const DISCRIMINATOR: &[u8] = &[158, 50, 175, 240, 17, 123, 186, 41]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketMaxFillReserveFraction {} @@ -18640,7 +18640,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketMaxOpenInterest { - const DISCRIMINATOR: [u8; 8] = [211, 243, 37, 54, 206, 192, 240, 221]; + const DISCRIMINATOR: &[u8] = &[211, 243, 37, 54, 206, 192, 240, 221]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketMaxOpenInterest {} @@ -18710,7 +18710,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketNumberOfUsers { - const DISCRIMINATOR: [u8; 8] = [221, 66, 246, 127, 23, 14, 214, 137]; + const DISCRIMINATOR: &[u8] = &[221, 66, 246, 127, 23, 14, 214, 137]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketNumberOfUsers {} @@ -18780,7 +18780,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketFeeAdjustment { - const DISCRIMINATOR: [u8; 8] = [110, 120, 82, 31, 217, 115, 121, 11]; + const DISCRIMINATOR: &[u8] = &[110, 120, 82, 31, 217, 115, 121, 11]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketFeeAdjustment {} @@ -18850,7 +18850,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketFeeAdjustment { - const DISCRIMINATOR: [u8; 8] = [124, 184, 119, 171, 139, 199, 27, 40]; + const DISCRIMINATOR: &[u8] = &[124, 184, 119, 171, 139, 199, 27, 40]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketFeeAdjustment {} @@ -18920,7 +18920,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpMarketFuel { - const DISCRIMINATOR: [u8; 8] = [128, 34, 207, 128, 207, 145, 65, 46]; + const DISCRIMINATOR: &[u8] = &[128, 34, 207, 128, 207, 145, 65, 46]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpMarketFuel {} @@ -18990,7 +18990,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotMarketFuel { - const DISCRIMINATOR: [u8; 8] = [169, 6, 208, 85, 23, 115, 22, 75]; + const DISCRIMINATOR: &[u8] = &[169, 6, 208, 85, 23, 115, 22, 75]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotMarketFuel {} @@ -19061,7 +19061,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitUserFuel { - const DISCRIMINATOR: [u8; 8] = [78, 54, 127, 169, 245, 179, 149, 35]; + const DISCRIMINATOR: &[u8] = &[78, 54, 127, 169, 245, 179, 149, 35]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitUserFuel {} @@ -19135,7 +19135,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateAdmin { - const DISCRIMINATOR: [u8; 8] = [226, 255, 184, 234, 67, 191, 5, 182]; + const DISCRIMINATOR: &[u8] = &[226, 255, 184, 234, 67, 191, 5, 182]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateAdmin {} @@ -19199,7 +19199,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateWhitelistMint { - const DISCRIMINATOR: [u8; 8] = [227, 158, 63, 228, 73, 69, 23, 54]; + const DISCRIMINATOR: &[u8] = &[227, 158, 63, 228, 73, 69, 23, 54]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateWhitelistMint {} @@ -19263,7 +19263,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateDiscountMint { - const DISCRIMINATOR: [u8; 8] = [26, 238, 24, 203, 91, 255, 142, 129]; + const DISCRIMINATOR: &[u8] = &[26, 238, 24, 203, 91, 255, 142, 129]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateDiscountMint {} @@ -19327,7 +19327,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateExchangeStatus { - const DISCRIMINATOR: [u8; 8] = [54, 251, 5, 25, 149, 14, 206, 156]; + const DISCRIMINATOR: &[u8] = &[54, 251, 5, 25, 149, 14, 206, 156]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateExchangeStatus {} @@ -19391,7 +19391,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePerpAuctionDuration { - const DISCRIMINATOR: [u8; 8] = [220, 51, 72, 247, 206, 206, 238, 110]; + const DISCRIMINATOR: &[u8] = &[220, 51, 72, 247, 206, 206, 238, 110]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePerpAuctionDuration {} @@ -19455,7 +19455,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateSpotAuctionDuration { - const DISCRIMINATOR: [u8; 8] = [227, 57, 154, 80, 55, 26, 182, 148]; + const DISCRIMINATOR: &[u8] = &[227, 57, 154, 80, 55, 26, 182, 148]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateSpotAuctionDuration {} @@ -19522,7 +19522,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeProtocolIfSharesTransferConfig { - const DISCRIMINATOR: [u8; 8] = [204, 47, 201, 74, 217, 201, 130, 232]; + const DISCRIMINATOR: &[u8] = &[204, 47, 201, 74, 217, 201, 130, 232]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeProtocolIfSharesTransferConfig {} @@ -19605,7 +19605,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateProtocolIfSharesTransferConfig { - const DISCRIMINATOR: [u8; 8] = [244, 48, 134, 239, 41, 44, 96, 131]; + const DISCRIMINATOR: &[u8] = &[244, 48, 134, 239, 41, 44, 96, 131]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateProtocolIfSharesTransferConfig {} @@ -19677,7 +19677,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePrelaunchOracle { - const DISCRIMINATOR: [u8; 8] = [130, 152, 19, 253, 63, 72, 246, 220]; + const DISCRIMINATOR: &[u8] = &[130, 152, 19, 253, 63, 72, 246, 220]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializePrelaunchOracle {} @@ -19758,7 +19758,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdatePrelaunchOracleParams { - const DISCRIMINATOR: [u8; 8] = [197, 77, 11, 137, 115, 92, 181, 124]; + const DISCRIMINATOR: &[u8] = &[197, 77, 11, 137, 115, 92, 181, 124]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdatePrelaunchOracleParams {} @@ -19834,7 +19834,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for DeletePrelaunchOracle { - const DISCRIMINATOR: [u8; 8] = [124, 0, 150, 210, 115, 171, 215, 202]; + const DISCRIMINATOR: &[u8] = &[124, 0, 150, 210, 115, 171, 215, 202]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for DeletePrelaunchOracle {} @@ -19911,7 +19911,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePythPullOracle { - const DISCRIMINATOR: [u8; 8] = [11, 151, 145, 80, 21, 164, 2, 147]; + const DISCRIMINATOR: &[u8] = &[11, 151, 145, 80, 21, 164, 2, 147]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializePythPullOracle {} @@ -19993,7 +19993,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializePythLazerOracle { - const DISCRIMINATOR: [u8; 8] = [89, 72, 144, 241, 94, 171, 28, 143]; + const DISCRIMINATOR: &[u8] = &[89, 72, 144, 241, 94, 171, 28, 143]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializePythLazerOracle {} @@ -20073,7 +20073,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for PostPythLazerOracleUpdate { - const DISCRIMINATOR: [u8; 8] = [168, 250, 82, 74, 96, 140, 128, 207]; + const DISCRIMINATOR: &[u8] = &[168, 250, 82, 74, 96, 140, 128, 207]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for PostPythLazerOracleUpdate {} @@ -20145,7 +20145,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeHighLeverageModeConfig { - const DISCRIMINATOR: [u8; 8] = [125, 235, 77, 45, 130, 90, 134, 48]; + const DISCRIMINATOR: &[u8] = &[125, 235, 77, 45, 130, 90, 134, 48]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeHighLeverageModeConfig {} @@ -20225,7 +20225,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateHighLeverageModeConfig { - const DISCRIMINATOR: [u8; 8] = [254, 192, 159, 254, 254, 74, 141, 70]; + const DISCRIMINATOR: &[u8] = &[254, 192, 159, 254, 254, 74, 141, 70]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateHighLeverageModeConfig {} @@ -20297,7 +20297,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for InitializeProtectedMakerModeConfig { - const DISCRIMINATOR: [u8; 8] = [71, 150, 108, 182, 19, 30, 72, 149]; + const DISCRIMINATOR: &[u8] = &[71, 150, 108, 182, 19, 30, 72, 149]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for InitializeProtectedMakerModeConfig {} @@ -20377,7 +20377,7 @@ pub mod accounts { } #[automatically_derived] impl anchor_lang::Discriminator for UpdateProtectedMakerModeConfig { - const DISCRIMINATOR: [u8; 8] = [189, 135, 186, 140, 137, 238, 182, 65]; + const DISCRIMINATOR: &[u8] = &[189, 135, 186, 140, 137, 238, 182, 65]; } #[automatically_derived] unsafe impl anchor_lang::__private::bytemuck::Pod for UpdateProtectedMakerModeConfig {} diff --git a/crates/src/event_subscriber.rs b/crates/src/event_subscriber.rs index 4f3ffaee..12523b18 100644 --- a/crates/src/event_subscriber.rs +++ b/crates/src/event_subscriber.rs @@ -535,7 +535,7 @@ impl DriftEvent { signature: &str, tx_idx: usize, ) -> Option { - match disc { + match disc.as_slice() { // deser should only fail on a breaking protocol changes OrderActionRecord::DISCRIMINATOR => Self::from_oar( OrderActionRecord::deserialize(data).expect("deserializes"), diff --git a/crates/src/jit_client.rs b/crates/src/jit_client.rs index 16114b35..cf73a188 100644 --- a/crates/src/jit_client.rs +++ b/crates/src/jit_client.rs @@ -468,7 +468,7 @@ pub mod instruction { pub params: JitParams, } impl anchor_lang::Discriminator for Jit { - const DISCRIMINATOR: [u8; 8] = [99, 42, 97, 140, 152, 62, 167, 234]; + const DISCRIMINATOR: &[u8] = &[99, 42, 97, 140, 152, 62, 167, 234]; } impl anchor_lang::InstructionData for Jit {} @@ -488,7 +488,7 @@ pub mod instruction { pub params: JitSignedMsgParams, } impl anchor_lang::Discriminator for JitSignedMsg { - const DISCRIMINATOR: [u8; 8] = [134, 130, 156, 72, 37, 120, 153, 21]; + const DISCRIMINATOR: &[u8] = &[134, 130, 156, 72, 37, 120, 153, 21]; } impl anchor_lang::InstructionData for JitSignedMsg {} diff --git a/crates/src/swift_order_subscriber.rs b/crates/src/swift_order_subscriber.rs index 222c5b9b..78829dd2 100644 --- a/crates/src/swift_order_subscriber.rs +++ b/crates/src/swift_order_subscriber.rs @@ -172,10 +172,9 @@ pub async fn subscribe_swift_orders( let auth_message = json!({ "pubkey": maker_pubkey, "signature": signature_b64, - }); - outgoing - .send(Message::Text(auth_message.to_string())) - .await?; + }) + .to_string(); + outgoing.send(Message::Text(auth_message.into())).await?; continue; } @@ -193,8 +192,9 @@ pub async fn subscribe_swift_orders( "action": "subscribe", "market_type": "perp", "market_name": market.symbol(), - }); - Ok(Message::Text(subscribe_msg.to_string())) + }) + .to_string(); + Ok(Message::Text(subscribe_msg.into())) }) .collect(); From ae9403a7efd7856dcf6df71a39d020f31f4c4725 Mon Sep 17 00:00:00 2001 From: jordy25519 Date: Tue, 11 Mar 2025 12:43:25 +0800 Subject: [PATCH 2/3] Clippy fixes fix test build --- Cargo.lock | 3 +- Cargo.toml | 3 +- crates/drift-idl-gen/src/lib.rs | 4 +- crates/pubsub-client/Cargo.toml | 2 +- crates/pubsub-client/src/lib.rs | 2 +- crates/src/auction_subscriber.rs | 2 +- crates/src/drift_idl.rs | 432 +++++++++--------- crates/src/event_subscriber.rs | 2 +- crates/src/ffi.rs | 19 +- crates/src/jit_client.rs | 2 +- crates/src/lib.rs | 2 +- crates/src/marketmap.rs | 2 +- crates/src/polled_account_subscriber.rs | 5 +- crates/src/usermap.rs | 2 +- crates/src/utils.rs | 4 +- crates/src/websocket_account_subscriber.rs | 2 +- .../websocket_program_account_subscriber.rs | 2 +- 17 files changed, 245 insertions(+), 245 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9fa7d4e6..2ba87d68 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1216,7 +1216,7 @@ dependencies = [ "log", "serde", "serde_json", - "solana-account-decoder", + "solana-account-decoder-client-types", "solana-rpc-client-api", "solana-sdk", "thiserror 1.0.69", @@ -1249,6 +1249,7 @@ dependencies = [ "serde", "serde_json", "solana-account-decoder", + "solana-account-decoder-client-types", "solana-rpc-client", "solana-rpc-client-api", "solana-sdk", diff --git a/Cargo.toml b/Cargo.toml index a459b008..6a89e1d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ rayon = { version = "1.9.0", optional = true } regex = "1.10" serde = { version = "1", features = ["derive"] } serde_json = "1" -solana-account-decoder = "2.1" +solana-account-decoder-client-types = "2.1" solana-rpc-client = "2.1" solana-rpc-client-api = "2.1" solana-sdk = "2.1" @@ -51,6 +51,7 @@ drift-pubsub-client = { version = "0.1.0", path = "crates/pubsub-client" } [dev-dependencies] bytes = "1" hex-literal = "0.4" +solana-account-decoder = "2.1" toml = "0.8" [build-dependencies] diff --git a/crates/drift-idl-gen/src/lib.rs b/crates/drift-idl-gen/src/lib.rs index a8df3843..a3b3ea86 100644 --- a/crates/drift-idl-gen/src/lib.rs +++ b/crates/drift-idl-gen/src/lib.rs @@ -341,7 +341,7 @@ fn generate_idl_types(idl: &Idl) -> String { #[automatically_derived] impl anchor_lang::AccountSerialize for #struct_name { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } @@ -462,7 +462,7 @@ fn generate_idl_types(idl: &Idl) -> String { #[automatically_derived] impl anchor_lang::AccountSerialize for #struct_name { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } diff --git a/crates/pubsub-client/Cargo.toml b/crates/pubsub-client/Cargo.toml index 954c87ba..823a1c64 100644 --- a/crates/pubsub-client/Cargo.toml +++ b/crates/pubsub-client/Cargo.toml @@ -13,7 +13,7 @@ gjson = "0.8.1" log = "0.4" serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["raw_value"] } -solana-account-decoder = "2.1" +solana-account-decoder-client-types = "2.1" solana-sdk = "2.1" solana-rpc-client-api = "2.1" thiserror = "1" diff --git a/crates/pubsub-client/src/lib.rs b/crates/pubsub-client/src/lib.rs index 0ee50c99..c5af01b0 100644 --- a/crates/pubsub-client/src/lib.rs +++ b/crates/pubsub-client/src/lib.rs @@ -8,7 +8,7 @@ use futures_util::{ use log::*; use serde::de::DeserializeOwned; use serde_json::{json, Value}; -use solana_account_decoder::UiAccount; +use solana_account_decoder_client_types::UiAccount; use solana_rpc_client_api::{ config::{ RpcAccountInfoConfig, RpcBlockSubscribeConfig, RpcBlockSubscribeFilter, diff --git a/crates/src/auction_subscriber.rs b/crates/src/auction_subscriber.rs index c4088de8..022d54e6 100644 --- a/crates/src/auction_subscriber.rs +++ b/crates/src/auction_subscriber.rs @@ -1,6 +1,6 @@ use std::sync::Mutex; -use solana_account_decoder::UiAccountEncoding; +use solana_account_decoder_client_types::UiAccountEncoding; use solana_sdk::commitment_config::CommitmentConfig; use crate::{ diff --git a/crates/src/drift_idl.rs b/crates/src/drift_idl.rs index 1d0da23d..a4c5cc4e 100644 --- a/crates/src/drift_idl.rs +++ b/crates/src/drift_idl.rs @@ -3965,7 +3965,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for OpenbookV2FulfillmentConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4030,7 +4030,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PhoenixV1FulfillmentConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4100,7 +4100,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SerumV3FulfillmentConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4159,7 +4159,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for HighLeverageModeConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4224,7 +4224,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InsuranceFundStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4284,7 +4284,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ProtocolIfSharesTransferConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4346,7 +4346,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PrelaunchOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4436,7 +4436,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PerpMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4495,7 +4495,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ProtectedMakerModeConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4556,7 +4556,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PythLazerOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4598,7 +4598,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SignedMsgUserOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4638,7 +4638,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SignedMsgWsDelegates { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4757,7 +4757,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SpotMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4837,7 +4837,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for State { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -4923,7 +4923,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for User { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5004,7 +5004,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UserStats { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5062,7 +5062,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ReferrerName { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5127,7 +5127,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for FuelOverflow { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5221,7 +5221,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeUser { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5309,7 +5309,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeUserStats { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5391,7 +5391,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeSignedMsgUserOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5461,7 +5461,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ResizeSignedMsgUserOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5537,7 +5537,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeSignedMsgWsDelegates { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5607,7 +5607,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ChangeSignedMsgWsDelegateStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5695,7 +5695,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeFuelOverflow { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5771,7 +5771,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SweepFuel { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5847,7 +5847,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ResetFuelSeason { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -5941,7 +5941,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeReferrerName { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6035,7 +6035,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for Deposit { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6135,7 +6135,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for Withdraw { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6223,7 +6223,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for TransferDeposit { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6335,7 +6335,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for TransferPools { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6405,7 +6405,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlacePerpOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6475,7 +6475,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for CancelOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6545,7 +6545,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for CancelOrderByUserId { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6615,7 +6615,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for CancelOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6685,7 +6685,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for CancelOrdersByIds { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6755,7 +6755,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ModifyOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6825,7 +6825,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ModifyOrderByUserId { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6901,7 +6901,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceAndTakePerpOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -6989,7 +6989,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceAndMakePerpOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7083,7 +7083,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceAndMakeSignedMsgPerpOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7171,7 +7171,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceSignedMsgTakerOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7241,7 +7241,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceSpotOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7317,7 +7317,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceAndTakeSpotOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7405,7 +7405,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceAndMakeSpotOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7475,7 +7475,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PlaceOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7593,7 +7593,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for BeginSwap { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7711,7 +7711,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for EndSwap { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7781,7 +7781,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for AddPerpLpShares { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7851,7 +7851,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for RemovePerpLpShares { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7915,7 +7915,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for RemovePerpLpSharesInExpiringMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -7979,7 +7979,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserName { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8043,7 +8043,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserCustomMarginRatio { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8107,7 +8107,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserMarginTradingEnabled { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8171,7 +8171,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserPoolId { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8235,7 +8235,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserDelegate { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8299,7 +8299,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserReduceOnly { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8363,7 +8363,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserAdvancedLp { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8439,7 +8439,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserProtectedMakerOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8515,7 +8515,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DeleteUser { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8603,7 +8603,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ForceDeleteUser { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8673,7 +8673,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DeleteSignedMsgUserOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8755,7 +8755,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ReclaimRent { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8831,7 +8831,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for EnableUserHighLeverageMode { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8919,7 +8919,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for FillPerpOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -8995,7 +8995,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for RevertFill { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9083,7 +9083,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for FillSpotOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9159,7 +9159,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for TriggerOrder { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9235,7 +9235,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ForceCancelOrders { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9311,7 +9311,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserIdle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9381,7 +9381,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LogUserBalances { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9457,7 +9457,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DisableUserHighLeverageMode { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9533,7 +9533,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserFuelBonus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9603,7 +9603,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserStatsReferrerStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9679,7 +9679,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserOpenOrdersCount { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9749,7 +9749,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for AdminDisableUpdatePerpBidAskTwap { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9825,7 +9825,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SettlePnl { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9901,7 +9901,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SettleMultiplePnls { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -9965,7 +9965,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SettleFundingPayment { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10029,7 +10029,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SettleLp { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10099,7 +10099,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SettleExpiredMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10187,7 +10187,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LiquidatePerp { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10275,7 +10275,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LiquidatePerpWithFill { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10363,7 +10363,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LiquidateSpot { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10493,7 +10493,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LiquidateSpotWithSwapBegin { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10623,7 +10623,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LiquidateSpotWithSwapEnd { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10711,7 +10711,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LiquidateBorrowForPerpPnl { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10799,7 +10799,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for LiquidatePerpPnlForDeposit { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10869,7 +10869,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SetUserStatusToBeingLiquidated { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -10957,7 +10957,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ResolvePerpPnlDeficit { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11069,7 +11069,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ResolvePerpBankruptcy { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11181,7 +11181,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ResolveSpotBankruptcy { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11269,7 +11269,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SettleRevenueToInsuranceFund { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11339,7 +11339,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateFundingRate { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11409,7 +11409,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePrelaunchOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11491,7 +11491,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpBidAskTwap { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11567,7 +11567,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketCumulativeInterest { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11631,7 +11631,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateAmms { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11701,7 +11701,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketExpiry { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11789,7 +11789,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserQuoteAssetInsuranceStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11877,7 +11877,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserGovTokenInsuranceStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -11941,7 +11941,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateUserGovTokenInsuranceStakeDevnet { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12041,7 +12041,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeInsuranceFundStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12153,7 +12153,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for AddInsuranceFundStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12235,7 +12235,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for RequestRemoveInsuranceFundStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12317,7 +12317,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for CancelRequestRemoveInsuranceFundStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12423,7 +12423,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for RemoveInsuranceFundStake { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12523,7 +12523,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for TransferProtocolIfShares { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12599,7 +12599,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePythPullOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12675,7 +12675,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PostPythPullOracleUpdateAtomic { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12745,7 +12745,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PostMultiPythPullOracleUpdatesAtomic { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12821,7 +12821,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PauseSpotMarketDepositWithdraw { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -12915,7 +12915,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for Initialize { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13033,7 +13033,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeSpotMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13127,7 +13127,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DeleteInitializedSpotMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13245,7 +13245,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeSerumFulfillmentConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13315,7 +13315,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSerumFulfillmentConfigStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13427,7 +13427,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeOpenbookV2FulfillmentConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13497,7 +13497,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for OpenbookV2FulfillmentConfigStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13609,7 +13609,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializePhoenixFulfillmentConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13679,7 +13679,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PhoenixFulfillmentConfigStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13749,7 +13749,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSerumVault { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13837,7 +13837,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializePerpMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13907,7 +13907,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializePredictionMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -13977,7 +13977,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DeleteInitializedPerpMarket { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14047,7 +14047,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for MoveAmmPrice { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14117,7 +14117,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for RecenterPerpMarketAmm { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14199,7 +14199,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketAmmSummaryStats { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14269,7 +14269,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketExpiry { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14345,7 +14345,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for SettleExpiredMarketPoolsToRevenuePool { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14445,7 +14445,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DepositIntoPerpMarketFeePool { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14533,7 +14533,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DepositIntoSpotMarketVault { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14621,7 +14621,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DepositIntoSpotMarketRevenuePool { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14697,7 +14697,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for RepegAmmCurve { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14773,7 +14773,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketAmmOracleTwap { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14849,7 +14849,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for ResetPerpMarketAmmOracleTwap { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14925,7 +14925,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateK { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -14995,7 +14995,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketMarginRatio { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15065,7 +15065,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketHighLeverageMarginRatio { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15135,7 +15135,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketFundingPeriod { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15205,7 +15205,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketMaxImbalances { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15275,7 +15275,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketLiquidationFee { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15345,7 +15345,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateInsuranceFundUnstakingPeriod { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15415,7 +15415,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketPoolId { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15485,7 +15485,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketLiquidationFee { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15555,7 +15555,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateWithdrawGuardThreshold { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15625,7 +15625,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketIfFactor { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15695,7 +15695,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketRevenueSettlePeriod { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15765,7 +15765,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15835,7 +15835,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketPausedOperations { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15905,7 +15905,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketAssetTier { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -15975,7 +15975,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketMarginWeights { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16045,7 +16045,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketBorrowRate { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16115,7 +16115,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketMaxTokenDeposits { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16185,7 +16185,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketMaxTokenBorrows { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16258,7 +16258,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketScaleInitialAssetWeightStart { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16340,7 +16340,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16410,7 +16410,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketStepSizeAndTickSize { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16480,7 +16480,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketMinOrderSize { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16550,7 +16550,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketOrdersEnabled { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16620,7 +16620,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketIfPausedOperations { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16690,7 +16690,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketName { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16760,7 +16760,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16830,7 +16830,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketPausedOperations { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16900,7 +16900,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketContractTier { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -16970,7 +16970,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketImfFactor { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17040,7 +17040,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketUnrealizedAssetWeight { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17110,7 +17110,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketConcentrationCoef { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17180,7 +17180,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketCurveUpdateIntensity { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17253,7 +17253,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketTargetBaseAssetAmountPerLp { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17323,7 +17323,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketPerLpBase { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17387,7 +17387,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateLpCooldownTime { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17451,7 +17451,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpFeeStructure { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17515,7 +17515,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotFeeStructure { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17579,7 +17579,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateInitialPctToLiquidate { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17643,7 +17643,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateLiquidationDuration { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17707,7 +17707,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateLiquidationMarginBufferRatio { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17771,7 +17771,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateOracleGuardRails { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17835,7 +17835,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateStateSettlementDuration { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17899,7 +17899,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateStateMaxNumberOfSubAccounts { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -17963,7 +17963,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateStateMaxInitializeUserFee { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18045,7 +18045,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18115,7 +18115,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketBaseSpread { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18185,7 +18185,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateAmmJitIntensity { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18255,7 +18255,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketMaxSpread { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18325,7 +18325,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketStepSizeAndTickSize { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18395,7 +18395,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketName { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18465,7 +18465,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketMinOrderSize { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18535,7 +18535,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketMaxSlippageRatio { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18605,7 +18605,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketMaxFillReserveFraction { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18675,7 +18675,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketMaxOpenInterest { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18745,7 +18745,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketNumberOfUsers { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18815,7 +18815,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketFeeAdjustment { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18885,7 +18885,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketFeeAdjustment { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -18955,7 +18955,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpMarketFuel { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19025,7 +19025,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotMarketFuel { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19101,7 +19101,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitUserFuel { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19165,7 +19165,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateAdmin { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19229,7 +19229,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateWhitelistMint { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19293,7 +19293,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateDiscountMint { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19357,7 +19357,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateExchangeStatus { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19421,7 +19421,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePerpAuctionDuration { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19485,7 +19485,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateSpotAuctionDuration { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19570,7 +19570,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeProtocolIfSharesTransferConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19640,7 +19640,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateProtocolIfSharesTransferConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19722,7 +19722,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializePrelaunchOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19798,7 +19798,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdatePrelaunchOracleParams { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19874,7 +19874,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for DeletePrelaunchOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -19956,7 +19956,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializePythPullOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -20038,7 +20038,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializePythLazerOracle { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -20108,7 +20108,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for PostPythLazerOracleUpdate { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -20190,7 +20190,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeHighLeverageModeConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -20260,7 +20260,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateHighLeverageModeConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -20342,7 +20342,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for InitializeProtectedMakerModeConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { @@ -20412,7 +20412,7 @@ pub mod accounts { #[automatically_derived] impl anchor_lang::AccountSerialize for UpdateProtectedMakerModeConfig { fn try_serialize(&self, writer: &mut W) -> anchor_lang::Result<()> { - if writer.write_all(&Self::DISCRIMINATOR).is_err() { + if writer.write_all(Self::DISCRIMINATOR).is_err() { return Err(anchor_lang::error::ErrorCode::AccountDidNotSerialize.into()); } if AnchorSerialize::serialize(self, writer).is_err() { diff --git a/crates/src/event_subscriber.rs b/crates/src/event_subscriber.rs index 12523b18..005c19c0 100644 --- a/crates/src/event_subscriber.rs +++ b/crates/src/event_subscriber.rs @@ -1037,7 +1037,7 @@ mod test { /// serialize event to string like Drift program log pub fn serialize_event(event: T) -> String { - let mut data_buf = T::discriminator().to_vec(); + let mut data_buf = T::DISCRIMINATOR.to_vec(); event.serialize(&mut data_buf).expect("serializes"); base64::engine::general_purpose::STANDARD.encode(data_buf) } diff --git a/crates/src/ffi.rs b/crates/src/ffi.rs index 6f9ded2f..8ef591a0 100644 --- a/crates/src/ffi.rs +++ b/crates/src/ffi.rs @@ -760,7 +760,7 @@ mod tests { account: Account { owner: crate::constants::PROGRAM_ID, data: [ - PerpMarket::DISCRIMINATOR.as_slice(), + PerpMarket::DISCRIMINATOR, bytemuck::bytes_of(&PerpMarket { market_index: btc_perp_index, ..Default::default() @@ -776,12 +776,9 @@ mod tests { key: Pubkey::new_unique(), account: Account { owner: crate::constants::PROGRAM_ID, - data: [ - SpotMarket::DISCRIMINATOR.as_slice(), - bytemuck::bytes_of(&spot_market), - ] - .concat() - .to_vec(), + data: [SpotMarket::DISCRIMINATOR, bytemuck::bytes_of(&spot_market)] + .concat() + .to_vec(), ..Default::default() }, }]; @@ -843,7 +840,7 @@ mod tests { account: Account { owner: crate::constants::PROGRAM_ID, data: [ - PerpMarket::DISCRIMINATOR.as_slice(), + PerpMarket::DISCRIMINATOR, bytemuck::bytes_of(&PerpMarket { market_index: btc_perp_index, status: MarketStatus::Active, @@ -865,7 +862,7 @@ mod tests { account: Account { owner: crate::constants::PROGRAM_ID, data: [ - PerpMarket::DISCRIMINATOR.as_slice(), + PerpMarket::DISCRIMINATOR, bytemuck::bytes_of(&PerpMarket { market_index: 0, status: MarketStatus::Active, @@ -889,7 +886,7 @@ mod tests { account: Account { owner: crate::constants::PROGRAM_ID, data: [ - SpotMarket::DISCRIMINATOR.as_slice(), + SpotMarket::DISCRIMINATOR, bytemuck::bytes_of(&sol_spot_market()), ] .concat() @@ -902,7 +899,7 @@ mod tests { account: Account { owner: crate::constants::PROGRAM_ID, data: [ - SpotMarket::DISCRIMINATOR.as_slice(), + SpotMarket::DISCRIMINATOR, bytemuck::bytes_of(&usdc_spot_market()), ] .concat() diff --git a/crates/src/jit_client.rs b/crates/src/jit_client.rs index cf73a188..b277f6d3 100644 --- a/crates/src/jit_client.rs +++ b/crates/src/jit_client.rs @@ -320,7 +320,7 @@ impl JitProxyClient { Cow::Borrowed(maker_account_data), false, ) - .place_swift_order(&signed_order_info, &taker_params.taker) + .place_swift_order(signed_order_info, &taker_params.taker) .add_ix(fill_ix) .build(); diff --git a/crates/src/lib.rs b/crates/src/lib.rs index 754291bf..3de1263a 100644 --- a/crates/src/lib.rs +++ b/crates/src/lib.rs @@ -1954,7 +1954,7 @@ mod tests { use std::str::FromStr; use serde_json::json; - use solana_account_decoder::{UiAccount, UiAccountData, UiAccountEncoding}; + use solana_account_decoder_client_types::{UiAccount, UiAccountData, UiAccountEncoding}; use solana_rpc_client::rpc_client::Mocks; use solana_rpc_client_api::{ request::RpcRequest, diff --git a/crates/src/marketmap.rs b/crates/src/marketmap.rs index 4d6acb79..b7fc4d3b 100644 --- a/crates/src/marketmap.rs +++ b/crates/src/marketmap.rs @@ -11,7 +11,7 @@ use dashmap::DashMap; use drift_pubsub_client::PubsubClient; use futures_util::{stream::FuturesUnordered, StreamExt}; use serde_json::json; -use solana_account_decoder::UiAccountEncoding; +use solana_account_decoder_client_types::UiAccountEncoding; use solana_rpc_client::nonblocking::rpc_client::RpcClient; use solana_rpc_client_api::{ config::{RpcAccountInfoConfig, RpcProgramAccountsConfig}, diff --git a/crates/src/polled_account_subscriber.rs b/crates/src/polled_account_subscriber.rs index 18d9b7f0..d3e7f218 100644 --- a/crates/src/polled_account_subscriber.rs +++ b/crates/src/polled_account_subscriber.rs @@ -119,7 +119,8 @@ impl PolledAccountSubscriber { mod tests { use anchor_lang::AccountSerialize; use serde_json::json; - use solana_account_decoder::{UiAccount, UiAccountEncoding}; + use solana_account_decoder::encode_ui_account; + use solana_account_decoder_client_types::UiAccountEncoding; use solana_rpc_client::rpc_client::Mocks; use solana_rpc_client_api::request::RpcRequest; @@ -155,7 +156,7 @@ mod tests { "context": { "slot": 12_345, }, - "value": UiAccount::encode(&sub_account, &account, UiAccountEncoding::Base64Zstd, None, None), + "value": encode_ui_account(&sub_account, &account, UiAccountEncoding::Base64Zstd, None, None), }); response_mocks.insert(RpcRequest::GetAccountInfo, account_response); diff --git a/crates/src/usermap.rs b/crates/src/usermap.rs index ccd9c58b..e1da8eba 100644 --- a/crates/src/usermap.rs +++ b/crates/src/usermap.rs @@ -9,7 +9,7 @@ use std::{ use anchor_lang::{AccountDeserialize, AnchorDeserialize}; use dashmap::DashMap; use serde_json::json; -use solana_account_decoder::UiAccountEncoding; +use solana_account_decoder_client_types::UiAccountEncoding; use solana_rpc_client::nonblocking::rpc_client::RpcClient; use solana_rpc_client_api::{ config::{RpcAccountInfoConfig, RpcProgramAccountsConfig}, diff --git a/crates/src/utils.rs b/crates/src/utils.rs index e23acb08..1e7578aa 100644 --- a/crates/src/utils.rs +++ b/crates/src/utils.rs @@ -131,7 +131,7 @@ pub(crate) fn zero_account_to_bytes Vec { let mut account_data = vec![0; 8 + std::mem::size_of::()]; - account_data[0..8].copy_from_slice(&T::DISCRIMINATOR); + account_data[0..8].copy_from_slice(T::DISCRIMINATOR); account_data[8..].copy_from_slice(bytemuck::bytes_of(&account)); account_data } @@ -323,7 +323,7 @@ pub mod test_utils { pub fn get_anchor_account_bytes(account: &mut T) -> BytesMut { let mut bytes = BytesMut::new(); - bytes.extend_from_slice(&T::discriminator()); + bytes.extend_from_slice(T::DISCRIMINATOR); let data = bytemuck::bytes_of_mut(account); bytes.extend_from_slice(data); bytes diff --git a/crates/src/websocket_account_subscriber.rs b/crates/src/websocket_account_subscriber.rs index 6c3754d0..fe510621 100644 --- a/crates/src/websocket_account_subscriber.rs +++ b/crates/src/websocket_account_subscriber.rs @@ -3,7 +3,7 @@ use std::{str::FromStr, sync::Arc}; use drift_pubsub_client::PubsubClient; use futures_util::StreamExt; use log::warn; -use solana_account_decoder::UiAccountEncoding; +use solana_account_decoder_client_types::UiAccountEncoding; use solana_rpc_client::nonblocking::rpc_client::RpcClient; use solana_rpc_client_api::config::RpcAccountInfoConfig; use solana_sdk::{commitment_config::CommitmentConfig, pubkey::Pubkey}; diff --git a/crates/src/websocket_program_account_subscriber.rs b/crates/src/websocket_program_account_subscriber.rs index 39d4d4b1..d9adf136 100644 --- a/crates/src/websocket_program_account_subscriber.rs +++ b/crates/src/websocket_program_account_subscriber.rs @@ -4,7 +4,7 @@ use anchor_lang::AnchorDeserialize; use drift_pubsub_client::PubsubClient; use futures_util::StreamExt; use log::warn; -use solana_account_decoder::UiAccountEncoding; +use solana_account_decoder_client_types::UiAccountEncoding; use solana_rpc_client_api::{ config::{RpcAccountInfoConfig, RpcProgramAccountsConfig}, filter::RpcFilterType, From 2037426e085373c1f8d21326083763b476995f2d Mon Sep 17 00:00:00 2001 From: jordy25519 Date: Tue, 11 Mar 2025 13:48:33 +0800 Subject: [PATCH 3/3] update drift-ffi-sys --- crates/drift-ffi-sys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/drift-ffi-sys b/crates/drift-ffi-sys index 3cc51116..b48198a0 160000 --- a/crates/drift-ffi-sys +++ b/crates/drift-ffi-sys @@ -1 +1 @@ -Subproject commit 3cc511166eedf014e4e70d4289f722dcc6fb258a +Subproject commit b48198a0a7f678a3e25003371b3203cd055c695a