From 8602e07ab5aec2dfe16f502f92bdc957c88627fd Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 19 Apr 2022 18:23:43 -0700 Subject: [PATCH 1/2] Add SPL Token 2022 to the list of known token ids (#23067) * Add SPL Token 2022 to the list of known token ids * Fix tests to accommodate #23729 * Test parsing of basic token-2022 instructsions Co-authored-by: Tyera Eulberg (cherry picked from commit 413806684f750b35eda6425c0daaa2a6595d0221) # Conflicts: # Cargo.lock # programs/bpf/Cargo.lock --- Cargo.lock | 548 +++++++------ account-decoder/Cargo.toml | 1 + account-decoder/src/parse_token.rs | 10 +- programs/bpf/Cargo.lock | 574 ++++++++------ transaction-status/Cargo.toml | 1 + .../src/parse_associated_token.rs | 48 +- transaction-status/src/parse_token.rs | 737 +++++++++++------- 7 files changed, 1127 insertions(+), 792 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7154cd2824a80c..d8254f0a473212 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -107,12 +107,6 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - [[package]] name = "arrayvec" version = "0.7.2" @@ -354,21 +348,6 @@ dependencies = [ "wyz", ] -[[package]] -name = "blake3" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b64485778c4f16a6a5a9d335e80d449ac6c70cdd6a06d2af18a6f6f775a125b3" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "cc", - "cfg-if 0.1.10", - "constant_time_eq", - "crypto-mac", - "digest 0.9.0", -] - [[package]] name = "blake3" version = "1.3.1" @@ -376,7 +355,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a08e53fc5a564bb15bfe6fae56bd71522205f1f91893f9c0116edad6496c183f" dependencies = [ "arrayref", - "arrayvec 0.7.2", + "arrayvec", "cc", "cfg-if 1.0.0", "constant_time_eq", @@ -474,12 +453,6 @@ dependencies = [ "syn 1.0.91", ] -[[package]] -name = "bs58" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "476e9cd489f9e121e02ffa6014a8ef220ecb15c05ed23fc34cca13925dc283fb" - [[package]] name = "bs58" version = "0.4.0" @@ -1044,19 +1017,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "curve25519-dalek" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216" -dependencies = [ - "byteorder", - "digest 0.8.1", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - [[package]] name = "curve25519-dalek" version = "3.2.1" @@ -1247,7 +1207,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" dependencies = [ - "curve25519-dalek 3.2.1", + "curve25519-dalek", "ed25519", "rand 0.7.3", "serde", @@ -1333,19 +1293,6 @@ dependencies = [ "syn 1.0.91", ] -[[package]] -name = "env_logger" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - [[package]] name = "env_logger" version = "0.9.0" @@ -2081,15 +2028,6 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9" -[[package]] -name = "itertools" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.10.3" @@ -2324,25 +2262,6 @@ dependencies = [ "libz-sys", ] -[[package]] -name = "libsecp256k1" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd1137239ab33b41aa9637a88a28249e5e70c40a42ccc92db7f12cc356c1fcd7" -dependencies = [ - "arrayref", - "base64 0.12.3", - "digest 0.9.0", - "hmac-drbg", - "libsecp256k1-core", - "libsecp256k1-gen-ecmult", - "libsecp256k1-gen-genmult", - "rand 0.7.3", - "serde", - "sha2 0.9.9", - "typenum", -] - [[package]] name = "libsecp256k1" version = "0.6.0" @@ -2465,15 +2384,6 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" -[[package]] -name = "memmap2" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b70ca2a6103ac8b665dc150b142ef0e4e89df640c9e6cf295d189c3caebe5a" -dependencies = [ - "libc", -] - [[package]] name = "memmap2" version = "0.5.3" @@ -3114,7 +3024,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c6ce811d0b2e103743eec01db1c50612221f173084ce2f7941053e94b6bb474" dependencies = [ "difflib", - "itertools 0.10.3", + "itertools", "predicates-core", ] @@ -3257,7 +3167,7 @@ dependencies = [ "cfg-if 1.0.0", "cmake", "heck", - "itertools 0.10.3", + "itertools", "lazy_static", "log", "multimap", @@ -3276,7 +3186,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df35198f0777b75e9ff669737c6da5136b59dba33cf5a010a6d1cc4d56defc6f" dependencies = [ "anyhow", - "itertools 0.10.3", + "itertools", "proc-macro2 1.0.32", "quote 1.0.10", "syn 1.0.91", @@ -3569,7 +3479,7 @@ dependencies = [ "solana-bpf-loader-program", "solana-logger 1.10.10", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana_rbpf", ] @@ -4284,16 +4194,17 @@ dependencies = [ "Inflector", "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "bv", "lazy_static", "serde", "serde_derive", "serde_json", "solana-config-program", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "spl-token", + "spl-token-2022", "thiserror", "zstd", ] @@ -4308,7 +4219,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-version", ] @@ -4331,7 +4242,7 @@ dependencies = [ "solana-measure", "solana-net-utils", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -4354,7 +4265,7 @@ dependencies = [ "solana-frozen-abi-macro 1.10.10", "solana-program 1.10.10", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", ] @@ -4366,7 +4277,7 @@ dependencies = [ "bincode", "solana-address-lookup-table-program", "solana-program-test", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4386,7 +4297,7 @@ dependencies = [ "solana-perf", "solana-poh", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-version", ] @@ -4401,7 +4312,7 @@ dependencies = [ "solana-banks-server", "solana-program 1.10.10", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "tarpc", "thiserror", "tokio", @@ -4413,7 +4324,7 @@ name = "solana-banks-interface" version = "1.10.10" dependencies = [ "serde", - "solana-sdk", + "solana-sdk 1.11.0", "tarpc", ] @@ -4426,7 +4337,7 @@ dependencies = [ "futures 0.3.21", "solana-banks-interface", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-send-transaction-service", "tarpc", "tokio", @@ -4470,7 +4381,7 @@ dependencies = [ "solana-net-utils", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-test-validator", "solana-version", @@ -4489,9 +4400,15 @@ dependencies = [ "rustc_version 0.4.0", "serde", "serde_derive", +<<<<<<< HEAD "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-sdk", +======= + "solana-frozen-abi 1.11.0", + "solana-frozen-abi-macro 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -4500,15 +4417,15 @@ version = "1.10.10" dependencies = [ "bincode", "byteorder", - "libsecp256k1 0.6.0", + "libsecp256k1", "log", "rand 0.7.3", "solana-measure", "solana-metrics", "solana-program-runtime", "solana-runtime", - "solana-sdk", - "solana-zk-token-sdk", + "solana-sdk 1.11.0", + "solana-zk-token-sdk 1.11.0", "solana_rbpf", "thiserror", ] @@ -4519,13 +4436,13 @@ version = "1.10.10" dependencies = [ "fs_extra", "log", - "memmap2 0.5.3", + "memmap2", "modular-bitfield", "rand 0.7.3", "rayon", "solana-logger 1.10.10", "solana-measure", - "solana-sdk", + "solana-sdk 1.11.0", "tempfile", ] @@ -4539,7 +4456,7 @@ dependencies = [ "regex", "serial_test", "solana-download-utils", - "solana-sdk", + "solana-sdk 1.11.0", "tar", ] @@ -4560,7 +4477,7 @@ dependencies = [ "rpassword", "solana-perf", "solana-remote-wallet", - "solana-sdk", + "solana-sdk 1.11.0", "tempfile", "thiserror", "tiny-bip39", @@ -4569,11 +4486,31 @@ dependencies = [ ] [[package]] +<<<<<<< HEAD +======= +name = "solana-clap-v3-utils" +version = "1.11.0" +dependencies = [ + "chrono", + "clap 3.1.8", + "rpassword", + "solana-perf", + "solana-remote-wallet", + "solana-sdk 1.11.0", + "tempfile", + "thiserror", + "tiny-bip39", + "uriparse", + "url 2.2.2", +] + +[[package]] +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) name = "solana-cli" version = "1.10.10" dependencies = [ "bincode", - "bs58 0.4.0", + "bs58", "clap 2.33.3", "console", "const_format", @@ -4600,7 +4537,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-program-runtime", "solana-remote-wallet", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -4624,7 +4561,7 @@ dependencies = [ "serde_derive", "serde_yaml", "solana-clap-utils", - "solana-sdk", + "solana-sdk 1.11.0", "url 2.2.2", ] @@ -4647,7 +4584,7 @@ dependencies = [ "solana-clap-utils", "solana-cli-config", "solana-client", - "solana-sdk", + "solana-sdk 1.11.0", "solana-transaction-status", "solana-vote-program", "spl-memo", @@ -4662,14 +4599,14 @@ dependencies = [ "async-trait", "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "bytes", "clap 2.33.3", "crossbeam-channel", "futures 0.3.21", "futures-util", "indicatif", - "itertools 0.10.3", + "itertools", "jsonrpc-core", "jsonrpc-http-server", "lazy_static", @@ -4693,7 +4630,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-net-utils", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-transaction-status", "solana-version", @@ -4723,7 +4660,7 @@ dependencies = [ "solana-rayon-threadlimit", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -4737,7 +4674,7 @@ name = "solana-compute-budget-program" version = "1.10.10" dependencies = [ "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4750,7 +4687,7 @@ dependencies = [ "serde_derive", "solana-logger 1.10.10", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4760,14 +4697,14 @@ dependencies = [ "ahash", "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "chrono", "crossbeam-channel", "dashmap", "etcd-client", "fs_extra", "histogram", - "itertools 0.10.3", + "itertools", "log", "lru", "matches", @@ -4802,7 +4739,7 @@ dependencies = [ "solana-replica-lib", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-send-transaction-service", "solana-stake-program", "solana-streamer", @@ -4835,7 +4772,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-net-utils", "solana-perf", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-version", ] @@ -4849,7 +4786,7 @@ dependencies = [ "log", "reqwest", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4860,7 +4797,7 @@ dependencies = [ "ed25519-dalek", "rand 0.7.3", "solana-program-test", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4882,7 +4819,7 @@ dependencies = [ "solana-metrics", "solana-perf", "solana-rayon-threadlimit", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4900,7 +4837,7 @@ dependencies = [ "solana-cli-config", "solana-logger 1.10.10", "solana-metrics", - "solana-sdk", + "solana-sdk 1.11.0", "solana-version", "spl-memo", "thiserror", @@ -4909,21 +4846,23 @@ dependencies = [ [[package]] name = "solana-frozen-abi" -version = "1.8.2" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ab31b4bda342736987ec16526a6cac4fa817f86ced9634f020ce1dcfac0867f" +checksum = "55e139feda2afd510dea2027584cc35a9ee9ebac0bfef1ab4d23647bf5c091a6" dependencies = [ - "bs58 0.3.1", + "bs58", "bv", "generic-array 0.14.5", + "im", + "lazy_static", "log", - "memmap2 0.1.0", - "rustc_version 0.2.3", + "memmap2", + "rustc_version 0.4.0", "serde", + "serde_bytes", "serde_derive", - "sha2 0.9.9", - "solana-frozen-abi-macro 1.8.2", - "solana-logger 1.8.2", + "sha2 0.10.2", + "solana-frozen-abi-macro 1.10.9", "thiserror", ] @@ -4931,13 +4870,13 @@ dependencies = [ name = "solana-frozen-abi" version = "1.10.10" dependencies = [ - "bs58 0.4.0", + "bs58", "bv", "generic-array 0.14.5", "im", "lazy_static", "log", - "memmap2 0.5.3", + "memmap2", "rustc_version 0.4.0", "serde", "serde_bytes", @@ -4950,13 +4889,13 @@ dependencies = [ [[package]] name = "solana-frozen-abi-macro" -version = "1.8.2" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d532b5214f70604ac067250a004478389c0ebea8923ae58a49fa7dadd0e69f61" +checksum = "798b851026ff2366b318f7818a64846dd1ebc7e613f7893fba07a61cd55e6a48" dependencies = [ "proc-macro2 1.0.32", "quote 1.0.10", - "rustc_version 0.2.3", + "rustc_version 0.4.0", "syn 1.0.91", ] @@ -4985,7 +4924,7 @@ dependencies = [ "solana-ledger", "solana-logger 1.10.10", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-stake-program", "solana-version", "solana-vote-program", @@ -4998,7 +4937,7 @@ version = "1.10.10" dependencies = [ "solana-download-utils", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -5006,7 +4945,7 @@ name = "solana-geyser-plugin-interface" version = "1.10.10" dependencies = [ "log", - "solana-sdk", + "solana-sdk 1.11.0", "solana-transaction-status", "thiserror", ] @@ -5015,7 +4954,7 @@ dependencies = [ name = "solana-geyser-plugin-manager" version = "1.10.10" dependencies = [ - "bs58 0.4.0", + "bs58", "crossbeam-channel", "json5", "libloading", @@ -5026,7 +4965,7 @@ dependencies = [ "solana-metrics", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-transaction-status", "thiserror", ] @@ -5041,7 +4980,7 @@ dependencies = [ "crossbeam-channel", "flate2", "indexmap", - "itertools 0.10.3", + "itertools", "log", "lru", "matches", @@ -5069,7 +5008,7 @@ dependencies = [ "solana-perf", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-version", "solana-vote-program", @@ -5099,8 +5038,13 @@ dependencies = [ "solana-clap-utils", "solana-client", "solana-config-program", +<<<<<<< HEAD "solana-logger 1.10.10", "solana-sdk", +======= + "solana-logger 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "solana-version", "tar", "tempfile", @@ -5113,14 +5057,14 @@ dependencies = [ name = "solana-keygen" version = "1.10.10" dependencies = [ - "bs58 0.4.0", + "bs58", "clap 2.33.3", "dirs-next", "num_cpus", "solana-clap-utils", "solana-cli-config", "solana-remote-wallet", - "solana-sdk", + "solana-sdk 1.11.0", "solana-version", "tiny-bip39", ] @@ -5138,7 +5082,7 @@ dependencies = [ "crossbeam-channel", "fs_extra", "futures 0.3.21", - "itertools 0.10.3", + "itertools", "lazy_static", "libc", "log", @@ -5169,7 +5113,7 @@ dependencies = [ "solana-program-runtime", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-storage-bigtable", "solana-storage-proto", "solana-transaction-status", @@ -5186,14 +5130,14 @@ name = "solana-ledger-tool" version = "1.10.10" dependencies = [ "assert_cmd", - "bs58 0.4.0", + "bs58", "bytecount", "clap 2.33.3", "crossbeam-channel", "csv", "dashmap", "histogram", - "itertools 0.10.3", + "itertools", "log", "regex", "serde", @@ -5207,7 +5151,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-stake-program", "solana-storage-bigtable", "solana-transaction-status", @@ -5225,7 +5169,7 @@ dependencies = [ "crossbeam-channel", "fs_extra", "gag", - "itertools 0.10.3", + "itertools", "log", "rand 0.7.3", "rayon", @@ -5239,7 +5183,7 @@ dependencies = [ "solana-ledger", "solana-logger 1.10.10", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-stake-program", "solana-streamer", "solana-vote-program", @@ -5260,11 +5204,11 @@ dependencies = [ [[package]] name = "solana-logger" -version = "1.8.2" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "356fc4bc5395d26e7d0f3c7e6272b1a28dc591a81f1ee6e577c1d8859e946422" +checksum = "f63d0e97c25935253d93bf9c4740a990264185d1cf59a638a87066278ed817f0" dependencies = [ - "env_logger 0.8.4", + "env_logger", "lazy_static", "log", ] @@ -5273,7 +5217,7 @@ dependencies = [ name = "solana-logger" version = "1.10.10" dependencies = [ - "env_logger 0.9.0", + "env_logger", "lazy_static", "log", ] @@ -5283,7 +5227,7 @@ name = "solana-measure" version = "1.10.10" dependencies = [ "log", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -5295,7 +5239,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-version", ] @@ -5314,14 +5258,14 @@ name = "solana-metrics" version = "1.10.10" dependencies = [ "crossbeam-channel", - "env_logger 0.9.0", + "env_logger", "gethostname", "lazy_static", "log", "rand 0.7.3", "reqwest", "serial_test", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -5348,8 +5292,13 @@ dependencies = [ "serde", "serde_derive", "socket2", +<<<<<<< HEAD "solana-logger 1.10.10", "solana-sdk", +======= + "solana-logger 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "solana-version", "tokio", "url 2.2.2", @@ -5372,7 +5321,7 @@ dependencies = [ "bincode", "bv", "caps", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "dlopen", "dlopen_derive", "fnv", @@ -5387,7 +5336,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-rayon-threadlimit", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", ] @@ -5408,7 +5357,7 @@ dependencies = [ "solana-metrics", "solana-perf", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-sys-tuner", "thiserror", ] @@ -5425,45 +5374,50 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-perf", - "solana-sdk", + "solana-sdk 1.11.0", "solana-version", ] [[package]] name = "solana-program" -version = "1.8.2" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6ebce89024394bc7d9289978f14220ab3bd7dac568ec4e081c2d9eb35d92c8f" +checksum = "80e41ae6eb080e3ab14e9eda4474b676861af63fb0871db8b9149b0c69aada4d" dependencies = [ "base64 0.13.0", "bincode", - "blake3 0.3.8", + "bitflags", + "blake3", "borsh", "borsh-derive", - "bs58 0.3.1", + "bs58", "bv", "bytemuck", - "curve25519-dalek 2.1.3", - "hex", - "itertools 0.9.0", + "console_error_panic_hook", + "console_log", + "curve25519-dalek", + "getrandom 0.1.16", + "itertools", + "js-sys", "lazy_static", - "libsecp256k1 0.5.0", + "libsecp256k1", "log", "num-derive", "num-traits", + "parking_lot 0.12.0", "rand 0.7.3", - "rustc_version 0.2.3", + "rustc_version 0.4.0", "rustversion", "serde", "serde_bytes", "serde_derive", - "sha2 0.9.9", - "sha3 0.9.1", - "solana-frozen-abi 1.8.2", - "solana-frozen-abi-macro 1.8.2", - "solana-logger 1.8.2", - "solana-sdk-macro 1.8.2", + "sha2 0.10.2", + "sha3 0.10.1", + "solana-frozen-abi 1.10.9", + "solana-frozen-abi-macro 1.10.9", + "solana-sdk-macro 1.10.9", "thiserror", + "wasm-bindgen", ] [[package]] @@ -5475,20 +5429,20 @@ dependencies = [ "base64 0.13.0", "bincode", "bitflags", - "blake3 1.3.1", + "blake3", "borsh", "borsh-derive", - "bs58 0.4.0", + "bs58", "bv", "bytemuck", "console_error_panic_hook", "console_log", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "getrandom 0.1.16", - "itertools 0.10.3", + "itertools", "js-sys", "lazy_static", - "libsecp256k1 0.6.0", + "libsecp256k1", "log", "num-derive", "num-traits", @@ -5518,7 +5472,7 @@ dependencies = [ "base64 0.13.0", "bincode", "enum-iterator", - "itertools 0.10.3", + "itertools", "libc", "libloading", "log", @@ -5530,7 +5484,7 @@ dependencies = [ "solana-frozen-abi-macro 1.10.10", "solana-logger 1.10.10", "solana-measure", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", ] @@ -5550,7 +5504,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-program-runtime", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "thiserror", "tokio", @@ -5576,8 +5530,13 @@ dependencies = [ "num-traits", "parking_lot 0.12.0", "qstring", +<<<<<<< HEAD "semver 1.0.6", "solana-sdk", +======= + "semver 1.0.7", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "thiserror", "uriparse", ] @@ -5634,10 +5593,10 @@ version = "1.10.10" dependencies = [ "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "crossbeam-channel", "dashmap", - "itertools 0.10.3", + "itertools", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -5666,7 +5625,7 @@ dependencies = [ "solana-poh", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-send-transaction-service", "solana-stake-program", "solana-storage-bigtable", @@ -5687,7 +5646,7 @@ name = "solana-rpc-test" version = "1.10.10" dependencies = [ "bincode", - "bs58 0.4.0", + "bs58", "crossbeam-channel", "futures-util", "log", @@ -5698,7 +5657,7 @@ dependencies = [ "solana-client", "solana-logger 1.10.10", "solana-rpc", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -5712,7 +5671,7 @@ dependencies = [ "arrayref", "assert_matches", "bincode", - "blake3 1.3.1", + "blake3", "bv", "bytemuck", "byteorder", @@ -5725,11 +5684,11 @@ dependencies = [ "fnv", "im", "index_list", - "itertools 0.10.3", + "itertools", "lazy_static", - "libsecp256k1 0.6.0", + "libsecp256k1", "log", - "memmap2 0.5.3", + "memmap2", "num-derive", "num-traits", "num_cpus", @@ -5752,11 +5711,11 @@ dependencies = [ "solana-metrics", "solana-program-runtime", "solana-rayon-threadlimit", - "solana-sdk", + "solana-sdk 1.11.0", "solana-stake-program", "solana-vote-program", "solana-zk-token-proof-program", - "solana-zk-token-sdk", + "solana-zk-token-sdk 1.11.0", "symlink", "tar", "tempfile", @@ -5766,7 +5725,62 @@ dependencies = [ [[package]] name = "solana-sdk" +<<<<<<< HEAD version = "1.10.10" +======= +version = "1.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef63e9db435bcc173d37073d769871379bb90c0fc60b20616f87edc0b06d890" +dependencies = [ + "assert_matches", + "base64 0.13.0", + "bincode", + "bitflags", + "borsh", + "bs58", + "bytemuck", + "byteorder", + "chrono", + "derivation-path", + "digest 0.10.3", + "ed25519-dalek", + "ed25519-dalek-bip32", + "generic-array 0.14.5", + "hmac 0.12.1", + "itertools", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memmap2", + "num-derive", + "num-traits", + "pbkdf2 0.10.1", + "qstring", + "rand 0.7.3", + "rand_chacha 0.2.2", + "rustc_version 0.4.0", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "sha2 0.10.2", + "sha3 0.10.1", + "solana-frozen-abi 1.10.9", + "solana-frozen-abi-macro 1.10.9", + "solana-logger 1.10.9", + "solana-program 1.10.9", + "solana-sdk-macro 1.10.9", + "thiserror", + "uriparse", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk" +version = "1.11.0" +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) dependencies = [ "anyhow", "assert_matches", @@ -5774,23 +5788,23 @@ dependencies = [ "bincode", "bitflags", "borsh", - "bs58 0.4.0", + "bs58", "bytemuck", "byteorder", "chrono", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "derivation-path", "digest 0.10.3", "ed25519-dalek", "ed25519-dalek-bip32", "generic-array 0.14.5", "hmac 0.12.1", - "itertools 0.10.3", + "itertools", "js-sys", "lazy_static", - "libsecp256k1 0.6.0", + "libsecp256k1", "log", - "memmap2 0.5.3", + "memmap2", "num-derive", "num-traits", "pbkdf2 0.10.1", @@ -5818,11 +5832,11 @@ dependencies = [ [[package]] name = "solana-sdk-macro" -version = "1.8.2" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49de94601f4af95d8834817ac6c6f3cbedac8fd582a5c5b940e78fe07803b78b" +checksum = "5f4d6c73b2dea5705afd28266015a00e7a9c3496a98a45104733fa81e8dabbb5" dependencies = [ - "bs58 0.3.1", + "bs58", "proc-macro2 1.0.32", "quote 1.0.10", "rustversion", @@ -5833,7 +5847,7 @@ dependencies = [ name = "solana-sdk-macro" version = "1.10.10" dependencies = [ - "bs58 0.4.0", + "bs58", "proc-macro2 1.0.32", "quote 1.0.10", "rustversion", @@ -5851,7 +5865,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -5864,7 +5878,7 @@ dependencies = [ "solana-client", "solana-remote-wallet", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-stake-program", ] @@ -5886,7 +5900,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "thiserror", ] @@ -5909,7 +5923,7 @@ dependencies = [ "serde_derive", "smpl_jwt", "solana-metrics", - "solana-sdk", + "solana-sdk 1.11.0", "solana-storage-proto", "solana-transaction-status", "thiserror", @@ -5922,12 +5936,12 @@ name = "solana-storage-proto" version = "1.10.10" dependencies = [ "bincode", - "bs58 0.4.0", + "bs58", "enum-iterator", "prost", "serde", "solana-account-decoder", - "solana-sdk", + "solana-sdk 1.11.0", "solana-transaction-status", "tonic-build", ] @@ -5950,7 +5964,7 @@ dependencies = [ "crossbeam-channel", "futures-util", "histogram", - "itertools 0.10.3", + "itertools", "libc", "log", "nix", @@ -5963,7 +5977,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-perf", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", "tokio", ] @@ -6001,7 +6015,7 @@ dependencies = [ "solana-program-test", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "tokio", ] @@ -6026,7 +6040,7 @@ dependencies = [ "solana-client", "solana-logger 1.10.10", "solana-remote-wallet", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -6057,7 +6071,7 @@ dependencies = [ "solana-measure", "solana-net-utils", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-transaction-status", "solana-version", @@ -6070,7 +6084,7 @@ dependencies = [ "Inflector", "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "lazy_static", "log", "serde", @@ -6080,11 +6094,12 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "spl-associated-token-account", "spl-memo", "spl-token", + "spl-token-2022", "thiserror", ] @@ -6137,7 +6152,7 @@ dependencies = [ "solana-replica-lib", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-send-transaction-service", "solana-storage-bigtable", "solana-streamer", @@ -6156,9 +6171,15 @@ dependencies = [ "rustc_version 0.4.0", "serde", "serde_derive", +<<<<<<< HEAD "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-sdk", +======= + "solana-frozen-abi 1.11.0", + "solana-frozen-abi-macro 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -6177,7 +6198,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", ] @@ -6195,7 +6216,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-notifier", - "solana-sdk", + "solana-sdk 1.11.0", "solana-version", ] @@ -6208,8 +6229,38 @@ dependencies = [ "num-derive", "num-traits", "solana-program-runtime", - "solana-sdk", - "solana-zk-token-sdk", + "solana-sdk 1.11.0", + "solana-zk-token-sdk 1.11.0", +] + +[[package]] +name = "solana-zk-token-sdk" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f79e20a90b9e8c10baa62cbb396fd9af6a1e3d7b0c1c3ce84189d08d0f273ea8" +dependencies = [ + "aes-gcm-siv", + "arrayref", + "base64 0.13.0", + "bincode", + "bytemuck", + "byteorder", + "cipher 0.3.0", + "curve25519-dalek", + "getrandom 0.1.16", + "lazy_static", + "merlin", + "num-derive", + "num-traits", + "rand 0.7.3", + "serde", + "serde_json", + "sha3 0.9.1", + "solana-program 1.10.9", + "solana-sdk 1.10.9", + "subtle", + "thiserror", + "zeroize", ] [[package]] @@ -6223,7 +6274,7 @@ dependencies = [ "bytemuck", "byteorder", "cipher 0.4.3", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "getrandom 0.1.16", "lazy_static", "merlin", @@ -6233,8 +6284,13 @@ dependencies = [ "serde", "serde_json", "sha3 0.9.1", +<<<<<<< HEAD "solana-program 1.10.10", "solana-sdk", +======= + "solana-program 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "subtle", "thiserror", "zeroize", @@ -6287,7 +6343,7 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "393e2240d521c3dd770806bff25c2c00d761ac962be106e14e22dd912007f428" dependencies = [ - "solana-program 1.8.2", + "solana-program 1.10.9", "spl-token", ] @@ -6297,7 +6353,7 @@ version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd0dc6f70db6bacea7ff25870b016a65ba1d1b6013536f08e4fd79a8f9005325" dependencies = [ - "solana-program 1.8.2", + "solana-program 1.10.9", ] [[package]] @@ -6310,7 +6366,23 @@ dependencies = [ "num-derive", "num-traits", "num_enum", - "solana-program 1.8.2", + "solana-program 1.10.9", + "thiserror", +] + +[[package]] +name = "spl-token-2022" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94151293267493245acd17c27702bd340619c8b91bbf6bda1322a2adf42d3faf" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program 1.10.9", + "solana-zk-token-sdk 0.4.0", "thiserror", ] diff --git a/account-decoder/Cargo.toml b/account-decoder/Cargo.toml index 63e5d56e2d9dc0..a36d7bee9f7c06 100644 --- a/account-decoder/Cargo.toml +++ b/account-decoder/Cargo.toml @@ -23,6 +23,7 @@ solana-config-program = { path = "../programs/config", version = "=1.10.10" } solana-sdk = { path = "../sdk", version = "=1.10.10" } solana-vote-program = { path = "../programs/vote", version = "=1.10.10" } spl-token = { version = "=3.2.0", features = ["no-entrypoint"] } +spl-token-2022 = { version = "=0.1.0", features = ["no-entrypoint"] } thiserror = "1.0" zstd = "0.11.1" diff --git a/account-decoder/src/parse_token.rs b/account-decoder/src/parse_token.rs index 638b80a142f471..9368baa7ee141d 100644 --- a/account-decoder/src/parse_token.rs +++ b/account-decoder/src/parse_token.rs @@ -19,14 +19,20 @@ fn spl_token_id() -> Pubkey { Pubkey::new_from_array(spl_token::id().to_bytes()) } +// A helper function to convert spl_token_2022::id() as spl_sdk::pubkey::Pubkey to +// solana_sdk::pubkey::Pubkey +fn spl_token_2022_id() -> Pubkey { + Pubkey::new_from_array(spl_token_2022::id().to_bytes()) +} + // Returns all known SPL Token program ids pub fn spl_token_ids() -> Vec { - vec![spl_token_id()] + vec![spl_token_id(), spl_token_2022_id()] } // Check if the provided program id as a known SPL Token program id pub fn is_known_spl_token_id(program_id: &Pubkey) -> bool { - *program_id == spl_token_id() + *program_id == spl_token_id() || *program_id == spl_token_2022_id() } // A helper function to convert spl_token::native_mint::id() as spl_sdk::pubkey::Pubkey to diff --git a/programs/bpf/Cargo.lock b/programs/bpf/Cargo.lock index d72553aa033d75..df70e4d18e7ad0 100644 --- a/programs/bpf/Cargo.lock +++ b/programs/bpf/Cargo.lock @@ -24,7 +24,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] @@ -107,12 +107,6 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" -[[package]] -name = "arrayvec" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8" - [[package]] name = "arrayvec" version = "0.7.1" @@ -313,21 +307,6 @@ dependencies = [ "typenum", ] -[[package]] -name = "blake3" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b64485778c4f16a6a5a9d335e80d449ac6c70cdd6a06d2af18a6f6f775a125b3" -dependencies = [ - "arrayref", - "arrayvec 0.5.1", - "cc", - "cfg-if 0.1.10", - "constant_time_eq", - "crypto-mac", - "digest 0.9.0", -] - [[package]] name = "blake3" version = "1.3.1" @@ -335,7 +314,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a08e53fc5a564bb15bfe6fae56bd71522205f1f91893f9c0116edad6496c183f" dependencies = [ "arrayref", - "arrayvec 0.7.1", + "arrayvec", "cc", "cfg-if 1.0.0", "constant_time_eq", @@ -360,8 +339,13 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ +<<<<<<< HEAD "block-padding 0.2.1", "generic-array 0.14.5", +======= + "block-padding", + "generic-array", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -370,7 +354,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] @@ -406,7 +390,7 @@ checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775" dependencies = [ "borsh-derive-internal", "borsh-schema-derive-internal", - "proc-macro-crate", + "proc-macro-crate 0.1.5", "proc-macro2 1.0.36", "syn 1.0.91", ] @@ -433,12 +417,6 @@ dependencies = [ "syn 1.0.91", ] -[[package]] -name = "bs58" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "476e9cd489f9e121e02ffa6014a8ef220ecb15c05ed23fc34cca13925dc283fb" - [[package]] name = "bs58" version = "0.4.0" @@ -605,7 +583,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] @@ -827,7 +805,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" dependencies = [ - "generic-array 0.14.5", + "generic-array", "typenum", ] @@ -837,7 +815,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array 0.14.5", + "generic-array", "subtle", ] @@ -850,19 +828,6 @@ dependencies = [ "cipher 0.3.0", ] -[[package]] -name = "curve25519-dalek" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d85653f070353a16313d0046f173f70d1aadd5b42600a14de626f0dfb3473a5" -dependencies = [ - "byteorder 1.4.3", - "digest 0.8.1", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - [[package]] name = "curve25519-dalek" version = "3.2.1" @@ -904,6 +869,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" [[package]] +<<<<<<< HEAD name = "derivative" version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -928,6 +894,8 @@ dependencies = [ ] [[package]] +======= +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) name = "dialoguer" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -938,22 +906,13 @@ dependencies = [ "zeroize", ] -[[package]] -name = "digest" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" -dependencies = [ - "generic-array 0.12.3", -] - [[package]] name = "digest" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] @@ -1041,7 +1000,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" dependencies = [ - "curve25519-dalek 3.2.1", + "curve25519-dalek", "ed25519", "rand 0.7.3", "serde", @@ -1136,19 +1095,6 @@ dependencies = [ "syn 1.0.91", ] -[[package]] -name = "env_logger" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - [[package]] name = "env_logger" version = "0.9.0" @@ -1419,15 +1365,6 @@ dependencies = [ "byteorder 1.4.3", ] -[[package]] -name = "generic-array" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" -dependencies = [ - "typenum", -] - [[package]] name = "generic-array" version = "0.14.5" @@ -1573,12 +1510,6 @@ dependencies = [ "libc", ] -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - [[package]] name = "histogram" version = "0.6.9" @@ -1611,7 +1542,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ "digest 0.9.0", - "generic-array 0.14.5", + "generic-array", "hmac 0.8.1", ] @@ -1802,7 +1733,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1f03d4ab4d5dc9ec2d219f86c15d2a15fc08239d1cd3b2d6a19717c0a2f443" dependencies = [ - "generic-array 0.14.5", + "generic-array", ] [[package]] @@ -1826,15 +1757,6 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135" -[[package]] -name = "itertools" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.10.3" @@ -2063,25 +1985,6 @@ dependencies = [ "libz-sys", ] -[[package]] -name = "libsecp256k1" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd1137239ab33b41aa9637a88a28249e5e70c40a42ccc92db7f12cc356c1fcd7" -dependencies = [ - "arrayref", - "base64 0.12.3", - "digest 0.9.0", - "hmac-drbg", - "libsecp256k1-core", - "libsecp256k1-gen-ecmult", - "libsecp256k1-gen-genmult", - "rand 0.7.3", - "serde", - "sha2 0.9.9", - "typenum", -] - [[package]] name = "libsecp256k1" version = "0.6.0" @@ -2204,15 +2107,6 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" -[[package]] -name = "memmap2" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b70ca2a6103ac8b665dc150b142ef0e4e89df640c9e6cf295d189c3caebe5a" -dependencies = [ - "libc", -] - [[package]] name = "memmap2" version = "0.5.3" @@ -2441,21 +2335,20 @@ dependencies = [ [[package]] name = "num_enum" -version = "0.5.1" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "226b45a5c2ac4dd696ed30fa6b94b057ad909c7b7fc2e0d0808192bced894066" +checksum = "cf5395665662ef45796a4ff5486c5d41d29e0c09640af4c5f17fd94ee2c119c9" dependencies = [ - "derivative", "num_enum_derive", ] [[package]] name = "num_enum_derive" -version = "0.5.1" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c0fd9eba1d5db0994a239e09c1be402d35622277e35468ba891aa5e3188ce7e" +checksum = "3b0498641e53dd6ac1a4f22547548caa6864cc4933784319cd1775271c5a46ce" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 1.1.3", "proc-macro2 1.0.36", "quote 1.0.6", "syn 1.0.91", @@ -2830,6 +2723,16 @@ dependencies = [ "toml", ] +[[package]] +name = "proc-macro-crate" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a" +dependencies = [ + "thiserror", + "toml", +] + [[package]] name = "proc-macro-error" version = "1.0.4" @@ -3312,21 +3215,13 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver 0.9.0", -] - [[package]] name = "rustc_version" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ +<<<<<<< HEAD "semver 1.0.6", ] @@ -3342,6 +3237,9 @@ dependencies = [ "libc", "linux-raw-sys", "winapi 0.3.9", +======= + "semver", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -3478,6 +3376,7 @@ dependencies = [ [[package]] name = "semver" +<<<<<<< HEAD version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" @@ -3488,15 +3387,12 @@ dependencies = [ [[package]] name = "semver" version = "1.0.6" +======= +version = "1.0.7" +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4a3381e03edd24287172047536f20cabde766e2cd3e65e6b00fb3af51c4f38d" -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - [[package]] name = "serde" version = "1.0.136" @@ -3774,16 +3670,17 @@ dependencies = [ "Inflector", "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "bv", "lazy_static", "serde", "serde_derive", "serde_json", "solana-config-program", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "spl-token", + "spl-token-2022", "thiserror", "zstd", ] @@ -3797,13 +3694,13 @@ dependencies = [ "log", "num-derive", "num-traits", - "rustc_version 0.4.0", + "rustc_version", "serde", "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-program 1.10.10", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", ] @@ -3814,8 +3711,13 @@ dependencies = [ "borsh", "futures 0.3.21", "solana-banks-interface", +<<<<<<< HEAD "solana-program 1.10.10", "solana-sdk", +======= + "solana-program 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "tarpc", "thiserror", "tokio", @@ -3827,7 +3729,7 @@ name = "solana-banks-interface" version = "1.10.10" dependencies = [ "serde", - "solana-sdk", + "solana-sdk 1.11.0", "tarpc", ] @@ -3840,7 +3742,7 @@ dependencies = [ "futures 0.3.21", "solana-banks-interface", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-send-transaction-service", "tarpc", "tokio", @@ -3871,13 +3773,13 @@ version = "1.10.10" dependencies = [ "bincode", "byteorder 1.4.3", - "libsecp256k1 0.6.0", + "libsecp256k1", "log", "solana-measure", "solana-metrics", "solana-program-runtime", - "solana-sdk", - "solana-zk-token-sdk", + "solana-sdk 1.11.0", + "solana-zk-token-sdk 1.11.0", "solana_rbpf", "thiserror", ] @@ -3889,7 +3791,7 @@ dependencies = [ "bincode", "byteorder 1.4.3", "elf", - "itertools 0.10.3", + "itertools", "log", "miow", "net2", @@ -3903,7 +3805,7 @@ dependencies = [ "solana-measure", "solana-program-runtime", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-transaction-status", "solana_rbpf", "walkdir", @@ -4078,7 +3980,7 @@ dependencies = [ "solana-program 1.10.10", "solana-program-runtime", "solana-program-test", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4163,7 +4065,7 @@ dependencies = [ "solana-program 1.10.10", "solana-program-runtime", "solana-program-test", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4177,8 +4079,13 @@ dependencies = [ name = "solana-bpf-rust-sha" version = "1.10.10" dependencies = [ +<<<<<<< HEAD "blake3 1.3.1", "solana-program 1.10.10", +======= + "blake3", + "solana-program 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -4227,7 +4134,7 @@ dependencies = [ "solana-program 1.10.10", "solana-program-runtime", "solana-program-test", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4248,8 +4155,13 @@ dependencies = [ name = "solana-bpf-rust-zk_token_elgamal" version = "1.10.10" dependencies = [ +<<<<<<< HEAD "solana-program 1.10.10", "solana-zk-token-sdk", +======= + "solana-program 1.11.0", + "solana-zk-token-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -4257,11 +4169,11 @@ name = "solana-bucket-map" version = "1.10.10" dependencies = [ "log", - "memmap2 0.5.3", + "memmap2", "modular-bitfield", "rand 0.7.3", "solana-measure", - "solana-sdk", + "solana-sdk 1.11.0", "tempfile", ] @@ -4274,7 +4186,7 @@ dependencies = [ "rpassword", "solana-perf", "solana-remote-wallet", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", "tiny-bip39", "uriparse", @@ -4291,8 +4203,13 @@ dependencies = [ "serde_derive", "serde_yaml", "solana-clap-utils", +<<<<<<< HEAD "solana-sdk", "url 2.2.2", +======= + "solana-sdk 1.11.0", + "url", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -4306,14 +4223,19 @@ dependencies = [ "console", "humantime", "indicatif", +<<<<<<< HEAD "semver 1.0.6", +======= + "pretty-hex", + "semver", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "serde", "serde_json", "solana-account-decoder", "solana-clap-utils", "solana-cli-config", "solana-client", - "solana-sdk", + "solana-sdk 1.11.0", "solana-transaction-status", "solana-vote-program", "spl-memo", @@ -4327,14 +4249,20 @@ dependencies = [ "async-trait", "base64 0.13.0", "bincode", +<<<<<<< HEAD "bs58 0.4.0", "bytes", "clap", +======= + "bs58", + "bytes 1.1.0", + "clap 2.33.3", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "crossbeam-channel", "futures 0.3.21", "futures-util", "indicatif", - "itertools 0.10.3", + "itertools", "jsonrpc-core", "lazy_static", "log", @@ -4346,7 +4274,11 @@ dependencies = [ "rayon", "reqwest", "rustls", +<<<<<<< HEAD "semver 1.0.6", +======= + "semver", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "serde", "serde_derive", "serde_json", @@ -4356,7 +4288,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-net-utils", - "solana-sdk", + "solana-sdk 1.11.0", "solana-streamer", "solana-transaction-status", "solana-version", @@ -4374,7 +4306,7 @@ name = "solana-compute-budget-program" version = "1.10.10" dependencies = [ "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4386,7 +4318,7 @@ dependencies = [ "serde", "serde_derive", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4413,6 +4345,7 @@ dependencies = [ "rustc_version 0.4.0", "serde", "serde_derive", +<<<<<<< HEAD "solana-address-lookup-table-program", "solana-bloom", "solana-client", @@ -4493,6 +4426,13 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-sdk", +======= + "solana-clap-utils", + "solana-cli-config", + "solana-logger 1.11.0", + "solana-metrics", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "solana-version", "spl-memo", "thiserror", @@ -4501,21 +4441,23 @@ dependencies = [ [[package]] name = "solana-frozen-abi" -version = "1.7.6" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0b98d31e0662fedf3a1ee30919c655713874d578e19e65affe46109b1b927f9" +checksum = "55e139feda2afd510dea2027584cc35a9ee9ebac0bfef1ab4d23647bf5c091a6" dependencies = [ - "bs58 0.3.1", + "bs58", "bv", - "generic-array 0.14.5", + "generic-array", + "im", + "lazy_static", "log", - "memmap2 0.1.0", - "rustc_version 0.2.3", + "memmap2", + "rustc_version", "serde", + "serde_bytes", "serde_derive", - "sha2 0.9.9", - "solana-frozen-abi-macro 1.7.6", - "solana-logger 1.7.6", + "sha2 0.10.2", + "solana-frozen-abi-macro 1.10.9", "thiserror", ] @@ -4523,14 +4465,14 @@ dependencies = [ name = "solana-frozen-abi" version = "1.10.10" dependencies = [ - "bs58 0.4.0", + "bs58", "bv", - "generic-array 0.14.5", + "generic-array", "im", "lazy_static", "log", - "memmap2 0.5.3", - "rustc_version 0.4.0", + "memmap2", + "rustc_version", "serde", "serde_bytes", "serde_derive", @@ -4541,13 +4483,13 @@ dependencies = [ [[package]] name = "solana-frozen-abi-macro" -version = "1.7.6" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceac6e8ad1a784c92ff5f3d6ad68a8d664d389b08055b674c38b2b9abb69e6d4" +checksum = "798b851026ff2366b318f7818a64846dd1ebc7e613f7893fba07a61cd55e6a48" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.6", - "rustc_version 0.2.3", + "rustc_version", "syn 1.0.91", ] @@ -4557,7 +4499,7 @@ version = "1.10.10" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.6", - "rustc_version 0.4.0", + "rustc_version", "syn 1.0.91", ] @@ -4697,11 +4639,11 @@ dependencies = [ [[package]] name = "solana-logger" -version = "1.7.6" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec7c514fe57f8c5042fa88c19f5711c67f264db723d9d79379fcb78dd1f09bbf" +checksum = "f63d0e97c25935253d93bf9c4740a990264185d1cf59a638a87066278ed817f0" dependencies = [ - "env_logger 0.8.4", + "env_logger", "lazy_static", "log", ] @@ -4710,7 +4652,7 @@ dependencies = [ name = "solana-logger" version = "1.10.10" dependencies = [ - "env_logger 0.9.0", + "env_logger", "lazy_static", "log", ] @@ -4720,7 +4662,7 @@ name = "solana-measure" version = "1.10.10" dependencies = [ "log", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4741,7 +4683,7 @@ dependencies = [ "lazy_static", "log", "reqwest", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -4757,8 +4699,13 @@ dependencies = [ "serde", "serde_derive", "socket2", +<<<<<<< HEAD "solana-logger 1.10.10", "solana-sdk", +======= + "solana-logger 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "solana-version", "tokio", "url 2.2.2", @@ -4772,7 +4719,7 @@ dependencies = [ "bincode", "bv", "caps", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "dlopen", "dlopen_derive", "fnv", @@ -4785,7 +4732,7 @@ dependencies = [ "serde", "solana-metrics", "solana-rayon-threadlimit", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", ] @@ -4808,37 +4755,44 @@ dependencies = [ [[package]] name = "solana-program" -version = "1.7.6" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bfe6a5dfc5372c0a946018ecdd8115e38af78cea8275bac48cf3d105c6b1fb3" +checksum = "80e41ae6eb080e3ab14e9eda4474b676861af63fb0871db8b9149b0c69aada4d" dependencies = [ + "base64 0.13.0", "bincode", - "blake3 0.3.8", + "bitflags", + "blake3", "borsh", "borsh-derive", - "bs58 0.3.1", + "bs58", "bv", - "curve25519-dalek 2.1.0", - "hex", - "itertools 0.9.0", + "bytemuck", + "console_error_panic_hook", + "console_log", + "curve25519-dalek", + "getrandom 0.1.14", + "itertools", + "js-sys", "lazy_static", - "libsecp256k1 0.5.0", + "libsecp256k1", "log", "num-derive", "num-traits", + "parking_lot", "rand 0.7.3", - "rustc_version 0.2.3", + "rustc_version", "rustversion", "serde", "serde_bytes", "serde_derive", - "sha2 0.9.9", - "sha3 0.9.1", - "solana-frozen-abi 1.7.6", - "solana-frozen-abi-macro 1.7.6", - "solana-logger 1.7.6", - "solana-sdk-macro 1.7.6", + "sha2 0.10.2", + "sha3 0.10.1", + "solana-frozen-abi 1.10.9", + "solana-frozen-abi-macro 1.10.9", + "solana-sdk-macro 1.10.9", "thiserror", + "wasm-bindgen", ] [[package]] @@ -4848,26 +4802,26 @@ dependencies = [ "base64 0.13.0", "bincode", "bitflags", - "blake3 1.3.1", + "blake3", "borsh", "borsh-derive", - "bs58 0.4.0", + "bs58", "bv", "bytemuck", "console_error_panic_hook", "console_log", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "getrandom 0.1.14", - "itertools 0.10.3", + "itertools", "js-sys", "lazy_static", - "libsecp256k1 0.6.0", + "libsecp256k1", "log", "num-derive", "num-traits", "parking_lot 0.12.0", "rand 0.7.3", - "rustc_version 0.4.0", + "rustc_version", "rustversion", "serde", "serde_bytes", @@ -4888,18 +4842,18 @@ dependencies = [ "base64 0.13.0", "bincode", "enum-iterator", - "itertools 0.10.3", + "itertools", "libc", "libloading", "log", "num-derive", "num-traits", - "rustc_version 0.4.0", + "rustc_version", "serde", "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-measure", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", ] @@ -4919,7 +4873,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-program-runtime", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "thiserror", "tokio", @@ -4944,8 +4898,13 @@ dependencies = [ "num-traits", "parking_lot 0.12.0", "qstring", +<<<<<<< HEAD "semver 1.0.6", "solana-sdk", +======= + "semver", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "thiserror", "uriparse", ] @@ -5021,7 +4980,7 @@ version = "1.10.10" dependencies = [ "arrayref", "bincode", - "blake3 1.3.1", + "blake3", "bv", "bytemuck", "byteorder 1.4.3", @@ -5033,10 +4992,10 @@ dependencies = [ "fnv", "im", "index_list", - "itertools 0.10.3", + "itertools", "lazy_static", "log", - "memmap2 0.5.3", + "memmap2", "num-derive", "num-traits", "num_cpus", @@ -5044,7 +5003,7 @@ dependencies = [ "rand 0.7.3", "rayon", "regex", - "rustc_version 0.4.0", + "rustc_version", "serde", "serde_derive", "solana-address-lookup-table-program", @@ -5057,11 +5016,11 @@ dependencies = [ "solana-metrics", "solana-program-runtime", "solana-rayon-threadlimit", - "solana-sdk", + "solana-sdk 1.11.0", "solana-stake-program", "solana-vote-program", "solana-zk-token-proof-program", - "solana-zk-token-sdk", + "solana-zk-token-sdk 1.11.0", "symlink", "tar", "tempfile", @@ -5071,14 +5030,19 @@ dependencies = [ [[package]] name = "solana-sdk" +<<<<<<< HEAD version = "1.10.10" +======= +version = "1.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef63e9db435bcc173d37073d769871379bb90c0fc60b20616f87edc0b06d890" dependencies = [ "assert_matches", "base64 0.13.0", "bincode", "bitflags", "borsh", - "bs58 0.4.0", + "bs58", "bytemuck", "byteorder 1.4.3", "chrono", @@ -5086,21 +5050,71 @@ dependencies = [ "digest 0.10.3", "ed25519-dalek", "ed25519-dalek-bip32", - "generic-array 0.14.5", + "generic-array", "hmac 0.12.1", - "itertools 0.10.3", + "itertools", "js-sys", "lazy_static", - "libsecp256k1 0.6.0", + "libsecp256k1", "log", - "memmap2 0.5.3", + "memmap2", "num-derive", "num-traits", "pbkdf2 0.10.1", "qstring", "rand 0.7.3", "rand_chacha 0.2.2", - "rustc_version 0.4.0", + "rustc_version", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "sha2 0.10.2", + "sha3 0.10.1", + "solana-frozen-abi 1.10.9", + "solana-frozen-abi-macro 1.10.9", + "solana-logger 1.10.9", + "solana-program 1.10.9", + "solana-sdk-macro 1.10.9", + "thiserror", + "uriparse", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk" +version = "1.11.0" +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) +dependencies = [ + "assert_matches", + "base64 0.13.0", + "bincode", + "bitflags", + "borsh", + "bs58", + "bytemuck", + "byteorder 1.4.3", + "chrono", + "derivation-path", + "digest 0.10.3", + "ed25519-dalek", + "ed25519-dalek-bip32", + "generic-array", + "hmac 0.12.1", + "itertools", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memmap2", + "num-derive", + "num-traits", + "pbkdf2 0.10.1", + "qstring", + "rand 0.7.3", + "rand_chacha 0.2.2", + "rustc_version", "rustversion", "serde", "serde_bytes", @@ -5120,11 +5134,11 @@ dependencies = [ [[package]] name = "solana-sdk-macro" -version = "1.7.6" +version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84710ce45a21cccd9f2b09d8e9aad529080bb2540f27b1253874b6e732b465b9" +checksum = "5f4d6c73b2dea5705afd28266015a00e7a9c3496a98a45104733fa81e8dabbb5" dependencies = [ - "bs58 0.3.1", + "bs58", "proc-macro2 1.0.36", "quote 1.0.6", "rustversion", @@ -5135,7 +5149,7 @@ dependencies = [ name = "solana-sdk-macro" version = "1.10.10" dependencies = [ - "bs58 0.4.0", + "bs58", "proc-macro2 1.0.36", "quote 1.0.6", "rustversion", @@ -5152,7 +5166,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", ] [[package]] @@ -5163,7 +5177,7 @@ dependencies = [ "log", "num-derive", "num-traits", - "rustc_version 0.4.0", + "rustc_version", "serde", "serde_derive", "solana-config-program", @@ -5171,7 +5185,7 @@ dependencies = [ "solana-frozen-abi-macro 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "thiserror", ] @@ -5223,7 +5237,7 @@ dependencies = [ "crossbeam-channel", "futures-util", "histogram", - "itertools 0.10.3", + "itertools", "libc", "log", "nix", @@ -5235,7 +5249,7 @@ dependencies = [ "rustls", "solana-metrics", "solana-perf", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", "tokio", ] @@ -5285,7 +5299,7 @@ dependencies = [ "Inflector", "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "lazy_static", "log", "serde", @@ -5295,11 +5309,12 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "solana-vote-program", "spl-associated-token-account", "spl-memo", "spl-token", + "spl-token-2022", "thiserror", ] @@ -5360,12 +5375,18 @@ name = "solana-version" version = "1.10.10" dependencies = [ "log", - "rustc_version 0.4.0", + "rustc_version", "serde", "serde_derive", +<<<<<<< HEAD "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-sdk", +======= + "solana-frozen-abi 1.11.0", + "solana-frozen-abi-macro 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -5376,14 +5397,14 @@ dependencies = [ "log", "num-derive", "num-traits", - "rustc_version 0.4.0", + "rustc_version", "serde", "serde_derive", "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk", + "solana-sdk 1.11.0", "thiserror", ] @@ -5396,8 +5417,38 @@ dependencies = [ "num-derive", "num-traits", "solana-program-runtime", - "solana-sdk", - "solana-zk-token-sdk", + "solana-sdk 1.11.0", + "solana-zk-token-sdk 1.11.0", +] + +[[package]] +name = "solana-zk-token-sdk" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f79e20a90b9e8c10baa62cbb396fd9af6a1e3d7b0c1c3ce84189d08d0f273ea8" +dependencies = [ + "aes-gcm-siv", + "arrayref", + "base64 0.13.0", + "bincode", + "bytemuck", + "byteorder 1.4.3", + "cipher 0.3.0", + "curve25519-dalek", + "getrandom 0.1.14", + "lazy_static", + "merlin", + "num-derive", + "num-traits", + "rand 0.7.3", + "serde", + "serde_json", + "sha3 0.9.1", + "solana-program 1.10.9", + "solana-sdk 1.10.9", + "subtle", + "thiserror", + "zeroize", ] [[package]] @@ -5411,7 +5462,7 @@ dependencies = [ "bytemuck", "byteorder 1.4.3", "cipher 0.4.3", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "getrandom 0.1.14", "lazy_static", "merlin", @@ -5421,8 +5472,13 @@ dependencies = [ "serde", "serde_json", "sha3 0.9.1", +<<<<<<< HEAD "solana-program 1.10.10", "solana-sdk", +======= + "solana-program 1.11.0", + "solana-sdk 1.11.0", +>>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "subtle", "thiserror", "zeroize", @@ -5475,7 +5531,7 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "393e2240d521c3dd770806bff25c2c00d761ac962be106e14e22dd912007f428" dependencies = [ - "solana-program 1.7.6", + "solana-program 1.10.9", "spl-token", ] @@ -5485,7 +5541,7 @@ version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd0dc6f70db6bacea7ff25870b016a65ba1d1b6013536f08e4fd79a8f9005325" dependencies = [ - "solana-program 1.7.6", + "solana-program 1.10.9", ] [[package]] @@ -5498,7 +5554,23 @@ dependencies = [ "num-derive", "num-traits", "num_enum", - "solana-program 1.7.6", + "solana-program 1.10.9", + "thiserror", +] + +[[package]] +name = "spl-token-2022" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94151293267493245acd17c27702bd340619c8b91bbf6bda1322a2adf42d3faf" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program 1.10.9", + "solana-zk-token-sdk 0.4.0", "thiserror", ] @@ -6299,7 +6371,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" dependencies = [ - "generic-array 0.14.5", + "generic-array", "subtle", ] diff --git a/transaction-status/Cargo.toml b/transaction-status/Cargo.toml index c4d9adfb5589f3..9dcaef08fa72a1 100644 --- a/transaction-status/Cargo.toml +++ b/transaction-status/Cargo.toml @@ -28,6 +28,7 @@ solana-vote-program = { path = "../programs/vote", version = "=1.10.10" } spl-associated-token-account = { version = "=1.0.3", features = ["no-entrypoint"] } spl-memo = { version = "=3.0.1", features = ["no-entrypoint"] } spl-token = { version = "=3.2.0", features = ["no-entrypoint"] } +spl-token-2022 = { version = "=0.1.0", features = ["no-entrypoint"] } thiserror = "1.0" [package.metadata.docs.rs] diff --git a/transaction-status/src/parse_associated_token.rs b/transaction-status/src/parse_associated_token.rs index e4ff83ef7b0614..15457232d2307e 100644 --- a/transaction-status/src/parse_associated_token.rs +++ b/transaction-status/src/parse_associated_token.rs @@ -51,8 +51,9 @@ fn check_num_associated_token_accounts( mod test { use { super::*, + solana_account_decoder::parse_token::pubkey_from_spl_token, spl_associated_token_account::{ - create_associated_token_account, + create_associated_token_account, get_associated_token_address, solana_program::{ instruction::CompiledInstruction as SplAssociatedTokenCompiledInstruction, message::Message, pubkey::Pubkey as SplAssociatedTokenPubkey, @@ -74,33 +75,46 @@ mod test { } } + fn convert_account_keys(message: &Message) -> Vec { + message + .account_keys + .iter() + .map(pubkey_from_spl_token) + .collect() + } + #[test] fn test_parse_associated_token() { - let mut keys: Vec = vec![]; - for _ in 0..7 { - keys.push(solana_sdk::pubkey::new_rand()); - } + let funder = Pubkey::new_unique(); + let wallet_address = Pubkey::new_unique(); + let mint = Pubkey::new_unique(); + let associated_account_address = + get_associated_token_address(&convert_pubkey(wallet_address), &convert_pubkey(mint)); + let rent_sysvar = solana_sdk::sysvar::rent::id(); let create_ix = create_associated_token_account( - &convert_pubkey(keys[0]), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), + &convert_pubkey(funder), + &convert_pubkey(wallet_address), + &convert_pubkey(mint), ); let message = Message::new(&[create_ix], None); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); - let account_keys = AccountKeys::new(&keys, None); assert_eq!( - parse_associated_token(&compiled_instruction, &account_keys).unwrap(), + parse_associated_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "create".to_string(), info: json!({ - "source": keys[0].to_string(), - "account": keys[1].to_string(), - "wallet": keys[2].to_string(), - "mint": keys[3].to_string(), - "systemProgram": keys[4].to_string(), - "tokenProgram": keys[5].to_string(), - "rentSysvar": keys[6].to_string(), + "source": funder.to_string(), + "account": associated_account_address.to_string(), + "wallet": wallet_address.to_string(), + "mint": mint.to_string(), + "systemProgram": solana_sdk::system_program::id().to_string(), + "tokenProgram": spl_token::id().to_string(), + "rentSysvar": rent_sysvar.to_string(), }) } ); diff --git a/transaction-status/src/parse_token.rs b/transaction-status/src/parse_token.rs index 3e84fd9dee00bf..5891b87418ed64 100644 --- a/transaction-status/src/parse_token.rs +++ b/transaction-status/src/parse_token.rs @@ -483,463 +483,580 @@ mod test { } } - #[test] - #[allow(clippy::same_item_push)] - fn test_parse_token() { - let mut keys: Vec = vec![]; - for _ in 0..10 { - keys.push(solana_sdk::pubkey::new_rand()); - } + fn convert_account_keys(message: &Message) -> Vec { + message + .account_keys + .iter() + .map(pubkey_from_spl_token) + .collect() + } + + // TODO: remove this hacky approach when update SPL token dependencies + fn make_coerced_message( + mut instruction: SplTokenInstruction, + program_id: &SplTokenPubkey, + ) -> Message { + instruction.program_id = *program_id; + Message::new(&[instruction], None) + } + + fn test_parse_token(program_id: &SplTokenPubkey) { + let mint_pubkey = Pubkey::new_unique(); + let mint_authority = Pubkey::new_unique(); + let freeze_authority = Pubkey::new_unique(); + let rent_sysvar = solana_sdk::sysvar::rent::id(); // Test InitializeMint variations let initialize_mint_ix = initialize_mint( - &spl_token::id(), - &convert_pubkey(keys[0]), - &convert_pubkey(keys[2]), - Some(&convert_pubkey(keys[3])), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(mint_pubkey), + &convert_pubkey(mint_authority), + Some(&convert_pubkey(freeze_authority)), 2, ) .unwrap(); - let message = Message::new(&[initialize_mint_ix], None); + let message = make_coerced_message(initialize_mint_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "initializeMint".to_string(), info: json!({ - "mint": keys[0].to_string(), + "mint": mint_pubkey.to_string(), "decimals": 2, - "mintAuthority": keys[2].to_string(), - "freezeAuthority": keys[3].to_string(), - "rentSysvar": keys[1].to_string(), + "mintAuthority": mint_authority.to_string(), + "freezeAuthority": freeze_authority.to_string(), + "rentSysvar": rent_sysvar.to_string(), }) } ); let initialize_mint_ix = initialize_mint( - &spl_token::id(), - &convert_pubkey(keys[0]), - &convert_pubkey(keys[2]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(mint_pubkey), + &convert_pubkey(mint_authority), None, 2, ) .unwrap(); - let message = Message::new(&[initialize_mint_ix], None); + let message = make_coerced_message(initialize_mint_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "initializeMint".to_string(), info: json!({ - "mint": keys[0].to_string(), - "decimals": 2, - "mintAuthority": keys[2].to_string(), - "rentSysvar": keys[1].to_string(), + "mint": mint_pubkey.to_string(), + "decimals": 2, + "mintAuthority": mint_authority.to_string(), + "rentSysvar": rent_sysvar.to_string(), }) } ); // Test InitializeAccount + let account_pubkey = Pubkey::new_unique(); + let owner = Pubkey::new_unique(); let initialize_account_ix = initialize_account( - &spl_token::id(), - &convert_pubkey(keys[0]), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(owner), ) .unwrap(); - let message = Message::new(&[initialize_account_ix], None); + let message = make_coerced_message(initialize_account_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "initializeAccount".to_string(), info: json!({ - "account": keys[0].to_string(), - "mint": keys[1].to_string(), - "owner": keys[2].to_string(), - "rentSysvar": keys[3].to_string(), + "account": account_pubkey.to_string(), + "mint": mint_pubkey.to_string(), + "owner": owner.to_string(), + "rentSysvar": rent_sysvar.to_string(), }) } ); // Test InitializeMultisig + let multisig_pubkey = Pubkey::new_unique(); + let multisig_signer0 = Pubkey::new_unique(); + let multisig_signer1 = Pubkey::new_unique(); + let multisig_signer2 = Pubkey::new_unique(); let initialize_multisig_ix = initialize_multisig( - &spl_token::id(), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(multisig_pubkey), &[ - &convert_pubkey(keys[2]), - &convert_pubkey(keys[3]), - &convert_pubkey(keys[4]), + &convert_pubkey(multisig_signer0), + &convert_pubkey(multisig_signer1), + &convert_pubkey(multisig_signer2), ], 2, ) .unwrap(); - let message = Message::new(&[initialize_multisig_ix], None); + let message = make_coerced_message(initialize_multisig_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "initializeMultisig".to_string(), info: json!({ - "multisig": keys[0].to_string(), - "m": 2, - "rentSysvar": keys[1].to_string(), - "signers": keys[2..5].iter().map(|key| key.to_string()).collect::>(), + "multisig": multisig_pubkey.to_string(), + "m": 2, + "rentSysvar": rent_sysvar.to_string(), + "signers": vec![ + multisig_signer0.to_string(), + multisig_signer1.to_string(), + multisig_signer2.to_string(), + ], }) } ); // Test Transfer, incl multisig + let recipient = Pubkey::new_unique(); let transfer_ix = transfer( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(owner), &[], 42, ) .unwrap(); - let message = Message::new(&[transfer_ix], None); + let message = make_coerced_message(transfer_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "transfer".to_string(), info: json!({ - "source": keys[1].to_string(), - "destination": keys[2].to_string(), - "authority": keys[0].to_string(), - "amount": "42", + "source": account_pubkey.to_string(), + "destination": recipient.to_string(), + "authority": owner.to_string(), + "amount": "42", }) } ); let transfer_ix = transfer( - &spl_token::id(), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[3]), - &convert_pubkey(keys[4]), - &[&convert_pubkey(keys[0]), &convert_pubkey(keys[1])], + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(multisig_pubkey), + &[ + &convert_pubkey(multisig_signer0), + &convert_pubkey(multisig_signer1), + ], 42, ) .unwrap(); let message = Message::new(&[transfer_ix], None); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "transfer".to_string(), info: json!({ - "source": keys[2].to_string(), - "destination": keys[3].to_string(), - "multisigAuthority": keys[4].to_string(), - "signers": keys[0..2].iter().map(|key| key.to_string()).collect::>(), - "amount": "42", + "source": account_pubkey.to_string(), + "destination": recipient.to_string(), + "multisigAuthority": multisig_pubkey.to_string(), + "signers": vec![ + multisig_signer0.to_string(), + multisig_signer1.to_string(), + ], + "amount": "42", }) } ); // Test Approve, incl multisig let approve_ix = approve( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(owner), &[], 42, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "approve".to_string(), info: json!({ - "source": keys[1].to_string(), - "delegate": keys[2].to_string(), - "owner": keys[0].to_string(), - "amount": "42", + "source": account_pubkey.to_string(), + "delegate": recipient.to_string(), + "owner": owner.to_string(), + "amount": "42", }) } ); let approve_ix = approve( - &spl_token::id(), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[3]), - &convert_pubkey(keys[4]), - &[&convert_pubkey(keys[0]), &convert_pubkey(keys[1])], + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(multisig_pubkey), + &[ + &convert_pubkey(multisig_signer0), + &convert_pubkey(multisig_signer1), + ], 42, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "approve".to_string(), info: json!({ - "source": keys[2].to_string(), - "delegate": keys[3].to_string(), - "multisigOwner": keys[4].to_string(), - "signers": keys[0..2].iter().map(|key| key.to_string()).collect::>(), - "amount": "42", + "source": account_pubkey.to_string(), + "delegate": recipient.to_string(), + "multisigOwner": multisig_pubkey.to_string(), + "signers": vec![ + multisig_signer0.to_string(), + multisig_signer1.to_string(), + ], + "amount": "42", }) } ); // Test Revoke let revoke_ix = revoke( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(owner), &[], ) .unwrap(); - let message = Message::new(&[revoke_ix], None); + let message = make_coerced_message(revoke_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "revoke".to_string(), info: json!({ - "source": keys[1].to_string(), - "owner": keys[0].to_string(), + "source": account_pubkey.to_string(), + "owner": owner.to_string(), }) } ); // Test SetOwner + let new_freeze_authority = Pubkey::new_unique(); let set_authority_ix = set_authority( - &spl_token::id(), - &convert_pubkey(keys[0]), - Some(&convert_pubkey(keys[2])), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(mint_pubkey), + Some(&convert_pubkey(new_freeze_authority)), AuthorityType::FreezeAccount, - &convert_pubkey(keys[1]), + &convert_pubkey(freeze_authority), &[], ) .unwrap(); - let message = Message::new(&[set_authority_ix], None); + let message = make_coerced_message(set_authority_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "setAuthority".to_string(), info: json!({ - "mint": keys[1].to_string(), - "newAuthority": keys[2].to_string(), - "authority": keys[0].to_string(), - "authorityType": "freezeAccount".to_string(), + "mint": mint_pubkey.to_string(), + "newAuthority": new_freeze_authority.to_string(), + "authority": freeze_authority.to_string(), + "authorityType": "freezeAccount".to_string(), }) } ); let set_authority_ix = set_authority( - &spl_token::id(), - &convert_pubkey(keys[1]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), None, AuthorityType::CloseAccount, - &convert_pubkey(keys[0]), + &convert_pubkey(owner), &[], ) .unwrap(); - let message = Message::new(&[set_authority_ix], None); + let message = make_coerced_message(set_authority_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); let new_authority: Option = None; assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "setAuthority".to_string(), info: json!({ - "account": keys[1].to_string(), - "newAuthority": new_authority, - "authority": keys[0].to_string(), - "authorityType": "closeAccount".to_string(), + "account": account_pubkey.to_string(), + "newAuthority": new_authority, + "authority": owner.to_string(), + "authorityType": "closeAccount".to_string(), }) } ); // Test MintTo let mint_to_ix = mint_to( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(mint_pubkey), + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_authority), &[], 42, ) .unwrap(); - let message = Message::new(&[mint_to_ix], None); + let message = make_coerced_message(mint_to_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "mintTo".to_string(), info: json!({ - "mint": keys[1].to_string(), - "account": keys[2].to_string(), - "mintAuthority": keys[0].to_string(), - "amount": "42", + "mint": mint_pubkey.to_string(), + "account": account_pubkey.to_string(), + "mintAuthority": mint_authority.to_string(), + "amount": "42", }) } ); // Test Burn let burn_ix = burn( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(owner), &[], 42, ) .unwrap(); - let message = Message::new(&[burn_ix], None); + let message = make_coerced_message(burn_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "burn".to_string(), info: json!({ - "account": keys[1].to_string(), - "mint": keys[2].to_string(), - "authority": keys[0].to_string(), - "amount": "42", + "account": account_pubkey.to_string(), + "mint": mint_pubkey.to_string(), + "authority": owner.to_string(), + "amount": "42", }) } ); // Test CloseAccount let close_account_ix = close_account( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(owner), &[], ) .unwrap(); - let message = Message::new(&[close_account_ix], None); + let message = make_coerced_message(close_account_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "closeAccount".to_string(), info: json!({ - "account": keys[1].to_string(), - "destination": keys[2].to_string(), - "owner": keys[0].to_string(), + "account": account_pubkey.to_string(), + "destination": recipient.to_string(), + "owner": owner.to_string(), }) } ); // Test FreezeAccount let freeze_account_ix = freeze_account( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(freeze_authority), &[], ) .unwrap(); - let message = Message::new(&[freeze_account_ix], None); + let message = make_coerced_message(freeze_account_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "freezeAccount".to_string(), info: json!({ - "account": keys[1].to_string(), - "mint": keys[2].to_string(), - "freezeAuthority": keys[0].to_string(), + "account": account_pubkey.to_string(), + "mint": mint_pubkey.to_string(), + "freezeAuthority": freeze_authority.to_string(), }) } ); // Test ThawAccount let thaw_account_ix = thaw_account( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(freeze_authority), &[], ) .unwrap(); - let message = Message::new(&[thaw_account_ix], None); + let message = make_coerced_message(thaw_account_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "thawAccount".to_string(), info: json!({ - "account": keys[1].to_string(), - "mint": keys[2].to_string(), - "freezeAuthority": keys[0].to_string(), + "account": account_pubkey.to_string(), + "mint": mint_pubkey.to_string(), + "freezeAuthority": freeze_authority.to_string(), }) } ); // Test TransferChecked, incl multisig let transfer_ix = transfer_checked( - &spl_token::id(), - &convert_pubkey(keys[0]), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[3]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(owner), &[], 42, 2, ) .unwrap(); - let message = Message::new(&[transfer_ix], None); + let message = make_coerced_message(transfer_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "transferChecked".to_string(), info: json!({ - "source": keys[1].to_string(), - "destination": keys[2].to_string(), - "mint": keys[3].to_string(), - "authority": keys[0].to_string(), - "tokenAmount": { - "uiAmount": 0.42, - "decimals": 2, - "amount": "42", - "uiAmountString": "0.42", + "source": account_pubkey.to_string(), + "destination": recipient.to_string(), + "mint": mint_pubkey.to_string(), + "authority": owner.to_string(), + "tokenAmount": { + "uiAmount": 0.42, + "decimals": 2, + "amount": "42", + "uiAmountString": "0.42", } }) } ); let transfer_ix = transfer_checked( - &spl_token::id(), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[3]), - &convert_pubkey(keys[4]), - &convert_pubkey(keys[5]), - &[&convert_pubkey(keys[0]), &convert_pubkey(keys[1])], + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(multisig_pubkey), + &[ + &convert_pubkey(multisig_signer0), + &convert_pubkey(multisig_signer1), + ], 42, 2, ) .unwrap(); - let message = Message::new(&[transfer_ix], None); + let message = make_coerced_message(transfer_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "transferChecked".to_string(), info: json!({ - "source": keys[2].to_string(), - "destination": keys[3].to_string(), - "mint": keys[4].to_string(), - "multisigAuthority": keys[5].to_string(), - "signers": keys[0..2].iter().map(|key| key.to_string()).collect::>(), - "tokenAmount": { - "uiAmount": 0.42, - "decimals": 2, - "amount": "42", - "uiAmountString": "0.42", + "source": account_pubkey.to_string(), + "destination": recipient.to_string(), + "mint": mint_pubkey.to_string(), + "multisigAuthority": multisig_pubkey.to_string(), + "signers": vec![ + multisig_signer0.to_string(), + multisig_signer1.to_string(), + ], + "tokenAmount": { + "uiAmount": 0.42, + "decimals": 2, + "amount": "42", + "uiAmountString": "0.42", } }) } @@ -947,60 +1064,74 @@ mod test { // Test ApproveChecked, incl multisig let approve_ix = approve_checked( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[3]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(owner), &[], 42, 2, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "approveChecked".to_string(), info: json!({ - "source": keys[1].to_string(), - "mint": keys[2].to_string(), - "delegate": keys[3].to_string(), - "owner": keys[0].to_string(), - "tokenAmount": { - "uiAmount": 0.42, - "decimals": 2, - "amount": "42", - "uiAmountString": "0.42", - } + "source": account_pubkey.to_string(), + "mint": mint_pubkey.to_string(), + "delegate": recipient.to_string(), + "owner": owner.to_string(), + "tokenAmount": { + "uiAmount": 0.42, + "decimals": 2, + "amount": "42", + "uiAmountString": "0.42", + } }) } ); let approve_ix = approve_checked( - &spl_token::id(), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[3]), - &convert_pubkey(keys[4]), - &convert_pubkey(keys[5]), - &[&convert_pubkey(keys[0]), &convert_pubkey(keys[1])], + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(recipient), + &convert_pubkey(multisig_pubkey), + &[ + &convert_pubkey(multisig_signer0), + &convert_pubkey(multisig_signer1), + ], 42, 2, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "approveChecked".to_string(), info: json!({ - "source": keys[2].to_string(), - "mint": keys[3].to_string(), - "delegate": keys[4].to_string(), - "multisigOwner": keys[5].to_string(), - "signers": keys[0..2].iter().map(|key| key.to_string()).collect::>(), + "source": account_pubkey.to_string(), + "mint": mint_pubkey.to_string(), + "delegate": recipient.to_string(), + "multisigOwner": multisig_pubkey.to_string(), + "signers": vec![ + multisig_signer0.to_string(), + multisig_signer1.to_string(), + ], "tokenAmount": { "uiAmount": 0.42, "decimals": 2, @@ -1013,76 +1144,92 @@ mod test { // Test MintToChecked let mint_to_ix = mint_to_checked( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(mint_pubkey), + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_authority), &[], 42, 2, ) .unwrap(); - let message = Message::new(&[mint_to_ix], None); + let message = make_coerced_message(mint_to_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "mintToChecked".to_string(), info: json!({ - "mint": keys[1].to_string(), - "account": keys[2].to_string(), - "mintAuthority": keys[0].to_string(), - "tokenAmount": { - "uiAmount": 0.42, - "decimals": 2, - "amount": "42", - "uiAmountString": "0.42", - } + "mint": mint_pubkey.to_string(), + "account": account_pubkey.to_string(), + "mintAuthority": mint_authority.to_string(), + "tokenAmount": { + "uiAmount": 0.42, + "decimals": 2, + "amount": "42", + "uiAmountString": "0.42", + } }) } ); // Test BurnChecked let burn_ix = burn_checked( - &spl_token::id(), - &convert_pubkey(keys[1]), - &convert_pubkey(keys[2]), - &convert_pubkey(keys[0]), + &spl_token::id(), // TODO: replace with `program_id` + &convert_pubkey(account_pubkey), + &convert_pubkey(mint_pubkey), + &convert_pubkey(owner), &[], 42, 2, ) .unwrap(); - let message = Message::new(&[burn_ix], None); + let message = make_coerced_message(burn_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "burnChecked".to_string(), info: json!({ - "account": keys[1].to_string(), - "mint": keys[2].to_string(), - "authority": keys[0].to_string(), - "tokenAmount": { - "uiAmount": 0.42, - "decimals": 2, - "amount": "42", - "uiAmountString": "0.42", - } + "account": account_pubkey.to_string(), + "mint": mint_pubkey.to_string(), + "authority": owner.to_string(), + "tokenAmount": { + "uiAmount": 0.42, + "decimals": 2, + "amount": "42", + "uiAmountString": "0.42", + } }) } ); // Test SyncNative - let sync_native_ix = sync_native(&spl_token::id(), &convert_pubkey(keys[0])).unwrap(); - let message = Message::new(&[sync_native_ix], None); + let sync_native_ix = sync_native( + &spl_token::id(), // TODO: replace with `program_id`, + &convert_pubkey(account_pubkey), + ) + .unwrap(); + let message = make_coerced_message(sync_native_ix, program_id); let compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert_eq!( - parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).unwrap(), + parse_token( + &compiled_instruction, + &AccountKeys::new(&convert_account_keys(&message), None) + ) + .unwrap(), ParsedInstructionEnum { instruction_type: "syncNative".to_string(), info: json!({ - "account": keys[0].to_string(), + "account": account_pubkey.to_string(), }) } ); @@ -1090,7 +1237,17 @@ mod test { #[test] #[allow(clippy::same_item_push)] - fn test_token_ix_not_enough_keys() { + fn test_parse_token_v3() { + test_parse_token(&spl_token::id()); + } + + #[test] + #[allow(clippy::same_item_push)] + fn test_parse_token_2022() { + test_parse_token(&spl_token_2022::id()); + } + + fn test_token_ix_not_enough_keys(program_id: &SplTokenPubkey) { let mut keys: Vec = vec![]; for _ in 0..10 { keys.push(solana_sdk::pubkey::new_rand()); @@ -1105,7 +1262,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[initialize_mint_ix], None); + let message = make_coerced_message(initialize_mint_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..1], None)).is_err()); compiled_instruction.accounts = @@ -1120,7 +1277,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[initialize_mint_ix], None); + let message = make_coerced_message(initialize_mint_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..1], None)).is_err()); compiled_instruction.accounts = @@ -1135,7 +1292,7 @@ mod test { &convert_pubkey(keys[2]), ) .unwrap(); - let message = Message::new(&[initialize_account_ix], None); + let message = make_coerced_message(initialize_account_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..3], None)).is_err()); compiled_instruction.accounts = @@ -1154,7 +1311,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[initialize_multisig_ix], None); + let message = make_coerced_message(initialize_multisig_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..4], None)).is_err()); compiled_instruction.accounts = @@ -1171,7 +1328,7 @@ mod test { 42, ) .unwrap(); - let message = Message::new(&[transfer_ix], None); + let message = make_coerced_message(transfer_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1187,7 +1344,7 @@ mod test { 42, ) .unwrap(); - let message = Message::new(&[transfer_ix], None); + let message = make_coerced_message(transfer_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..4], None)).is_err()); compiled_instruction.accounts = @@ -1204,7 +1361,7 @@ mod test { 42, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1220,7 +1377,7 @@ mod test { 42, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..4], None)).is_err()); compiled_instruction.accounts = @@ -1235,7 +1392,7 @@ mod test { &[], ) .unwrap(); - let message = Message::new(&[revoke_ix], None); + let message = make_coerced_message(revoke_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..1], None)).is_err()); compiled_instruction.accounts = @@ -1252,7 +1409,7 @@ mod test { &[], ) .unwrap(); - let message = Message::new(&[set_authority_ix], None); + let message = make_coerced_message(set_authority_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..1], None)).is_err()); compiled_instruction.accounts = @@ -1269,7 +1426,7 @@ mod test { 42, ) .unwrap(); - let message = Message::new(&[mint_to_ix], None); + let message = make_coerced_message(mint_to_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1286,7 +1443,7 @@ mod test { 42, ) .unwrap(); - let message = Message::new(&[burn_ix], None); + let message = make_coerced_message(burn_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1302,7 +1459,7 @@ mod test { &[], ) .unwrap(); - let message = Message::new(&[close_account_ix], None); + let message = make_coerced_message(close_account_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1318,7 +1475,7 @@ mod test { &[], ) .unwrap(); - let message = Message::new(&[freeze_account_ix], None); + let message = make_coerced_message(freeze_account_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1334,7 +1491,7 @@ mod test { &[], ) .unwrap(); - let message = Message::new(&[thaw_account_ix], None); + let message = make_coerced_message(thaw_account_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1353,7 +1510,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[transfer_ix], None); + let message = make_coerced_message(transfer_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..3], None)).is_err()); compiled_instruction.accounts = @@ -1371,7 +1528,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[transfer_ix], None); + let message = make_coerced_message(transfer_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..5], None)).is_err()); compiled_instruction.accounts = @@ -1390,7 +1547,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..3], None)).is_err()); compiled_instruction.accounts = @@ -1408,7 +1565,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[approve_ix], None); + let message = make_coerced_message(approve_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..5], None)).is_err()); compiled_instruction.accounts = @@ -1426,7 +1583,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[mint_to_ix], None); + let message = make_coerced_message(mint_to_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1444,7 +1601,7 @@ mod test { 2, ) .unwrap(); - let message = Message::new(&[burn_ix], None); + let message = make_coerced_message(burn_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys[0..2], None)).is_err()); compiled_instruction.accounts = @@ -1453,11 +1610,23 @@ mod test { // Test SyncNative let sync_native_ix = sync_native(&spl_token::id(), &convert_pubkey(keys[0])).unwrap(); - let message = Message::new(&[sync_native_ix], None); + let message = make_coerced_message(sync_native_ix, program_id); let mut compiled_instruction = convert_compiled_instruction(&message.instructions[0]); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&[], None)).is_err()); compiled_instruction.accounts = compiled_instruction.accounts[0..compiled_instruction.accounts.len() - 1].to_vec(); assert!(parse_token(&compiled_instruction, &AccountKeys::new(&keys, None)).is_err()); } + + #[test] + #[allow(clippy::same_item_push)] + fn test_not_enough_keys_token_v3() { + test_token_ix_not_enough_keys(&spl_token::id()); + } + + #[test] + #[allow(clippy::same_item_push)] + fn test_not_enough_keys_token_2022() { + test_token_ix_not_enough_keys(&spl_token_2022::id()); + } } From e1d157fcffce1e1258a94e6aab0a8e2f07c2754e Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Sat, 23 Apr 2022 09:56:36 -0600 Subject: [PATCH 2/2] Fix lock conflicts --- Cargo.lock | 204 +++++++++---------------- programs/bpf/Cargo.lock | 322 ++++++++++++++++------------------------ 2 files changed, 204 insertions(+), 322 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d8254f0a473212..8a1f87f252a425 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3479,7 +3479,7 @@ dependencies = [ "solana-bpf-loader-program", "solana-logger 1.10.10", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana_rbpf", ] @@ -4201,7 +4201,7 @@ dependencies = [ "serde_derive", "serde_json", "solana-config-program", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "spl-token", "spl-token-2022", @@ -4219,7 +4219,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-version", ] @@ -4242,7 +4242,7 @@ dependencies = [ "solana-measure", "solana-net-utils", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -4265,7 +4265,7 @@ dependencies = [ "solana-frozen-abi-macro 1.10.10", "solana-program 1.10.10", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", ] @@ -4277,7 +4277,7 @@ dependencies = [ "bincode", "solana-address-lookup-table-program", "solana-program-test", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4297,7 +4297,7 @@ dependencies = [ "solana-perf", "solana-poh", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-version", ] @@ -4312,7 +4312,7 @@ dependencies = [ "solana-banks-server", "solana-program 1.10.10", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "tarpc", "thiserror", "tokio", @@ -4324,7 +4324,7 @@ name = "solana-banks-interface" version = "1.10.10" dependencies = [ "serde", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "tarpc", ] @@ -4337,7 +4337,7 @@ dependencies = [ "futures 0.3.21", "solana-banks-interface", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-send-transaction-service", "tarpc", "tokio", @@ -4381,7 +4381,7 @@ dependencies = [ "solana-net-utils", "solana-rpc", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-test-validator", "solana-version", @@ -4400,15 +4400,9 @@ dependencies = [ "rustc_version 0.4.0", "serde", "serde_derive", -<<<<<<< HEAD "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", - "solana-sdk", -======= - "solana-frozen-abi 1.11.0", - "solana-frozen-abi-macro 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", ] [[package]] @@ -4424,8 +4418,8 @@ dependencies = [ "solana-metrics", "solana-program-runtime", "solana-runtime", - "solana-sdk 1.11.0", - "solana-zk-token-sdk 1.11.0", + "solana-sdk 1.10.10", + "solana-zk-token-sdk 1.10.10", "solana_rbpf", "thiserror", ] @@ -4442,7 +4436,7 @@ dependencies = [ "rayon", "solana-logger 1.10.10", "solana-measure", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "tempfile", ] @@ -4456,7 +4450,7 @@ dependencies = [ "regex", "serial_test", "solana-download-utils", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "tar", ] @@ -4477,7 +4471,7 @@ dependencies = [ "rpassword", "solana-perf", "solana-remote-wallet", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "tempfile", "thiserror", "tiny-bip39", @@ -4486,26 +4480,6 @@ dependencies = [ ] [[package]] -<<<<<<< HEAD -======= -name = "solana-clap-v3-utils" -version = "1.11.0" -dependencies = [ - "chrono", - "clap 3.1.8", - "rpassword", - "solana-perf", - "solana-remote-wallet", - "solana-sdk 1.11.0", - "tempfile", - "thiserror", - "tiny-bip39", - "uriparse", - "url 2.2.2", -] - -[[package]] ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) name = "solana-cli" version = "1.10.10" dependencies = [ @@ -4537,7 +4511,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-program-runtime", "solana-remote-wallet", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -4561,7 +4535,7 @@ dependencies = [ "serde_derive", "serde_yaml", "solana-clap-utils", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "url 2.2.2", ] @@ -4584,7 +4558,7 @@ dependencies = [ "solana-clap-utils", "solana-cli-config", "solana-client", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-transaction-status", "solana-vote-program", "spl-memo", @@ -4630,7 +4604,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-net-utils", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-transaction-status", "solana-version", @@ -4660,7 +4634,7 @@ dependencies = [ "solana-rayon-threadlimit", "solana-rpc", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -4674,7 +4648,7 @@ name = "solana-compute-budget-program" version = "1.10.10" dependencies = [ "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4687,7 +4661,7 @@ dependencies = [ "serde_derive", "solana-logger 1.10.10", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4739,7 +4713,7 @@ dependencies = [ "solana-replica-lib", "solana-rpc", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-send-transaction-service", "solana-stake-program", "solana-streamer", @@ -4772,7 +4746,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-net-utils", "solana-perf", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-version", ] @@ -4786,7 +4760,7 @@ dependencies = [ "log", "reqwest", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4797,7 +4771,7 @@ dependencies = [ "ed25519-dalek", "rand 0.7.3", "solana-program-test", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4819,7 +4793,7 @@ dependencies = [ "solana-metrics", "solana-perf", "solana-rayon-threadlimit", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4837,7 +4811,7 @@ dependencies = [ "solana-cli-config", "solana-logger 1.10.10", "solana-metrics", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-version", "spl-memo", "thiserror", @@ -4924,7 +4898,7 @@ dependencies = [ "solana-ledger", "solana-logger 1.10.10", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-stake-program", "solana-version", "solana-vote-program", @@ -4937,7 +4911,7 @@ version = "1.10.10" dependencies = [ "solana-download-utils", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4945,7 +4919,7 @@ name = "solana-geyser-plugin-interface" version = "1.10.10" dependencies = [ "log", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-transaction-status", "thiserror", ] @@ -4965,7 +4939,7 @@ dependencies = [ "solana-metrics", "solana-rpc", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-transaction-status", "thiserror", ] @@ -5008,7 +4982,7 @@ dependencies = [ "solana-perf", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-version", "solana-vote-program", @@ -5038,13 +5012,8 @@ dependencies = [ "solana-clap-utils", "solana-client", "solana-config-program", -<<<<<<< HEAD "solana-logger 1.10.10", - "solana-sdk", -======= - "solana-logger 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "solana-version", "tar", "tempfile", @@ -5064,7 +5033,7 @@ dependencies = [ "solana-clap-utils", "solana-cli-config", "solana-remote-wallet", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-version", "tiny-bip39", ] @@ -5113,7 +5082,7 @@ dependencies = [ "solana-program-runtime", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-storage-bigtable", "solana-storage-proto", "solana-transaction-status", @@ -5151,7 +5120,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-stake-program", "solana-storage-bigtable", "solana-transaction-status", @@ -5183,7 +5152,7 @@ dependencies = [ "solana-ledger", "solana-logger 1.10.10", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-stake-program", "solana-streamer", "solana-vote-program", @@ -5227,7 +5196,7 @@ name = "solana-measure" version = "1.10.10" dependencies = [ "log", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -5239,7 +5208,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-version", ] @@ -5265,7 +5234,7 @@ dependencies = [ "rand 0.7.3", "reqwest", "serial_test", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -5292,13 +5261,8 @@ dependencies = [ "serde", "serde_derive", "socket2", -<<<<<<< HEAD "solana-logger 1.10.10", - "solana-sdk", -======= - "solana-logger 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "solana-version", "tokio", "url 2.2.2", @@ -5336,7 +5300,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-rayon-threadlimit", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", ] @@ -5357,7 +5321,7 @@ dependencies = [ "solana-metrics", "solana-perf", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-sys-tuner", "thiserror", ] @@ -5374,7 +5338,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-measure", "solana-perf", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-version", ] @@ -5484,7 +5448,7 @@ dependencies = [ "solana-frozen-abi-macro 1.10.10", "solana-logger 1.10.10", "solana-measure", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", ] @@ -5504,7 +5468,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-program-runtime", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "thiserror", "tokio", @@ -5530,13 +5494,8 @@ dependencies = [ "num-traits", "parking_lot 0.12.0", "qstring", -<<<<<<< HEAD "semver 1.0.6", - "solana-sdk", -======= - "semver 1.0.7", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "thiserror", "uriparse", ] @@ -5551,7 +5510,7 @@ dependencies = [ "prost", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "tokio", "tonic", "tonic-build", @@ -5578,7 +5537,7 @@ dependencies = [ "solana-replica-lib", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-send-transaction-service", "solana-streamer", "solana-validator", @@ -5625,7 +5584,7 @@ dependencies = [ "solana-poh", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-send-transaction-service", "solana-stake-program", "solana-storage-bigtable", @@ -5657,7 +5616,7 @@ dependencies = [ "solana-client", "solana-logger 1.10.10", "solana-rpc", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -5711,11 +5670,11 @@ dependencies = [ "solana-metrics", "solana-program-runtime", "solana-rayon-threadlimit", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-stake-program", "solana-vote-program", "solana-zk-token-proof-program", - "solana-zk-token-sdk 1.11.0", + "solana-zk-token-sdk 1.10.10", "symlink", "tar", "tempfile", @@ -5725,9 +5684,6 @@ dependencies = [ [[package]] name = "solana-sdk" -<<<<<<< HEAD -version = "1.10.10" -======= version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ef63e9db435bcc173d37073d769871379bb90c0fc60b20616f87edc0b06d890" @@ -5779,8 +5735,7 @@ dependencies = [ [[package]] name = "solana-sdk" -version = "1.11.0" ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) +version = "1.10.10" dependencies = [ "anyhow", "assert_matches", @@ -5865,7 +5820,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -5878,7 +5833,7 @@ dependencies = [ "solana-client", "solana-remote-wallet", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-stake-program", ] @@ -5900,7 +5855,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "thiserror", ] @@ -5923,7 +5878,7 @@ dependencies = [ "serde_derive", "smpl_jwt", "solana-metrics", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-storage-proto", "solana-transaction-status", "thiserror", @@ -5941,7 +5896,7 @@ dependencies = [ "prost", "serde", "solana-account-decoder", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-transaction-status", "tonic-build", ] @@ -5977,7 +5932,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-perf", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", "tokio", ] @@ -6015,7 +5970,7 @@ dependencies = [ "solana-program-test", "solana-rpc", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "tokio", ] @@ -6040,7 +5995,7 @@ dependencies = [ "solana-client", "solana-logger 1.10.10", "solana-remote-wallet", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-test-validator", "solana-transaction-status", @@ -6071,7 +6026,7 @@ dependencies = [ "solana-measure", "solana-net-utils", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-transaction-status", "solana-version", @@ -6094,7 +6049,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "spl-associated-token-account", "spl-memo", @@ -6152,7 +6107,7 @@ dependencies = [ "solana-replica-lib", "solana-rpc", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-send-transaction-service", "solana-storage-bigtable", "solana-streamer", @@ -6171,15 +6126,9 @@ dependencies = [ "rustc_version 0.4.0", "serde", "serde_derive", -<<<<<<< HEAD "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", - "solana-sdk", -======= - "solana-frozen-abi 1.11.0", - "solana-frozen-abi-macro 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", ] [[package]] @@ -6198,7 +6147,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", ] @@ -6216,7 +6165,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-metrics", "solana-notifier", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-version", ] @@ -6229,8 +6178,8 @@ dependencies = [ "num-derive", "num-traits", "solana-program-runtime", - "solana-sdk 1.11.0", - "solana-zk-token-sdk 1.11.0", + "solana-sdk 1.10.10", + "solana-zk-token-sdk 1.10.10", ] [[package]] @@ -6284,13 +6233,8 @@ dependencies = [ "serde", "serde_json", "sha3 0.9.1", -<<<<<<< HEAD "solana-program 1.10.10", - "solana-sdk", -======= - "solana-program 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "subtle", "thiserror", "zeroize", diff --git a/programs/bpf/Cargo.lock b/programs/bpf/Cargo.lock index df70e4d18e7ad0..4ab6b777e35738 100644 --- a/programs/bpf/Cargo.lock +++ b/programs/bpf/Cargo.lock @@ -24,7 +24,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" dependencies = [ - "generic-array", + "generic-array 0.14.5", ] [[package]] @@ -339,13 +339,8 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ -<<<<<<< HEAD "block-padding 0.2.1", "generic-array 0.14.5", -======= - "block-padding", - "generic-array", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -354,7 +349,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" dependencies = [ - "generic-array", + "generic-array 0.14.5", ] [[package]] @@ -583,7 +578,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" dependencies = [ - "generic-array", + "generic-array 0.14.5", ] [[package]] @@ -805,7 +800,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" dependencies = [ - "generic-array", + "generic-array 0.14.5", "typenum", ] @@ -815,7 +810,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array", + "generic-array 0.14.5", "subtle", ] @@ -868,18 +863,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" -[[package]] -<<<<<<< HEAD -name = "derivative" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaed5874effa6cde088c644ddcdcb4ffd1511391c5be4fdd7a5ccd02c7e4a183" -dependencies = [ - "proc-macro2 1.0.36", - "quote 1.0.6", - "syn 1.0.91", -] - [[package]] name = "derive_more" version = "0.99.17" @@ -894,8 +877,6 @@ dependencies = [ ] [[package]] -======= ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) name = "dialoguer" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -906,13 +887,22 @@ dependencies = [ "zeroize", ] +[[package]] +name = "digest" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" +dependencies = [ + "generic-array 0.12.3", +] + [[package]] name = "digest" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array", + "generic-array 0.14.5", ] [[package]] @@ -1365,6 +1355,15 @@ dependencies = [ "byteorder 1.4.3", ] +[[package]] +name = "generic-array" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" +dependencies = [ + "typenum", +] + [[package]] name = "generic-array" version = "0.14.5" @@ -1542,7 +1541,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ "digest 0.9.0", - "generic-array", + "generic-array 0.14.5", "hmac 0.8.1", ] @@ -1733,7 +1732,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1f03d4ab4d5dc9ec2d219f86c15d2a15fc08239d1cd3b2d6a19717c0a2f443" dependencies = [ - "generic-array", + "generic-array 0.14.5", ] [[package]] @@ -1851,7 +1850,7 @@ version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b939a78fa820cdfcb7ee7484466746a7377760970f6f9c6fe19f9edcc8a38d2" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 0.1.5", "proc-macro2 1.0.36", "quote 1.0.6", "syn 1.0.91", @@ -2801,7 +2800,7 @@ dependencies = [ "cfg-if 1.0.0", "cmake", "heck", - "itertools 0.10.3", + "itertools", "lazy_static", "log", "multimap", @@ -2820,7 +2819,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b670f45da57fb8542ebdbb6105a925fe571b67f9e7ed9f47a06a84e72b4e7cc" dependencies = [ "anyhow", - "itertools 0.10.3", + "itertools", "proc-macro2 1.0.36", "quote 1.0.6", "syn 1.0.91", @@ -3215,13 +3214,21 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc_version" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver 0.9.0", +] + [[package]] name = "rustc_version" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ -<<<<<<< HEAD "semver 1.0.6", ] @@ -3237,9 +3244,6 @@ dependencies = [ "libc", "linux-raw-sys", "winapi 0.3.9", -======= - "semver", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -3376,7 +3380,6 @@ dependencies = [ [[package]] name = "semver" -<<<<<<< HEAD version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" @@ -3387,12 +3390,15 @@ dependencies = [ [[package]] name = "semver" version = "1.0.6" -======= -version = "1.0.7" ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4a3381e03edd24287172047536f20cabde766e2cd3e65e6b00fb3af51c4f38d" +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + [[package]] name = "serde" version = "1.0.136" @@ -3677,7 +3683,7 @@ dependencies = [ "serde_derive", "serde_json", "solana-config-program", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "spl-token", "spl-token-2022", @@ -3694,13 +3700,13 @@ dependencies = [ "log", "num-derive", "num-traits", - "rustc_version", + "rustc_version 0.4.0", "serde", "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-program 1.10.10", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", ] @@ -3711,13 +3717,8 @@ dependencies = [ "borsh", "futures 0.3.21", "solana-banks-interface", -<<<<<<< HEAD "solana-program 1.10.10", - "solana-sdk", -======= - "solana-program 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "tarpc", "thiserror", "tokio", @@ -3729,7 +3730,7 @@ name = "solana-banks-interface" version = "1.10.10" dependencies = [ "serde", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "tarpc", ] @@ -3742,7 +3743,7 @@ dependencies = [ "futures 0.3.21", "solana-banks-interface", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-send-transaction-service", "tarpc", "tokio", @@ -3764,7 +3765,7 @@ dependencies = [ "serde_derive", "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", - "solana-sdk", + "solana-sdk 1.10.10", ] [[package]] @@ -3778,8 +3779,8 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-program-runtime", - "solana-sdk 1.11.0", - "solana-zk-token-sdk 1.11.0", + "solana-sdk 1.10.10", + "solana-zk-token-sdk 1.10.10", "solana_rbpf", "thiserror", ] @@ -3805,7 +3806,7 @@ dependencies = [ "solana-measure", "solana-program-runtime", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-transaction-status", "solana_rbpf", "walkdir", @@ -3980,7 +3981,7 @@ dependencies = [ "solana-program 1.10.10", "solana-program-runtime", "solana-program-test", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4065,7 +4066,7 @@ dependencies = [ "solana-program 1.10.10", "solana-program-runtime", "solana-program-test", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4079,13 +4080,8 @@ dependencies = [ name = "solana-bpf-rust-sha" version = "1.10.10" dependencies = [ -<<<<<<< HEAD - "blake3 1.3.1", - "solana-program 1.10.10", -======= "blake3", - "solana-program 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-program 1.10.10", ] [[package]] @@ -4109,7 +4105,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-program 1.10.10", "solana-program-test", - "solana-sdk", + "solana-sdk 1.10.10", "solana-validator", ] @@ -4134,7 +4130,7 @@ dependencies = [ "solana-program 1.10.10", "solana-program-runtime", "solana-program-test", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4155,13 +4151,8 @@ dependencies = [ name = "solana-bpf-rust-zk_token_elgamal" version = "1.10.10" dependencies = [ -<<<<<<< HEAD "solana-program 1.10.10", - "solana-zk-token-sdk", -======= - "solana-program 1.11.0", - "solana-zk-token-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-zk-token-sdk 1.10.10", ] [[package]] @@ -4173,7 +4164,7 @@ dependencies = [ "modular-bitfield", "rand 0.7.3", "solana-measure", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "tempfile", ] @@ -4186,7 +4177,7 @@ dependencies = [ "rpassword", "solana-perf", "solana-remote-wallet", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", "tiny-bip39", "uriparse", @@ -4203,13 +4194,8 @@ dependencies = [ "serde_derive", "serde_yaml", "solana-clap-utils", -<<<<<<< HEAD - "solana-sdk", + "solana-sdk 1.10.10", "url 2.2.2", -======= - "solana-sdk 1.11.0", - "url", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) ] [[package]] @@ -4223,19 +4209,14 @@ dependencies = [ "console", "humantime", "indicatif", -<<<<<<< HEAD "semver 1.0.6", -======= - "pretty-hex", - "semver", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "serde", "serde_json", "solana-account-decoder", "solana-clap-utils", "solana-cli-config", "solana-client", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-transaction-status", "solana-vote-program", "spl-memo", @@ -4249,15 +4230,9 @@ dependencies = [ "async-trait", "base64 0.13.0", "bincode", -<<<<<<< HEAD - "bs58 0.4.0", + "bs58", "bytes", "clap", -======= - "bs58", - "bytes 1.1.0", - "clap 2.33.3", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "crossbeam-channel", "futures 0.3.21", "futures-util", @@ -4274,11 +4249,7 @@ dependencies = [ "rayon", "reqwest", "rustls", -<<<<<<< HEAD "semver 1.0.6", -======= - "semver", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) "serde", "serde_derive", "serde_json", @@ -4288,7 +4259,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-net-utils", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-streamer", "solana-transaction-status", "solana-version", @@ -4306,7 +4277,7 @@ name = "solana-compute-budget-program" version = "1.10.10" dependencies = [ "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4318,7 +4289,7 @@ dependencies = [ "serde", "serde_derive", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4328,14 +4299,14 @@ dependencies = [ "ahash", "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "chrono", "crossbeam-channel", "dashmap", "etcd-client", "fs_extra", "histogram", - "itertools 0.10.3", + "itertools", "log", "lru", "rand 0.7.3", @@ -4345,7 +4316,6 @@ dependencies = [ "rustc_version 0.4.0", "serde", "serde_derive", -<<<<<<< HEAD "solana-address-lookup-table-program", "solana-bloom", "solana-client", @@ -4365,7 +4335,7 @@ dependencies = [ "solana-replica-lib", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-send-transaction-service", "solana-streamer", "solana-transaction-status", @@ -4387,7 +4357,7 @@ dependencies = [ "log", "reqwest", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", ] [[package]] @@ -4407,7 +4377,7 @@ dependencies = [ "solana-metrics", "solana-perf", "solana-rayon-threadlimit", - "solana-sdk", + "solana-sdk 1.10.10", ] [[package]] @@ -4425,14 +4395,7 @@ dependencies = [ "solana-cli-config", "solana-logger 1.10.10", "solana-metrics", - "solana-sdk", -======= - "solana-clap-utils", - "solana-cli-config", - "solana-logger 1.11.0", - "solana-metrics", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "solana-version", "spl-memo", "thiserror", @@ -4447,12 +4410,12 @@ checksum = "55e139feda2afd510dea2027584cc35a9ee9ebac0bfef1ab4d23647bf5c091a6" dependencies = [ "bs58", "bv", - "generic-array", + "generic-array 0.14.5", "im", "lazy_static", "log", "memmap2", - "rustc_version", + "rustc_version 0.4.0", "serde", "serde_bytes", "serde_derive", @@ -4467,12 +4430,12 @@ version = "1.10.10" dependencies = [ "bs58", "bv", - "generic-array", + "generic-array 0.14.5", "im", "lazy_static", "log", "memmap2", - "rustc_version", + "rustc_version 0.4.0", "serde", "serde_bytes", "serde_derive", @@ -4489,7 +4452,7 @@ checksum = "798b851026ff2366b318f7818a64846dd1ebc7e613f7893fba07a61cd55e6a48" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.6", - "rustc_version", + "rustc_version 0.4.0", "syn 1.0.91", ] @@ -4499,7 +4462,7 @@ version = "1.10.10" dependencies = [ "proc-macro2 1.0.36", "quote 1.0.6", - "rustc_version", + "rustc_version 0.4.0", "syn 1.0.91", ] @@ -4509,7 +4472,7 @@ version = "1.10.10" dependencies = [ "solana-download-utils", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", ] [[package]] @@ -4517,7 +4480,7 @@ name = "solana-geyser-plugin-interface" version = "1.10.10" dependencies = [ "log", - "solana-sdk", + "solana-sdk 1.10.10", "solana-transaction-status", "thiserror", ] @@ -4526,7 +4489,7 @@ dependencies = [ name = "solana-geyser-plugin-manager" version = "1.10.10" dependencies = [ - "bs58 0.4.0", + "bs58", "crossbeam-channel", "json5", "libloading", @@ -4537,7 +4500,7 @@ dependencies = [ "solana-metrics", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-transaction-status", "thiserror", ] @@ -4552,7 +4515,7 @@ dependencies = [ "crossbeam-channel", "flate2", "indexmap", - "itertools 0.10.3", + "itertools", "log", "lru", "matches", @@ -4578,7 +4541,7 @@ dependencies = [ "solana-perf", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-streamer", "solana-version", "solana-vote-program", @@ -4597,7 +4560,7 @@ dependencies = [ "crossbeam-channel", "fs_extra", "futures 0.3.21", - "itertools 0.10.3", + "itertools", "lazy_static", "libc", "log", @@ -4625,7 +4588,7 @@ dependencies = [ "solana-program-runtime", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-storage-bigtable", "solana-storage-proto", "solana-transaction-status", @@ -4662,7 +4625,7 @@ name = "solana-measure" version = "1.10.10" dependencies = [ "log", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4683,7 +4646,7 @@ dependencies = [ "lazy_static", "log", "reqwest", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -4699,13 +4662,8 @@ dependencies = [ "serde", "serde_derive", "socket2", -<<<<<<< HEAD "solana-logger 1.10.10", - "solana-sdk", -======= - "solana-logger 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "solana-version", "tokio", "url 2.2.2", @@ -4732,7 +4690,7 @@ dependencies = [ "serde", "solana-metrics", "solana-rayon-threadlimit", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", ] @@ -4748,7 +4706,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-sys-tuner", "thiserror", ] @@ -4779,9 +4737,9 @@ dependencies = [ "log", "num-derive", "num-traits", - "parking_lot", + "parking_lot 0.12.0", "rand 0.7.3", - "rustc_version", + "rustc_version 0.4.0", "rustversion", "serde", "serde_bytes", @@ -4821,7 +4779,7 @@ dependencies = [ "num-traits", "parking_lot 0.12.0", "rand 0.7.3", - "rustc_version", + "rustc_version 0.4.0", "rustversion", "serde", "serde_bytes", @@ -4848,12 +4806,12 @@ dependencies = [ "log", "num-derive", "num-traits", - "rustc_version", + "rustc_version 0.4.0", "serde", "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-measure", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", ] @@ -4873,7 +4831,7 @@ dependencies = [ "solana-logger 1.10.10", "solana-program-runtime", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "thiserror", "tokio", @@ -4898,13 +4856,8 @@ dependencies = [ "num-traits", "parking_lot 0.12.0", "qstring", -<<<<<<< HEAD "semver 1.0.6", - "solana-sdk", -======= - "semver", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "thiserror", "uriparse", ] @@ -4919,7 +4872,7 @@ dependencies = [ "prost", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "tokio", "tonic", "tonic-build", @@ -4931,10 +4884,10 @@ version = "1.10.10" dependencies = [ "base64 0.13.0", "bincode", - "bs58 0.4.0", + "bs58", "crossbeam-channel", "dashmap", - "itertools 0.10.3", + "itertools", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -4960,7 +4913,7 @@ dependencies = [ "solana-poh", "solana-rayon-threadlimit", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-send-transaction-service", "solana-storage-bigtable", "solana-streamer", @@ -5003,7 +4956,7 @@ dependencies = [ "rand 0.7.3", "rayon", "regex", - "rustc_version", + "rustc_version 0.4.0", "serde", "serde_derive", "solana-address-lookup-table-program", @@ -5016,11 +4969,11 @@ dependencies = [ "solana-metrics", "solana-program-runtime", "solana-rayon-threadlimit", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-stake-program", "solana-vote-program", "solana-zk-token-proof-program", - "solana-zk-token-sdk 1.11.0", + "solana-zk-token-sdk 1.10.10", "symlink", "tar", "tempfile", @@ -5030,9 +4983,6 @@ dependencies = [ [[package]] name = "solana-sdk" -<<<<<<< HEAD -version = "1.10.10" -======= version = "1.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ef63e9db435bcc173d37073d769871379bb90c0fc60b20616f87edc0b06d890" @@ -5050,7 +5000,7 @@ dependencies = [ "digest 0.10.3", "ed25519-dalek", "ed25519-dalek-bip32", - "generic-array", + "generic-array 0.14.5", "hmac 0.12.1", "itertools", "js-sys", @@ -5064,7 +5014,7 @@ dependencies = [ "qstring", "rand 0.7.3", "rand_chacha 0.2.2", - "rustc_version", + "rustc_version 0.4.0", "rustversion", "serde", "serde_bytes", @@ -5084,8 +5034,7 @@ dependencies = [ [[package]] name = "solana-sdk" -version = "1.11.0" ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) +version = "1.10.10" dependencies = [ "assert_matches", "base64 0.13.0", @@ -5100,7 +5049,7 @@ dependencies = [ "digest 0.10.3", "ed25519-dalek", "ed25519-dalek-bip32", - "generic-array", + "generic-array 0.14.5", "hmac 0.12.1", "itertools", "js-sys", @@ -5114,7 +5063,7 @@ dependencies = [ "qstring", "rand 0.7.3", "rand_chacha 0.2.2", - "rustc_version", + "rustc_version 0.4.0", "rustversion", "serde", "serde_bytes", @@ -5166,7 +5115,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", ] [[package]] @@ -5177,7 +5126,7 @@ dependencies = [ "log", "num-derive", "num-traits", - "rustc_version", + "rustc_version 0.4.0", "serde", "serde_derive", "solana-config-program", @@ -5185,7 +5134,7 @@ dependencies = [ "solana-frozen-abi-macro 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "thiserror", ] @@ -5208,7 +5157,7 @@ dependencies = [ "serde_derive", "smpl_jwt", "solana-metrics", - "solana-sdk", + "solana-sdk 1.10.10", "solana-storage-proto", "solana-transaction-status", "thiserror", @@ -5221,11 +5170,11 @@ name = "solana-storage-proto" version = "1.10.10" dependencies = [ "bincode", - "bs58 0.4.0", + "bs58", "prost", "serde", "solana-account-decoder", - "solana-sdk", + "solana-sdk 1.10.10", "solana-transaction-status", "tonic-build", ] @@ -5249,7 +5198,7 @@ dependencies = [ "rustls", "solana-metrics", "solana-perf", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", "tokio", ] @@ -5287,7 +5236,7 @@ dependencies = [ "solana-program-test", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-streamer", "tokio", ] @@ -5309,7 +5258,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "solana-vote-program", "spl-associated-token-account", "spl-memo", @@ -5359,7 +5308,7 @@ dependencies = [ "solana-replica-lib", "solana-rpc", "solana-runtime", - "solana-sdk", + "solana-sdk 1.10.10", "solana-send-transaction-service", "solana-storage-bigtable", "solana-streamer", @@ -5375,18 +5324,12 @@ name = "solana-version" version = "1.10.10" dependencies = [ "log", - "rustc_version", + "rustc_version 0.4.0", "serde", "serde_derive", -<<<<<<< HEAD "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", - "solana-sdk", -======= - "solana-frozen-abi 1.11.0", - "solana-frozen-abi-macro 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", ] [[package]] @@ -5397,14 +5340,14 @@ dependencies = [ "log", "num-derive", "num-traits", - "rustc_version", + "rustc_version 0.4.0", "serde", "serde_derive", "solana-frozen-abi 1.10.10", "solana-frozen-abi-macro 1.10.10", "solana-metrics", "solana-program-runtime", - "solana-sdk 1.11.0", + "solana-sdk 1.10.10", "thiserror", ] @@ -5417,8 +5360,8 @@ dependencies = [ "num-derive", "num-traits", "solana-program-runtime", - "solana-sdk 1.11.0", - "solana-zk-token-sdk 1.11.0", + "solana-sdk 1.10.10", + "solana-zk-token-sdk 1.10.10", ] [[package]] @@ -5472,13 +5415,8 @@ dependencies = [ "serde", "serde_json", "sha3 0.9.1", -<<<<<<< HEAD "solana-program 1.10.10", - "solana-sdk", -======= - "solana-program 1.11.0", - "solana-sdk 1.11.0", ->>>>>>> 413806684 (Add SPL Token 2022 to the list of known token ids (#23067)) + "solana-sdk 1.10.10", "subtle", "thiserror", "zeroize", @@ -6371,7 +6309,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" dependencies = [ - "generic-array", + "generic-array 0.14.5", "subtle", ]