From 4a20f257a3c9a4d80abdc8dba0a9d2d96fb9e8f0 Mon Sep 17 00:00:00 2001 From: Ayush Date: Sat, 4 Jan 2025 23:03:27 +0530 Subject: [PATCH 01/10] fix actions --- .github/workflows/anchor.yml | 2 +- .github/workflows/poseidon.yml | 2 +- .github/workflows/solana-native.yml | 4 +- .github/workflows/steel.yml | 4 +- Cargo.lock | 3187 +++++++++++++++++ basics/favorites/native/program/Cargo.toml | 2 +- .../native/program/src/instructions/mod.rs | 3 - package.json | 6 +- 8 files changed, 3197 insertions(+), 13 deletions(-) diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index 8129f1d78..68d729115 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -104,7 +104,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 - - uses: heyAyushh/setup-anchor@v4.4 + - uses: heyAyushh/setup-anchor@v4.9 with: anchor-version: 0.30.1 solana-cli-version: stable diff --git a/.github/workflows/poseidon.yml b/.github/workflows/poseidon.yml index 41dc3ec52..befa47718 100644 --- a/.github/workflows/poseidon.yml +++ b/.github/workflows/poseidon.yml @@ -104,7 +104,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 - - uses: heyAyushh/setup-anchor@v4.4 + - uses: heyAyushh/setup-anchor@v4.9 with: anchor-version: 0.30.1 solana-cli-version: stable diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index c3462dd52..b1f9d6dbc 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -180,7 +180,7 @@ jobs: # Install pnpm npm install --global pnpm - name: Setup Solana stable - uses: heyAyushh/setup-solana@v5.5 + uses: heyAyushh/setup-solana@v5.9 with: solana-cli-version: stable - name: Build and Test with Stable @@ -190,7 +190,7 @@ jobs: rustc -V process_projects "stable" - name: Setup Solana 1.18.17 - uses: heyAyushh/setup-solana@v5.5 + uses: heyAyushh/setup-solana@v5.9 with: solana-cli-version: 1.18.17 - name: Build and Test with 1.18.17 diff --git a/.github/workflows/steel.yml b/.github/workflows/steel.yml index 86da8c663..58e7c83a8 100644 --- a/.github/workflows/steel.yml +++ b/.github/workflows/steel.yml @@ -253,7 +253,7 @@ jobs: chmod +x build_and_test.sh - name: Setup Solana stable - uses: heyAyushh/setup-solana@v5.5 + uses: heyAyushh/setup-solana@v5.9 with: solana-cli-version: stable - name: Build and Test with Stable @@ -268,7 +268,7 @@ jobs: process_projects "stable" sccache --show-stats - name: Setup Solana 1.18.17 - uses: heyAyushh/setup-solana@v5.5 + uses: heyAyushh/setup-solana@v5.9 with: solana-cli-version: 1.18.17 - name: Build and Test with 1.18.17 diff --git a/Cargo.lock b/Cargo.lock index e69de29bb..807dd5b44 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -0,0 +1,3187 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "account-data-anchor-program-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "account-data-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "aead" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" +dependencies = [ + "generic-array", +] + +[[package]] +name = "aes" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", + "opaque-debug", +] + +[[package]] +name = "aes-gcm-siv" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589c637f0e68c877bbd59a4599bbe849cac8e5f3e4b5a3ebae8f528cd218dcdc" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "polyval", + "subtle", + "zeroize", +] + +[[package]] +name = "ahash" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +dependencies = [ + "getrandom 0.2.15", + "once_cell", + "version_check", +] + +[[package]] +name = "ahash" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +dependencies = [ + "memchr", +] + +[[package]] +name = "anchor-attribute-access-control" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47fe28365b33e8334dd70ae2f34a43892363012fe239cf37d2ee91693575b1f8" +dependencies = [ + "anchor-syn", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-account" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c288d496168268d198d9b53ee9f4f9d260a55ba4df9877ea1d4486ad6109e0f" +dependencies = [ + "anchor-syn", + "bs58 0.5.1", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-constant" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49b77b6948d0eeaaa129ce79eea5bbbb9937375a9241d909ca8fb9e006bb6e90" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-error" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d20bb569c5a557c86101b944721d865e1fd0a4c67c381d31a44a84f07f84828" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-event" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cebd8d0671a3a9dc3160c48598d652c34c77de6be4d44345b8b514323284d57" +dependencies = [ + "anchor-syn", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-program" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efb2a5eb0860e661ab31aff7bb5e0288357b176380e985bade4ccb395981b42d" +dependencies = [ + "anchor-lang-idl", + "anchor-syn", + "anyhow", + "bs58 0.5.1", + "heck", + "proc-macro2", + "quote", + "serde_json", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-accounts" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04368b5abef4266250ca8d1d12f4dff860242681e4ec22b885dcfe354fd35aa1" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-serde" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0bb0e0911ad4a70cab880cdd6287fe1e880a1a9d8e4e6defa8e9044b9796a6c" +dependencies = [ + "anchor-syn", + "borsh-derive-internal 0.10.4", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-space" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ef415ff156dc82e9ecb943189b0cb241b3a6bfc26a180234dc21bd3ef3ce0cb" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-lang" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6620c9486d9d36a4389cab5e37dc34a42ed0bfaa62e6a75a2999ce98f8f2e373" +dependencies = [ + "anchor-attribute-access-control", + "anchor-attribute-account", + "anchor-attribute-constant", + "anchor-attribute-error", + "anchor-attribute-event", + "anchor-attribute-program", + "anchor-derive-accounts", + "anchor-derive-serde", + "anchor-derive-space", + "anchor-lang-idl", + "arrayref", + "base64 0.21.7", + "bincode", + "borsh 0.10.4", + "bytemuck", + "getrandom 0.2.15", + "solana-program 1.18.17", + "thiserror", +] + +[[package]] +name = "anchor-lang-idl" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31cf97b4e6f7d6144a05e435660fcf757dbc3446d38d0e2b851d11ed13625bba" +dependencies = [ + "anchor-lang-idl-spec", + "anyhow", + "heck", + "regex", + "serde", + "serde_json", + "sha2 0.10.8", +] + +[[package]] +name = "anchor-lang-idl-spec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bdf143115440fe621bdac3a29a1f7472e09f6cd82b2aa569429a0c13f103838" +dependencies = [ + "anyhow", + "serde", +] + +[[package]] +name = "anchor-program-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "anchor-realloc" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "anchor-syn" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f99daacb53b55cfd37ce14d6c9905929721137fd4c67bbab44a19802aecb622f" +dependencies = [ + "anyhow", + "bs58 0.5.1", + "cargo_toml", + "heck", + "proc-macro2", + "quote", + "serde", + "serde_json", + "sha2 0.10.8", + "syn 1.0.109", + "thiserror", +] + +[[package]] +name = "anyhow" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" + +[[package]] +name = "ark-bn254" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-std", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", + "itertools", + "num-traits", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm", + "ark-ff-macros", + "ark-serialize", + "ark-std", + "derivative", + "digest 0.10.7", + "itertools", + "num-bigint", + "num-traits", + "paste", + "rustc_version", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-serialize-derive", + "ark-std", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "assert_matches" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +dependencies = [ + "serde", +] + +[[package]] +name = "bitmaps" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" +dependencies = [ + "typenum", +] + +[[package]] +name = "blake3" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "digest 0.10.7", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "block-padding", + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-padding" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" + +[[package]] +name = "borsh" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15bf3650200d8bffa99015595e10f1fbd17de07abbc25bb067da79e769939bfa" +dependencies = [ + "borsh-derive 0.9.3", + "hashbrown 0.11.2", +] + +[[package]] +name = "borsh" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115e54d64eb62cdebad391c19efc9dce4981c690c85a33a12199d99bb9546fee" +dependencies = [ + "borsh-derive 0.10.4", + "hashbrown 0.13.2", +] + +[[package]] +name = "borsh" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2506947f73ad44e344215ccd6403ac2ae18cd8e046e581a441bf8d199f257f03" +dependencies = [ + "borsh-derive 1.5.3", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775" +dependencies = [ + "borsh-derive-internal 0.9.3", + "borsh-schema-derive-internal 0.9.3", + "proc-macro-crate 0.1.5", + "proc-macro2", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831213f80d9423998dd696e2c5345aba6be7a0bd8cd19e31c5243e13df1cef89" +dependencies = [ + "borsh-derive-internal 0.10.4", + "borsh-schema-derive-internal 0.10.4", + "proc-macro-crate 0.1.5", + "proc-macro2", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2593a3b8b938bd68373196c9832f516be11fa487ef4ae745eb282e6a56a7244" +dependencies = [ + "once_cell", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "borsh-derive-internal" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5449c28a7b352f2d1e592a8a28bf139bc71afb0764a14f3c02500935d8c44065" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65d6ba50644c98714aa2a70d13d7df3cd75cd2b523a2b452bf010443800976b3" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-schema-derive-internal" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdbd5696d8bfa21d53d9fe39a714a18538bad11492a42d066dbbc395fb1951c0" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-schema-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "276691d96f063427be83e6692b86148e488ebba9f48f77788724ca027ba3b6d4" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "bs58" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" + +[[package]] +name = "bv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340" +dependencies = [ + "feature-probe", + "serde", +] + +[[package]] +name = "bytemuck" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "cargo_toml" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a98356df42a2eb1bd8f1793ae4ee4de48e384dd974ce5eac8eee802edb7492be" +dependencies = [ + "serde", + "toml 0.8.19", +] + +[[package]] +name = "carnival" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "cc" +version = "1.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a012a0df96dd6d06ba9a1b29d6402d1a5d77c6befd2566afdc26e10603dc93d7" +dependencies = [ + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "checking-accounts-anchor-program-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "checking-accounts-program" +version = "0.1.0" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "chrono" +version = "0.4.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" +dependencies = [ + "num-traits", +] + +[[package]] +name = "cipher" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" +dependencies = [ + "generic-array", +] + +[[package]] +name = "close-account-native-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "close-account-program" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + +[[package]] +name = "console_log" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f" +dependencies = [ + "log", + "web-sys", +] + +[[package]] +name = "constant_time_eq" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" + +[[package]] +name = "counter-mpl-stack" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "shank", + "solana-program 1.18.17", +] + +[[package]] +name = "counter-solana-native" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "counter_anchor" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "cpufeatures" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" +dependencies = [ + "libc", +] + +[[package]] +name = "create-account-program" +version = "0.1.0" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "create-system-account" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "crypto-mac" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "ctr" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea" +dependencies = [ + "cipher", +] + +[[package]] +name = "curve25519-dalek" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0" +dependencies = [ + "byteorder", + "digest 0.9.0", + "rand_core 0.5.1", + "serde", + "subtle", + "zeroize", +] + +[[package]] +name = "darling" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.94", +] + +[[package]] +name = "darling_macro" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "derivation-path" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common", + "subtle", +] + +[[package]] +name = "ed25519" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +dependencies = [ + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +dependencies = [ + "curve25519-dalek", + "ed25519", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "zeroize", +] + +[[package]] +name = "ed25519-dalek-bip32" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908" +dependencies = [ + "derivation-path", + "ed25519-dalek", + "hmac 0.12.1", + "sha2 0.10.8", +] + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + +[[package]] +name = "env_logger" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "favorites-native" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 2.0.14", +] + +[[package]] +name = "feature-probe" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "serde", + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "hand" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "hashbrown" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +dependencies = [ + "ahash 0.7.8", +] + +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash 0.8.11", +] + +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "hello-solana-anchor" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "hello-solana-program" +version = "0.1.0" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "hmac-drbg" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" +dependencies = [ + "digest 0.9.0", + "generic-array", + "hmac 0.8.1", +] + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "im" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" +dependencies = [ + "bitmaps", + "rand_core 0.6.4", + "rand_xoshiro", + "rayon", + "serde", + "sized-chunks", + "typenum", + "version_check", +] + +[[package]] +name = "indexmap" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" +dependencies = [ + "equivalent", + "hashbrown 0.15.2", +] + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" + +[[package]] +name = "jobserver" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" +dependencies = [ + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "lever" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "libc" +version = "0.2.169" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" + +[[package]] +name = "libsecp256k1" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" +dependencies = [ + "arrayref", + "base64 0.12.3", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core", + "libsecp256k1-gen-ecmult", + "libsecp256k1-gen-genmult", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "typenum", +] + +[[package]] +name = "libsecp256k1-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "light-poseidon" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" +dependencies = [ + "ark-bn254", + "ark-ff", + "num-bigint", + "thiserror", +] + +[[package]] +name = "lock_api" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "memmap2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-derive" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1" +dependencies = [ + "num_enum_derive 0.6.1", +] + +[[package]] +name = "num_enum" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" +dependencies = [ + "num_enum_derive 0.7.3", +] + +[[package]] +name = "num_enum_derive" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" +dependencies = [ + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "once_cell" +version = "1.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "parking_lot" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pbkdf2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +dependencies = [ + "crypto-mac", +] + +[[package]] +name = "pbkdf2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "pda-rent-payer" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "pda-rent-payer-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "polyval" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" +dependencies = [ + "cfg-if", + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml 0.5.11", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" +dependencies = [ + "toml_edit 0.22.22", +] + +[[package]] +name = "proc-macro2" +version = "1.0.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "processing-instructions" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "processing-instructions-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "program-derived-addresses-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "qstring" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "qualifier_attr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "quote" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.15", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_xoshiro" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "rayon" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "realloc-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "redox_syscall" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" + +[[package]] +name = "rent-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "repository-layout-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + +[[package]] +name = "ryu" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "semver" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" + +[[package]] +name = "serde" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_bytes" +version = "0.11.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "serde_json" +version = "1.0.134" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d00f4175c42ee48b15416f6193a959ba3a0d67fc699a0db9ad12df9f83991c7d" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", +] + +[[package]] +name = "serde_spanned" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_with" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" +dependencies = [ + "serde", + "serde_with_macros", +] + +[[package]] +name = "serde_with_macros" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures", + "digest 0.9.0", + "opaque-debug", +] + +[[package]] +name = "sha2" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha3" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" +dependencies = [ + "block-buffer 0.9.0", + "digest 0.9.0", + "keccak", + "opaque-debug", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest 0.10.7", + "keccak", +] + +[[package]] +name = "shank" +version = "0.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2935c06d5a141ad2854622a014e30c5eeaa40096667df6bdd682dba9f8f81819" +dependencies = [ + "shank_macro", +] + +[[package]] +name = "shank_macro" +version = "0.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ab8a1eb550845e36c88007f4c00175eeeb436d2fc6c70d05207a338cba7519f" +dependencies = [ + "proc-macro2", + "quote", + "shank_macro_impl", + "syn 1.0.109", +] + +[[package]] +name = "shank_macro_impl" +version = "0.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23ec51b35f2336faaeff44daf8952ddee4fe3e3693a313804ae7366f18a9967d" +dependencies = [ + "anyhow", + "proc-macro2", + "quote", + "serde", + "syn 1.0.109", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signature" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "sized-chunks" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" +dependencies = [ + "bitmaps", + "typenum", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "solana-frozen-abi" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4867f66e9527fa44451c861c1dc6d9b2a7c7a668d7c6a297cdefbe39f4395b33" +dependencies = [ + "block-buffer 0.10.4", + "bs58 0.4.0", + "bv", + "either", + "generic-array", + "im", + "lazy_static", + "log", + "memmap2", + "rustc_version", + "serde", + "serde_bytes", + "serde_derive", + "sha2 0.10.8", + "solana-frozen-abi-macro", + "subtle", + "thiserror", +] + +[[package]] +name = "solana-frozen-abi-macro" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "168f24d97347b85f05192df58d6be3e3047a4aadc4001bc1b9e711a5ec878eea" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.94", +] + +[[package]] +name = "solana-logger" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0511082fc62f2d086520fff5aa1917c389d8c840930c08ad255ae05952c08a2" +dependencies = [ + "env_logger", + "lazy_static", + "log", +] + +[[package]] +name = "solana-program" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bc5a636dc75e5c25651e34f7a36afc9ae60d38166687c5b0375abb580ac81a2" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", + "base64 0.21.7", + "bincode", + "bitflags", + "blake3", + "borsh 0.10.4", + "borsh 0.9.3", + "borsh 1.5.3", + "bs58 0.4.0", + "bv", + "bytemuck", + "cc", + "console_error_panic_hook", + "console_log", + "curve25519-dalek", + "getrandom 0.2.15", + "itertools", + "js-sys", + "lazy_static", + "libc", + "libsecp256k1", + "light-poseidon", + "log", + "memoffset", + "num-bigint", + "num-derive 0.4.2", + "num-traits", + "parking_lot", + "rand 0.8.5", + "rustc_version", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "sha2 0.10.8", + "sha3 0.10.8", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-sdk-macro 1.18.17", + "thiserror", + "tiny-bip39", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "solana-program" +version = "2.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2625a23c3813b620141ee447819b08d1b9a5f1c69a309754834e3f35798a21fb" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", + "base64 0.22.1", + "bincode", + "bitflags", + "blake3", + "borsh 0.10.4", + "borsh 1.5.3", + "bs58 0.5.1", + "bv", + "bytemuck", + "bytemuck_derive", + "console_error_panic_hook", + "console_log", + "curve25519-dalek", + "getrandom 0.2.15", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memoffset", + "num-bigint", + "num-derive 0.4.2", + "num-traits", + "parking_lot", + "rand 0.8.5", + "rustc_version", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "sha2 0.10.8", + "sha3 0.10.8", + "solana-sdk-macro 2.0.14", + "thiserror", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df43d3a1e1637397ab43cbc216a5a8f977ec8a3cc3f3ae8c3851c83a3255dbcf" +dependencies = [ + "assert_matches", + "base64 0.21.7", + "bincode", + "bitflags", + "borsh 1.5.3", + "bs58 0.4.0", + "bytemuck", + "byteorder", + "chrono", + "derivation-path", + "digest 0.10.7", + "ed25519-dalek", + "ed25519-dalek-bip32", + "generic-array", + "hmac 0.12.1", + "itertools", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memmap2", + "num-derive 0.4.2", + "num-traits", + "num_enum 0.7.3", + "pbkdf2 0.11.0", + "qstring", + "qualifier_attr", + "rand 0.7.3", + "rand 0.8.5", + "rustc_version", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "serde_with", + "sha2 0.10.8", + "sha3 0.10.8", + "siphasher", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-logger", + "solana-program 1.18.17", + "solana-sdk-macro 1.18.17", + "thiserror", + "uriparse", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk-macro" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86c76414183a325038ff020b22c07d1e9d2da0703ddc0244acfed37ee2921d96" +dependencies = [ + "bs58 0.4.0", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.94", +] + +[[package]] +name = "solana-sdk-macro" +version = "2.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93a5a1eabc890415d326707afe62cd7a2009236e8d899c1519566fc8f7e3977b" +dependencies = [ + "bs58 0.5.1", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.94", +] + +[[package]] +name = "solana-security-txt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" + +[[package]] +name = "solana-zk-token-sdk" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "513407f88394e437b4ff5aad892bc5bf51a655ae2401e6e63549734d3695c46f" +dependencies = [ + "aes-gcm-siv", + "base64 0.21.7", + "bincode", + "bytemuck", + "byteorder", + "curve25519-dalek", + "getrandom 0.1.16", + "itertools", + "lazy_static", + "merlin", + "num-derive 0.4.2", + "num-traits", + "rand 0.7.3", + "serde", + "serde_json", + "sha3 0.9.1", + "solana-program 1.18.17", + "solana-sdk", + "subtle", + "thiserror", + "zeroize", +] + +[[package]] +name = "spl-associated-token-account" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "992d9c64c2564cc8f63a4b508bf3ebcdf2254b0429b13cd1d31adb6162432a5f" +dependencies = [ + "assert_matches", + "borsh 0.10.4", + "num-derive 0.4.2", + "num-traits", + "solana-program 1.18.17", + "spl-token", + "spl-token-2022 1.0.0", + "thiserror", +] + +[[package]] +name = "spl-discriminator" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cce5d563b58ef1bb2cdbbfe0dfb9ffdc24903b10ae6a4df2d8f425ece375033f" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator-derive", +] + +[[package]] +name = "spl-discriminator-derive" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07fd7858fc4ff8fb0e34090e41d7eb06a823e1057945c26d480bfc21d2338a93" +dependencies = [ + "quote", + "spl-discriminator-syn", + "syn 2.0.94", +] + +[[package]] +name = "spl-discriminator-syn" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18fea7be851bd98d10721782ea958097c03a0c2a07d8d4997041d0ece6319a63" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.94", + "thiserror", +] + +[[package]] +name = "spl-memo" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0dc6f70db6bacea7ff25870b016a65ba1d1b6013536f08e4fd79a8f9005325" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "spl-memo" +version = "4.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a49f49f95f2d02111ded31696ab38a081fab623d4c76bd4cb074286db4560836" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "spl-pod" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2881dddfca792737c0706fa0175345ab282b1b0879c7d877bad129645737c079" +dependencies = [ + "borsh 0.10.4", + "bytemuck", + "solana-program 1.18.17", + "solana-zk-token-sdk", + "spl-program-error 0.3.0", +] + +[[package]] +name = "spl-program-error" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af92f74cd3b0fdfda59fef4b571a92123e4df0f67cc43f73163975d31118ef82" +dependencies = [ + "num-derive 0.3.3", + "num-traits", + "solana-program 1.18.17", + "spl-program-error-derive 0.2.0", + "thiserror", +] + +[[package]] +name = "spl-program-error" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "249e0318493b6bcf27ae9902600566c689b7dfba9f1bdff5893e92253374e78c" +dependencies = [ + "num-derive 0.4.2", + "num-traits", + "solana-program 1.18.17", + "spl-program-error-derive 0.3.2", + "thiserror", +] + +[[package]] +name = "spl-program-error-derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173f3cc506847882189b3a5b67299f617fed2f9730f122dd197b82e1e213dee5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "spl-program-error-derive" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1845dfe71fd68f70382232742e758557afe973ae19e6c06807b2c30f5d5cb474" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.94", +] + +[[package]] +name = "spl-tlv-account-resolution" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82149a5a06b5f158d03904066375eaf0c8a2422557cc3d5a25d277260d9a3b16" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-program-error 0.2.0", + "spl-type-length-value 0.2.0", +] + +[[package]] +name = "spl-tlv-account-resolution" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "615d381f48ddd2bb3c57c7f7fb207591a2a05054639b18a62e785117dd7a8683" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", + "spl-type-length-value 0.3.0", +] + +[[package]] +name = "spl-token" +version = "4.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9eb465e4bf5ce1d498f05204c8089378c1ba34ef2777ea95852fc53a1fd4fb2" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum 0.7.3", + "solana-program 1.18.17", + "thiserror", +] + +[[package]] +name = "spl-token-2022" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b24ac5786a3fefbf59f5606312c61abf87b23154e7a717e5d18216fbea4711db" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.3.3", + "num-traits", + "num_enum 0.6.1", + "solana-program 1.18.17", + "solana-zk-token-sdk", + "spl-memo 3.0.1", + "spl-token", + "spl-transfer-hook-interface 0.1.0", + "thiserror", +] + +[[package]] +name = "spl-token-2022" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d697fac19fd74ff472dfcc13f0b442dd71403178ce1de7b5d16f83a33561c059" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum 0.7.3", + "solana-program 1.18.17", + "solana-security-txt", + "solana-zk-token-sdk", + "spl-memo 4.0.4", + "spl-pod", + "spl-token", + "spl-token-group-interface", + "spl-token-metadata-interface", + "spl-transfer-hook-interface 0.4.1", + "spl-type-length-value 0.3.0", + "thiserror", +] + +[[package]] +name = "spl-token-group-interface" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b889509d49fa74a4a033ca5dae6c2307e9e918122d97e58562f5c4ffa795c75d" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", +] + +[[package]] +name = "spl-token-metadata-interface" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c16ce3ba6979645fb7627aa1e435576172dd63088dc7848cb09aa331fa1fe4f" +dependencies = [ + "borsh 0.10.4", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", + "spl-type-length-value 0.3.0", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a2326852adf88716fbac7f54cd6ee2c8a0b5a14ede24db3b4519c4ff13df04b" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.3.3", + "num-traits", + "num_enum 0.6.1", + "solana-program 1.18.17", + "spl-discriminator", + "spl-tlv-account-resolution 0.2.0", + "spl-type-length-value 0.2.0", + "thiserror", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aabdb7c471566f6ddcee724beb8618449ea24b399e58d464d6b5bc7db550259" +dependencies = [ + "arrayref", + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", + "spl-tlv-account-resolution 0.5.1", + "spl-type-length-value 0.3.0", +] + +[[package]] +name = "spl-type-length-value" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d085f426b33b8365fb98383d1b8b3925e21bdfe579c851ceaa7f511dbec191" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-program-error 0.2.0", +] + +[[package]] +name = "spl-type-length-value" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a468e6f6371f9c69aae760186ea9f1a01c2908351b06a5e0026d21cfc4d7ecac" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "987bc0be1cdea8b10216bd06e2ca407d40b9543468fafd3ddfb02f36e77f71f3" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "tiny-bip39" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" +dependencies = [ + "anyhow", + "hmac 0.8.1", + "once_cell", + "pbkdf2 0.4.0", + "rand 0.7.3", + "rustc-hash", + "sha2 0.9.9", + "thiserror", + "unicode-normalization", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "tinyvec" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "token-2022-default-account-state-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-mint-close-authority-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-multiple-extensions-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-non-transferable-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-transfer-fees-program" +version = "0.1.0" +dependencies = [ + "borsh 0.10.4", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[package]] +name = "toml" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit 0.22.22", +] + +[[package]] +name = "toml_datetime" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap", + "toml_datetime", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.22.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "winnow 0.6.22", +] + +[[package]] +name = "transfer-sol" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "transfer-sol-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "typenum" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" + +[[package]] +name = "unicode-ident" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" + +[[package]] +name = "unicode-normalization" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "universal-hash" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "uriparse" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff" +dependencies = [ + "fnv", + "lazy_static", +] + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasm-bindgen" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" +dependencies = [ + "cfg-if", + "once_cell", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" +dependencies = [ + "bumpalo", + "log", + "proc-macro2", + "quote", + "syn 2.0.94", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" + +[[package]] +name = "web-sys" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.6.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39281189af81c07ec09db316b302a3e67bf9bd7cbf6c820b50e35fee9c2fa980" +dependencies = [ + "memchr", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "zeroize" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] diff --git a/basics/favorites/native/program/Cargo.toml b/basics/favorites/native/program/Cargo.toml index 2ba91ee62..6ffe6c27e 100644 --- a/basics/favorites/native/program/Cargo.toml +++ b/basics/favorites/native/program/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] borsh = "0.9.3" -solana-program = "2.0.14" +solana-program = "=2.0.14" borsh-derive = "0.9.1" [lib] diff --git a/basics/favorites/native/program/src/instructions/mod.rs b/basics/favorites/native/program/src/instructions/mod.rs index ec0e69f4f..2f2a2ae4d 100644 --- a/basics/favorites/native/program/src/instructions/mod.rs +++ b/basics/favorites/native/program/src/instructions/mod.rs @@ -1,5 +1,2 @@ pub mod create_pda; pub mod get_pda; - -use create_pda::*; -use get_pda::*; \ No newline at end of file diff --git a/package.json b/package.json index f3a466388..ba49dfdab 100644 --- a/package.json +++ b/package.json @@ -12,15 +12,15 @@ "prepare": "husky" }, "lint-staged": { - "*": [ - "biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true" - ] + "*": ["biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true"] }, "keywords": [], "author": "Solana Foundation", "license": "MIT", "devDependencies": { "@biomejs/biome": "1.8.1", + "@types/chai": "^5.0.1", + "@types/mocha": "^10.0.10", "@types/node": "^20.9.0", "husky": "^9.0.11", "picocolors": "^1.0.0", From 478eee7ad8f74c0198502a27548d789dfbf8602b Mon Sep 17 00:00:00 2001 From: Ayush Date: Sat, 4 Jan 2025 23:10:40 +0530 Subject: [PATCH 02/10] lint fix biome --- .../checking-accounts/poseidon/package.json | 2 +- .../poseidon/tests/checking-accounts.ts | 29 ++- .../ts-programs/src/checkingAccounts.ts | 20 +- .../steel/tests/close-account.test.ts | 2 +- .../steel/ts/instructions/close.ts | 2 +- .../steel/ts/instructions/create.ts | 6 +- .../counter-program/migrations/deploy.ts | 2 +- .../tests/counter-program.test.ts | 45 ++--- .../counter-program/tests/tsconfig.test.json | 17 +- .../ts-programs/src/counter-program.ts | 17 +- .../program/src/instructions/create_pda.rs | 29 +-- .../program/src/instructions/get_pda.rs | 33 ++-- basics/favorites/native/program/src/lib.rs | 5 +- .../favorites/native/program/src/processor.rs | 8 +- basics/favorites/native/program/src/state.rs | 6 +- basics/favorites/native/tests/test.ts | 176 ++++++++++-------- .../hello-solana/migrations/deploy.ts | 4 +- .../poseidon/hello-solana/package.json | 40 ++-- .../hello-solana/tests/bankrun.test.ts | 30 ++- .../poseidon/hello-solana/tests/test.ts | 15 +- .../ts-programs/src/hello-solana.ts | 8 +- .../poseidon/hello-solana/tsconfig.json | 19 +- .../poseidon/tests/transferSol.ts | 31 ++- .../poseidon/ts-programs/src/transferSol.ts | 15 +- .../poseidon/escrow/migrations/deploy.ts | 4 +- tokens/escrow/poseidon/escrow/package.json | 40 ++-- .../poseidon/escrow/tests/bankrun.test.ts | 44 ++--- tokens/escrow/poseidon/escrow/tests/escrow.ts | 36 ++-- .../poseidon/escrow/ts-programs/src/escrow.ts | 49 ++--- tokens/escrow/poseidon/escrow/tsconfig.json | 19 +- tokens/escrow/steel/tests/bankrun.test.ts | 12 +- tokens/escrow/steel/tests/utils.ts | 8 +- .../anchor/package.json | 2 +- .../external-delegate-token-master.test.ts | 36 ++-- .../anchor/tests/types.js | 17 -- .../anchor/tests/types.ts | 16 ++ .../anchor/tsconfig.json | 34 +--- .../ts-programs/src/splTokenMinter.ts | 2 +- .../steel/tests/create_pool_and_swap.test.ts | 4 +- ...reate_pool_and_withdraw_all_liquid.test.ts | 4 +- 40 files changed, 391 insertions(+), 497 deletions(-) delete mode 100644 tokens/external-delegate-token-master/anchor/tests/types.js create mode 100644 tokens/external-delegate-token-master/anchor/tests/types.ts diff --git a/basics/checking-accounts/poseidon/package.json b/basics/checking-accounts/poseidon/package.json index 04daffe1b..b036f2ff6 100644 --- a/basics/checking-accounts/poseidon/package.json +++ b/basics/checking-accounts/poseidon/package.json @@ -1,5 +1,5 @@ { - "license": "ISC", + "license": "ISC", "scripts": { "lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" diff --git a/basics/checking-accounts/poseidon/tests/checking-accounts.ts b/basics/checking-accounts/poseidon/tests/checking-accounts.ts index edb3a27dd..76a6d9daa 100644 --- a/basics/checking-accounts/poseidon/tests/checking-accounts.ts +++ b/basics/checking-accounts/poseidon/tests/checking-accounts.ts @@ -1,16 +1,15 @@ -import * as anchor from "@coral-xyz/anchor"; -import { Program } from "@coral-xyz/anchor"; -import { CheckingAccounts } from "../target/types/checking_accounts"; -import { Keypair, LAMPORTS_PER_SOL, PublicKey } from "@solana/web3.js"; -import { BN } from "bn.js"; +import * as anchor from '@coral-xyz/anchor'; +import { Program } from '@coral-xyz/anchor'; +import { Keypair, LAMPORTS_PER_SOL, PublicKey } from '@solana/web3.js'; +import { BN } from 'bn.js'; +import { CheckingAccounts } from '../target/types/checking_accounts'; -describe("checking-accounts", () => { +describe('checking-accounts', () => { // Configure the client to use the local cluster. const provider = anchor.AnchorProvider.env(); anchor.setProvider(provider); - const program = anchor.workspace - .CheckingAccounts as Program; + const program = anchor.workspace.CheckingAccounts as Program; // Generate new user keypairs for testing const user = Keypair.generate(); @@ -22,10 +21,7 @@ describe("checking-accounts", () => { const latestBlockHash = await provider.connection.getLatestBlockhash(); // Airdrop 1 SOL to the user - const airdropUser = await provider.connection.requestAirdrop( - user.publicKey, - 1 * LAMPORTS_PER_SOL - ); + const airdropUser = await provider.connection.requestAirdrop(user.publicKey, 1 * LAMPORTS_PER_SOL); await provider.connection.confirmTransaction({ blockhash: latestBlockHash.blockhash, lastValidBlockHeight: latestBlockHash.lastValidBlockHeight, @@ -33,13 +29,10 @@ describe("checking-accounts", () => { }); // Derive PDA for the user account - [userAccount, userAccountBump] = await PublicKey.findProgramAddressSync( - [Buffer.from("program")], - program.programId - ); + [userAccount, userAccountBump] = await PublicKey.findProgramAddressSync([Buffer.from('program')], program.programId); }); - it("Initialize User Account", async () => { + it('Initialize User Account', async () => { // Initialize user account instruction invoked from the program await program.methods .initialize(new BN(1)) @@ -51,7 +44,7 @@ describe("checking-accounts", () => { .rpc(); }); - it("Updates the User Account data", async () => { + it('Updates the User Account data', async () => { // Update user account instruction invoked from the program await program.methods .update(new BN(2)) diff --git a/basics/checking-accounts/poseidon/ts-programs/src/checkingAccounts.ts b/basics/checking-accounts/poseidon/ts-programs/src/checkingAccounts.ts index 760d1893e..9252178c5 100644 --- a/basics/checking-accounts/poseidon/ts-programs/src/checkingAccounts.ts +++ b/basics/checking-accounts/poseidon/ts-programs/src/checkingAccounts.ts @@ -1,28 +1,20 @@ -import { - Account, - Pubkey, - type Result, - Signer, - u64, -} from "@solanaturbine/poseidon"; +import { Account, Pubkey, type Result, Signer, u64 } from '@solanaturbine/poseidon'; export default class CheckingAccounts { // Check 1: The program ID check is automatically handled by Anchor - static PROGRAM_ID = new Pubkey( - "8MWRHcfRvyUJpou8nD5oG7DmZ2Bmg99qBP8q5fZ5xJpg" - ); + static PROGRAM_ID = new Pubkey('8MWRHcfRvyUJpou8nD5oG7DmZ2Bmg99qBP8q5fZ5xJpg'); // Initialize user_account Instruction initialize( // ACCOUNTS payer: Signer, // Check: Signer account verification user_account: UserAccountState, - data: u64 + data: u64, ): Result { // CONTEXT // Check 2: Account initialization state is handled by Anchor's init constraint - user_account.derive(["program"]).init(); + user_account.derive(['program']).init(); user_account.user_data = data; user_account.authority = payer.key; @@ -33,13 +25,13 @@ export default class CheckingAccounts { // ACCOUNTS authority: Signer, user_account: UserAccountState, - new_data: u64 + new_data: u64, ): Result { // CONTEXT // Check 3: Ensures PDA matches the expected seeds // Check 4: Validates that the stored authority matches the signer - user_account.derive(["program"]).has([authority]).constraints([]); + user_account.derive(['program']).has([authority]).constraints([]); user_account.user_data = new_data; } diff --git a/basics/close-account/steel/tests/close-account.test.ts b/basics/close-account/steel/tests/close-account.test.ts index 1d622be54..792dd85f1 100644 --- a/basics/close-account/steel/tests/close-account.test.ts +++ b/basics/close-account/steel/tests/close-account.test.ts @@ -1,7 +1,7 @@ import { describe, test } from 'node:test'; import { PublicKey, Transaction } from '@solana/web3.js'; import { start } from 'solana-bankrun'; -import { createCreateUserInstruction, createCloseUserInstruction } from '../ts'; +import { createCloseUserInstruction, createCreateUserInstruction } from '../ts'; describe('Close Account!', async () => { const PROGRAM_ID = new PublicKey('z7msBPQHDJjTvdQRoEcKyENgXDhSRYeHieN1ZMTqo35'); diff --git a/basics/close-account/steel/ts/instructions/close.ts b/basics/close-account/steel/ts/instructions/close.ts index 1864a5e8b..4be2a0d46 100644 --- a/basics/close-account/steel/ts/instructions/close.ts +++ b/basics/close-account/steel/ts/instructions/close.ts @@ -1,6 +1,6 @@ import { Buffer } from 'node:buffer'; import { type PublicKey, SystemProgram, TransactionInstruction } from '@solana/web3.js'; -import { closeAccountSchema, MyInstruction } from '.'; +import { MyInstruction, closeAccountSchema } from '.'; export class Close { instruction: MyInstruction; diff --git a/basics/close-account/steel/ts/instructions/create.ts b/basics/close-account/steel/ts/instructions/create.ts index 98a723d54..fa169313d 100644 --- a/basics/close-account/steel/ts/instructions/create.ts +++ b/basics/close-account/steel/ts/instructions/create.ts @@ -1,10 +1,10 @@ import { Buffer } from 'node:buffer'; import { PublicKey, SystemProgram, TransactionInstruction } from '@solana/web3.js'; -import { closeAccountSchema, MyInstruction } from '.'; +import { MyInstruction, closeAccountSchema } from '.'; export class Create { instruction: MyInstruction; - name: String; + name: string; constructor(props: { instruction: MyInstruction; name: string }) { this.instruction = props.instruction; @@ -13,7 +13,7 @@ export class Create { toBuffer() { const textBuffer = Buffer.alloc(64); - let buffer = Buffer.alloc(1000); + const buffer = Buffer.alloc(1000); textBuffer.write('foobarbaz', 0, 'utf-8'); diff --git a/basics/counter/poseidon/counter-program/migrations/deploy.ts b/basics/counter/poseidon/counter-program/migrations/deploy.ts index cf5b39bf4..64a1c3599 100644 --- a/basics/counter/poseidon/counter-program/migrations/deploy.ts +++ b/basics/counter/poseidon/counter-program/migrations/deploy.ts @@ -2,7 +2,7 @@ // single deploy script that's invoked from the CLI, injecting a provider // configured from the workspace's Anchor.toml. -const anchor = require("@coral-xyz/anchor"); +const anchor = require('@coral-xyz/anchor'); module.exports = async (provider) => { // Configure client to use the provider. diff --git a/basics/counter/poseidon/counter-program/tests/counter-program.test.ts b/basics/counter/poseidon/counter-program/tests/counter-program.test.ts index ab39c31c1..c9cb3b6a3 100644 --- a/basics/counter/poseidon/counter-program/tests/counter-program.test.ts +++ b/basics/counter/poseidon/counter-program/tests/counter-program.test.ts @@ -1,48 +1,39 @@ -import { describe, it } from "node:test"; -import * as anchor from "@coral-xyz/anchor"; -import { Keypair, PublicKey } from "@solana/web3.js"; -import { BankrunProvider } from "anchor-bankrun"; -import { startAnchor } from "solana-bankrun"; -import type { CounterProgram } from "../target/types/counter_program"; -import { expect } from "chai"; +import { describe, it } from 'node:test'; +import * as anchor from '@coral-xyz/anchor'; +import { Keypair, PublicKey } from '@solana/web3.js'; +import { BankrunProvider } from 'anchor-bankrun'; +import { expect } from 'chai'; +import { startAnchor } from 'solana-bankrun'; +import type { CounterProgram } from '../target/types/counter_program'; -const IDL = require("../target/idl/counter_program.json"); +const IDL = require('../target/idl/counter_program.json'); const PROGRAM_ID = new PublicKey(IDL.address); -describe("counter_program", async () => { - const context = await startAnchor( - "", - [{ name: "counter_program", programId: PROGRAM_ID }], - [] - ); +describe('counter_program', async () => { + const context = await startAnchor('', [{ name: 'counter_program', programId: PROGRAM_ID }], []); const provider = new BankrunProvider(context); const payer = provider.wallet as anchor.Wallet; const program = new anchor.Program(IDL, provider); - const [stateAccount, _] = anchor.web3.PublicKey.findProgramAddressSync( - [anchor.utils.bytes.utf8.encode("count")], - program.programId - ); + const [stateAccount, _] = anchor.web3.PublicKey.findProgramAddressSync([anchor.utils.bytes.utf8.encode('count')], program.programId); - it("Initialize the counter", async () => { + it('Initialize the counter', async () => { await program.methods .initialize() .accounts({ state: stateAccount as PublicKey, user: payer.publicKey, }) - .signers([ - { publicKey: payer.publicKey, secretKey: payer.payer.secretKey }, - ]) + .signers([{ publicKey: payer.publicKey, secretKey: payer.payer.secretKey }]) .rpc(); const account = await program.account.counterState.fetch(stateAccount); - console.log("Counter after initialization:", account.count.toString()); + console.log('Counter after initialization:', account.count.toString()); // Expecting the count to be 0 - expect(account.count.toString()).to.equal("0"); + expect(account.count.toString()).to.equal('0'); }); - it("Increment the counter", async () => { + it('Increment the counter', async () => { await program.methods .increment() .accounts({ @@ -51,7 +42,7 @@ describe("counter_program", async () => { .rpc(); const account = await program.account.counterState.fetch(stateAccount); - console.log("Counter after increment:", account.count.toString()); - expect(account.count.toString()).to.equal("1"); + console.log('Counter after increment:', account.count.toString()); + expect(account.count.toString()).to.equal('1'); }); }); diff --git a/basics/counter/poseidon/counter-program/tests/tsconfig.test.json b/basics/counter/poseidon/counter-program/tests/tsconfig.test.json index c92ac9466..cd5d2e3d0 100644 --- a/basics/counter/poseidon/counter-program/tests/tsconfig.test.json +++ b/basics/counter/poseidon/counter-program/tests/tsconfig.test.json @@ -1,11 +1,10 @@ { - "compilerOptions": { - "types": ["mocha", "chai"], - "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], - "module": "commonjs", - "target": "es6", - "esModuleInterop": true - } + "compilerOptions": { + "types": ["mocha", "chai"], + "typeRoots": ["./node_modules/@types"], + "lib": ["es2015"], + "module": "commonjs", + "target": "es6", + "esModuleInterop": true } - \ No newline at end of file +} diff --git a/basics/counter/poseidon/counter-program/ts-programs/src/counter-program.ts b/basics/counter/poseidon/counter-program/ts-programs/src/counter-program.ts index 56e0a8c96..5bb851df7 100644 --- a/basics/counter/poseidon/counter-program/ts-programs/src/counter-program.ts +++ b/basics/counter/poseidon/counter-program/ts-programs/src/counter-program.ts @@ -1,11 +1,4 @@ -import { - Account, - Pubkey, - Result, - u64, - u8, - Signer, -} from "@solanaturbine/poseidon"; +import { Account, Pubkey, Result, Signer, u8, u64 } from '@solanaturbine/poseidon'; // Interface representing the state of the counter export interface CounterState extends Account { @@ -15,20 +8,18 @@ export interface CounterState extends Account { export default class CounterProgram { // The program ID for the CounterProgram - static PROGRAM_ID = new Pubkey( - "DMATyR7jooijeJ2aJYWiyYPf3eoUouumaaLw1JbG3TYF" - ); + static PROGRAM_ID = new Pubkey('DMATyR7jooijeJ2aJYWiyYPf3eoUouumaaLw1JbG3TYF'); // Method to initialize the counter state initialize(state: CounterState, user: Signer): Result { - state.derive(["count"]).init(); // Derive and initialize the count field + state.derive(['count']).init(); // Derive and initialize the count field state.count = new u64(0); // Set the initial count to 0 return { success: true }; // Return a success result } // Method to increment the counter state increment(state: CounterState): Result { - state.derive(["count"]); // Derive the count field + state.derive(['count']); // Derive the count field state.count = state.count.add(1); // Increment the count by 1 return { success: true }; // Return a success result } diff --git a/basics/favorites/native/program/src/instructions/create_pda.rs b/basics/favorites/native/program/src/instructions/create_pda.rs index e1964cd23..5f4733505 100644 --- a/basics/favorites/native/program/src/instructions/create_pda.rs +++ b/basics/favorites/native/program/src/instructions/create_pda.rs @@ -1,29 +1,26 @@ +use crate::state::Favorites; use borsh::BorshSerialize; use solana_program::{ account_info::{next_account_info, AccountInfo}, - pubkey::Pubkey, - program_error::ProgramError, entrypoint::ProgramResult, - system_instruction, msg, program::invoke_signed, + program_error::ProgramError, + pubkey::Pubkey, rent::Rent, - sysvar::Sysvar + system_instruction, + sysvar::Sysvar, }; -use crate::state::Favorites; -pub fn create_pda( - program_id: &Pubkey, - accounts: &[AccountInfo], - data: Favorites -) -> ProgramResult { +pub fn create_pda(program_id: &Pubkey, accounts: &[AccountInfo], data: Favorites) -> ProgramResult { let account_iter = &mut accounts.iter(); let user = next_account_info(account_iter)?; // the user who's signing the transaction let favorite_account = next_account_info(account_iter)?; // The target account that will be created in the process let system_program = next_account_info(account_iter)?; - // deriving the favorite pda - let (favorite_pda, favorite_bump) = Pubkey::find_program_address(&[b"favorite", user.key.as_ref()], program_id); + // deriving the favorite pda + let (favorite_pda, favorite_bump) = + Pubkey::find_program_address(&[b"favorite", user.key.as_ref()], program_id); // Checking if the favorite account is same as the derived favorite pda if favorite_account.key != &favorite_pda { @@ -46,13 +43,17 @@ pub fn create_pda( invoke_signed( &ix, - &[user.clone(), favorite_account.clone(), system_program.clone()], + &[ + user.clone(), + favorite_account.clone(), + system_program.clone(), + ], &[&[b"favorite", user.key.as_ref(), &[favorite_bump]]], )?; // Serialize and store the data data.serialize(&mut &mut favorite_account.data.borrow_mut()[..])?; - msg!("{:#?}",data); + msg!("{:#?}", data); } else { return Err(ProgramError::AccountAlreadyInitialized.into()); } diff --git a/basics/favorites/native/program/src/instructions/get_pda.rs b/basics/favorites/native/program/src/instructions/get_pda.rs index 88f57e4f5..d03d5ff50 100644 --- a/basics/favorites/native/program/src/instructions/get_pda.rs +++ b/basics/favorites/native/program/src/instructions/get_pda.rs @@ -1,32 +1,35 @@ +use crate::state::Favorites; +use borsh::BorshDeserialize; use solana_program::{ + account_info::{next_account_info, AccountInfo}, entrypoint::ProgramResult, - account_info::{ AccountInfo, next_account_info}, msg, + program_error::ProgramError, pubkey::Pubkey, - program_error::ProgramError }; -use borsh::BorshDeserialize; -use crate::state::Favorites; - -pub fn get_pda( - program_id: &Pubkey, - accounts: &[AccountInfo], -) -> ProgramResult { +pub fn get_pda(program_id: &Pubkey, accounts: &[AccountInfo]) -> ProgramResult { let account_iter = &mut accounts.iter(); let user = next_account_info(account_iter)?; let favorite_account = next_account_info(account_iter)?; - // deriving the favorite pda - let (favorite_pda, _) = Pubkey::find_program_address(&[b"favorite", user.key.as_ref()], program_id); + // deriving the favorite pda + let (favorite_pda, _) = + Pubkey::find_program_address(&[b"favorite", user.key.as_ref()], program_id); // Checking if the favorite account is same as the derived favorite pda if favorite_account.key != &favorite_pda { - return Err(ProgramError::IncorrectProgramId); + return Err(ProgramError::IncorrectProgramId); }; - + let favorites = Favorites::try_from_slice(&favorite_account.data.borrow())?; - msg!("User {}'s favorite number is {}, favorite color is: {}, and their hobbies are {:#?}", user.key, favorites.number, favorites.color, favorites.hobbies); + msg!( + "User {}'s favorite number is {}, favorite color is: {}, and their hobbies are {:#?}", + user.key, + favorites.number, + favorites.color, + favorites.hobbies + ); Ok(()) -} \ No newline at end of file +} diff --git a/basics/favorites/native/program/src/lib.rs b/basics/favorites/native/program/src/lib.rs index 740e1d398..2ef9be695 100644 --- a/basics/favorites/native/program/src/lib.rs +++ b/basics/favorites/native/program/src/lib.rs @@ -1,12 +1,9 @@ use solana_program::entrypoint; -pub mod state; pub mod instructions; pub mod processor; +pub mod state; use processor::process_instruction; entrypoint!(process_instruction); - - - diff --git a/basics/favorites/native/program/src/processor.rs b/basics/favorites/native/program/src/processor.rs index 5283427cc..f8439993e 100644 --- a/basics/favorites/native/program/src/processor.rs +++ b/basics/favorites/native/program/src/processor.rs @@ -1,8 +1,4 @@ -use solana_program::{ - account_info::AccountInfo, - entrypoint::ProgramResult, - pubkey::Pubkey, -}; +use solana_program::{account_info::AccountInfo, entrypoint::ProgramResult, pubkey::Pubkey}; use crate::instructions::{create_pda::*, get_pda::*}; use crate::state::Favorites; @@ -23,7 +19,7 @@ pub fn process_instruction( match instruction { FavoritesInstruction::CreatePda(data) => create_pda(program_id, accounts, data), - FavoritesInstruction::GetPda => get_pda(program_id,accounts), + FavoritesInstruction::GetPda => get_pda(program_id, accounts), }?; Ok(()) diff --git a/basics/favorites/native/program/src/state.rs b/basics/favorites/native/program/src/state.rs index 8746f5553..67c5f0407 100644 --- a/basics/favorites/native/program/src/state.rs +++ b/basics/favorites/native/program/src/state.rs @@ -4,10 +4,8 @@ use borsh::{BorshDeserialize, BorshSerialize}; pub struct Favorites { pub number: u64, pub color: String, - pub hobbies: Vec + pub hobbies: Vec, } #[derive(BorshDeserialize, BorshSerialize)] -pub struct GetFavorites { -} - +pub struct GetFavorites {} diff --git a/basics/favorites/native/tests/test.ts b/basics/favorites/native/tests/test.ts index bb0d33b5c..f83e8fac6 100644 --- a/basics/favorites/native/tests/test.ts +++ b/basics/favorites/native/tests/test.ts @@ -1,9 +1,9 @@ -import { describe, test } from 'mocha'; -import { assert, expect } from 'chai'; import { Blockhash, Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction } from '@solana/web3.js'; -import { BanksClient, ProgramTestContext, Rent, start , } from 'solana-bankrun'; import { BN } from 'bn.js'; -import * as borsh from "borsh" +import * as borsh from 'borsh'; +import { assert, expect } from 'chai'; +import { describe, test } from 'mocha'; +import { BanksClient, ProgramTestContext, Rent, start } from 'solana-bankrun'; // This is a helper class to assign properties to the class class Assignable { @@ -20,7 +20,6 @@ enum MyInstruction { } class CreateFav extends Assignable { - number: number; instruction: MyInstruction; color: string; @@ -31,30 +30,34 @@ class CreateFav extends Assignable { } static fromBuffer(buffer: Buffer): CreateFav { - return borsh.deserialize({ - struct: { - number: "u64", - color: "string", - hobbies: { - array: { - type: "string" - } - } - }}, buffer) as CreateFav; + return borsh.deserialize( + { + struct: { + number: 'u64', + color: 'string', + hobbies: { + array: { + type: 'string', + }, + }, + }, + }, + buffer, + ) as CreateFav; } } const CreateNewAccountSchema = { - "struct": { - instruction: "u8", - number: "u64", - color: "string", + struct: { + instruction: 'u8', + number: 'u64', + color: 'string', hobbies: { array: { - type: "string" - } - } - } -} + type: 'string', + }, + }, + }, +}; class GetFav extends Assignable { toBuffer() { @@ -62,35 +65,39 @@ class GetFav extends Assignable { } } const GetFavSchema = { - "struct": { - instruction: "u8" - } -} + struct: { + instruction: 'u8', + }, +}; + +describe('Favorites Solana Native', () => { + // Randomly generate the program keypair and load the program to solana-bankrun + const programId = PublicKey.unique(); + + let context: ProgramTestContext; + let client: BanksClient; + let payer: Keypair; + let blockhash: Blockhash; + + beforeEach(async () => { + context = await start([{ name: 'favorites_native', programId }], []); + client = context.banksClient; + // Get the payer keypair from the context, this will be used to sign transactions with enough lamports + payer = context.payer; + blockhash = context.lastBlockhash; + }); -describe('Favorites Solana Native', () => { - -// Randomly generate the program keypair and load the program to solana-bankrun -const programId = PublicKey.unique(); - -let context: ProgramTestContext, client:BanksClient, payer: Keypair, blockhash: Blockhash; -beforeEach(async () => { - context = await start([{ name: 'favorites_native', programId }], []); - client = context.banksClient; - // Get the payer keypair from the context, this will be used to sign transactions with enough lamports - payer = context.payer; - blockhash = context.lastBlockhash; -}) - -test('Set the favorite pda and cross-check the updated data', async () => { - const favoritesPda = PublicKey.findProgramAddressSync([Buffer.from("favorite"), payer.publicKey.toBuffer()], programId)[0]; - const favData = {instruction: MyInstruction.CreateFav, number: 42, color: "blue", hobbies: ["coding", "reading", "traveling"]} + test('Set the favorite pda and cross-check the updated data', async () => { + const favoritesPda = PublicKey.findProgramAddressSync([Buffer.from('favorite'), payer.publicKey.toBuffer()], programId)[0]; + const favData = { instruction: MyInstruction.CreateFav, number: 42, color: 'blue', hobbies: ['coding', 'reading', 'traveling'] }; const favorites = new CreateFav(favData); const ix = new TransactionInstruction({ keys: [ - {pubkey: payer.publicKey, isSigner: true, isWritable: true}, - {pubkey: favoritesPda, isSigner: false, isWritable: true}, - {pubkey: SystemProgram.programId, isSigner: false, isWritable: false}], + { pubkey: payer.publicKey, isSigner: true, isWritable: true }, + { pubkey: favoritesPda, isSigner: false, isWritable: true }, + { pubkey: SystemProgram.programId, isSigner: false, isWritable: false }, + ], programId, data: favorites.toBuffer(), }); @@ -98,8 +105,8 @@ test('Set the favorite pda and cross-check the updated data', async () => { const tx = new Transaction().add(ix); tx.feePayer = payer.publicKey; - tx.recentBlockhash = blockhash - tx.sign(payer) + tx.recentBlockhash = blockhash; + tx.sign(payer); tx.recentBlockhash = blockhash; await client.processTransaction(tx); @@ -108,21 +115,25 @@ test('Set the favorite pda and cross-check the updated data', async () => { const favoritesData = CreateFav.fromBuffer(data); - console.log("Deserialized data:", favoritesData); + console.log('Deserialized data:', favoritesData); expect(new BN(favoritesData.number as any, 'le').toNumber()).to.equal(favData.number); expect(favoritesData.color).to.equal(favData.color); expect(favoritesData.hobbies).to.deep.equal(favData.hobbies); }); - test('Check if the test fails if the pda seeds aren\'t same', async () => { + test("Check if the test fails if the pda seeds aren't same", async () => { // We put the wrong seeds knowingly to see if the test fails because of checks - const favoritesPda = PublicKey.findProgramAddressSync([Buffer.from("favorite"), payer.publicKey.toBuffer()], programId)[0]; - const favData = {instruction: MyInstruction.CreateFav, number: 42, color: "blue", hobbies: ["coding", "reading", "traveling"]} + const favoritesPda = PublicKey.findProgramAddressSync([Buffer.from('favorite'), payer.publicKey.toBuffer()], programId)[0]; + const favData = { instruction: MyInstruction.CreateFav, number: 42, color: 'blue', hobbies: ['coding', 'reading', 'traveling'] }; const favorites = new CreateFav(favData); const ix = new TransactionInstruction({ - keys: [{pubkey: payer.publicKey, isSigner: true, isWritable: true}, {pubkey: favoritesPda, isSigner: false, isWritable: true}, {pubkey: SystemProgram.programId, isSigner: false, isWritable: false}], + keys: [ + { pubkey: payer.publicKey, isSigner: true, isWritable: true }, + { pubkey: favoritesPda, isSigner: false, isWritable: true }, + { pubkey: SystemProgram.programId, isSigner: false, isWritable: false }, + ], programId, data: favorites.toBuffer(), }); @@ -130,57 +141,60 @@ test('Set the favorite pda and cross-check the updated data', async () => { const tx = new Transaction().add(ix); tx.feePayer = payer.publicKey; - tx.recentBlockhash = blockhash - tx.sign(payer) + tx.recentBlockhash = blockhash; + tx.sign(payer); tx.recentBlockhash = blockhash; try { - await client.processTransaction(tx) - console.error("Expected the test to fail") - } catch(err) { - assert(true) + await client.processTransaction(tx); + console.error('Expected the test to fail'); + } catch (err) { + assert(true); } }); test('Get the favorite pda and cross-check the data', async () => { // Creating a new account with payer's pubkey - const favoritesPda = PublicKey.findProgramAddressSync([Buffer.from("favorite"), payer.publicKey.toBuffer()], programId)[0]; - const favData = {instruction: MyInstruction.CreateFav, number: 42, color: "hazel", hobbies: ["singing", "dancing", "skydiving"]} + const favoritesPda = PublicKey.findProgramAddressSync([Buffer.from('favorite'), payer.publicKey.toBuffer()], programId)[0]; + const favData = { instruction: MyInstruction.CreateFav, number: 42, color: 'hazel', hobbies: ['singing', 'dancing', 'skydiving'] }; const favorites = new CreateFav(favData); - + const ix = new TransactionInstruction({ keys: [ - {pubkey: payer.publicKey, isSigner: true, isWritable: true}, - {pubkey: favoritesPda, isSigner: false, isWritable: true}, - {pubkey: SystemProgram.programId, isSigner: false, isWritable: false}], + { pubkey: payer.publicKey, isSigner: true, isWritable: true }, + { pubkey: favoritesPda, isSigner: false, isWritable: true }, + { pubkey: SystemProgram.programId, isSigner: false, isWritable: false }, + ], programId, data: favorites.toBuffer(), }); const tx1 = new Transaction().add(ix); - + tx1.feePayer = payer.publicKey; - tx1.recentBlockhash = blockhash - tx1.sign(payer) tx1.recentBlockhash = blockhash; - await client.processTransaction(tx1) - + tx1.sign(payer); + tx1.recentBlockhash = blockhash; + await client.processTransaction(tx1); // Getting the user's data through the get_pda instruction - const getfavData = {instruction: MyInstruction.GetFav} + const getfavData = { instruction: MyInstruction.GetFav }; const getfavorites = new GetFav(getfavData); - + const ix2 = new TransactionInstruction({ - keys: [{pubkey: payer.publicKey, isSigner: true, isWritable: true}, {pubkey: favoritesPda, isSigner: false, isWritable: false}], + keys: [ + { pubkey: payer.publicKey, isSigner: true, isWritable: true }, + { pubkey: favoritesPda, isSigner: false, isWritable: false }, + ], programId, - data:getfavorites.toBuffer(), - }); + data: getfavorites.toBuffer(), + }); const tx = new Transaction().add(ix2); tx.feePayer = payer.publicKey; - tx.recentBlockhash = blockhash - tx.sign(payer) + tx.recentBlockhash = blockhash; + tx.sign(payer); tx.recentBlockhash = blockhash; await client.processTransaction(tx); - }) -}) \ No newline at end of file + }); +}); diff --git a/basics/hello-solana/poseidon/hello-solana/migrations/deploy.ts b/basics/hello-solana/poseidon/hello-solana/migrations/deploy.ts index 82fb175fa..64a1c3599 100644 --- a/basics/hello-solana/poseidon/hello-solana/migrations/deploy.ts +++ b/basics/hello-solana/poseidon/hello-solana/migrations/deploy.ts @@ -2,9 +2,9 @@ // single deploy script that's invoked from the CLI, injecting a provider // configured from the workspace's Anchor.toml. -const anchor = require("@coral-xyz/anchor"); +const anchor = require('@coral-xyz/anchor'); -module.exports = async function (provider) { +module.exports = async (provider) => { // Configure client to use the provider. anchor.setProvider(provider); diff --git a/basics/hello-solana/poseidon/hello-solana/package.json b/basics/hello-solana/poseidon/hello-solana/package.json index 51966f615..5cd573cdb 100644 --- a/basics/hello-solana/poseidon/hello-solana/package.json +++ b/basics/hello-solana/poseidon/hello-solana/package.json @@ -1,22 +1,22 @@ { - "scripts": { - "lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", - "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" - }, - "dependencies": { - "@coral-xyz/anchor": "^0.29.0", - "@solanaturbine/poseidon": "^0.0.4", - "anchor-bankrun": "^0.5.0", - "solana-bankrun": "^0.4.0" - }, - "devDependencies": { - "@types/bn.js": "^5.1.0", - "@types/chai": "^4.3.0", - "@types/mocha": "^9.0.0", - "chai": "^4.3.4", - "mocha": "^9.0.3", - "prettier": "^2.6.2", - "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" - } + "scripts": { + "lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", + "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" + }, + "dependencies": { + "@coral-xyz/anchor": "^0.29.0", + "@solanaturbine/poseidon": "^0.0.4", + "anchor-bankrun": "^0.5.0", + "solana-bankrun": "^0.4.0" + }, + "devDependencies": { + "@types/bn.js": "^5.1.0", + "@types/chai": "^4.3.0", + "@types/mocha": "^9.0.0", + "chai": "^4.3.4", + "mocha": "^9.0.3", + "prettier": "^2.6.2", + "ts-mocha": "^10.0.0", + "typescript": "^4.3.5" + } } diff --git a/basics/hello-solana/poseidon/hello-solana/tests/bankrun.test.ts b/basics/hello-solana/poseidon/hello-solana/tests/bankrun.test.ts index e37329552..5503bdaf8 100644 --- a/basics/hello-solana/poseidon/hello-solana/tests/bankrun.test.ts +++ b/basics/hello-solana/poseidon/hello-solana/tests/bankrun.test.ts @@ -1,32 +1,24 @@ -import * as anchor from "@coral-xyz/anchor"; -import { PublicKey } from "@solana/web3.js"; -import { BankrunProvider } from "anchor-bankrun"; -import { assert } from "chai"; -import { startAnchor } from "solana-bankrun"; -import { HelloSolanaProgram } from "../target/types/hello_solana_program"; // Assuming this path +import * as anchor from '@coral-xyz/anchor'; +import { PublicKey } from '@solana/web3.js'; +import { BankrunProvider } from 'anchor-bankrun'; +import { assert } from 'chai'; +import { startAnchor } from 'solana-bankrun'; +import { HelloSolanaProgram } from '../target/types/hello_solana_program'; // Assuming this path -const IDL = require("../target/idl/hello_solana_program.json"); +const IDL = require('../target/idl/hello_solana_program.json'); const PROGRAM_ID = new PublicKey(IDL.metadata.address); -describe("hello_solana_program (Bankrun)", async () => { - const context = await startAnchor( - "", - [{ name: "hello_solana_program", programId: PROGRAM_ID }], - [] - ); +describe('hello_solana_program (Bankrun)', async () => { + const context = await startAnchor('', [{ name: 'hello_solana_program', programId: PROGRAM_ID }], []); const provider = new BankrunProvider(context); - const program = new anchor.Program( - IDL, - PROGRAM_ID, - provider - ); + const program = new anchor.Program(IDL, PROGRAM_ID, provider); it("Executes 'hello' successfully", async () => { const tx = await program.methods.hello().rpc(); // Chai assert to ensure no error occurred and transaction completed successfully - assert.isOk(tx, "Transaction should complete without errors"); + assert.isOk(tx, 'Transaction should complete without errors'); }); }); diff --git a/basics/hello-solana/poseidon/hello-solana/tests/test.ts b/basics/hello-solana/poseidon/hello-solana/tests/test.ts index 787b22cc8..3cc3cca9c 100644 --- a/basics/hello-solana/poseidon/hello-solana/tests/test.ts +++ b/basics/hello-solana/poseidon/hello-solana/tests/test.ts @@ -1,20 +1,19 @@ -import * as anchor from "@coral-xyz/anchor"; -import { Program } from "@coral-xyz/anchor"; -import { assert } from "chai"; -import { HelloSolanaProgram } from "../target/types/hello_solana_program"; // Assuming this path +import * as anchor from '@coral-xyz/anchor'; +import { Program } from '@coral-xyz/anchor'; +import { assert } from 'chai'; +import { HelloSolanaProgram } from '../target/types/hello_solana_program'; // Assuming this path -describe("hello_solana_program", () => { +describe('hello_solana_program', () => { // Configure the client to use the local cluster. const provider = anchor.AnchorProvider.env(); anchor.setProvider(provider); - const program = anchor.workspace - .HelloSolanaProgram as Program; + const program = anchor.workspace.HelloSolanaProgram as Program; it("Executes 'hello' successfully", async () => { const tx = await program.methods.hello().rpc(); // Chai assert to ensure no error occurred and transaction completed successfully - assert.isOk(tx, "Transaction should complete without errors"); + assert.isOk(tx, 'Transaction should complete without errors'); }); }); diff --git a/basics/hello-solana/poseidon/hello-solana/ts-programs/src/hello-solana.ts b/basics/hello-solana/poseidon/hello-solana/ts-programs/src/hello-solana.ts index a5afab556..fd36585b7 100644 --- a/basics/hello-solana/poseidon/hello-solana/ts-programs/src/hello-solana.ts +++ b/basics/hello-solana/poseidon/hello-solana/ts-programs/src/hello-solana.ts @@ -1,12 +1,10 @@ -import { Pubkey, Result } from "@solanaturbine/poseidon"; +import { Pubkey, Result } from '@solanaturbine/poseidon'; export default class HelloSolanaProgram { - static PROGRAM_ID = new Pubkey( - "2phbC62wekpw95XuBk4i1KX4uA8zBUWmYbiTMhicSuBV" - ); + static PROGRAM_ID = new Pubkey('2phbC62wekpw95XuBk4i1KX4uA8zBUWmYbiTMhicSuBV'); hello(): Result { - console.log("Hello, Solana!"); + console.log('Hello, Solana!'); console.log(`Our program's Program ID: ${HelloSolanaProgram.PROGRAM_ID}`); } diff --git a/basics/hello-solana/poseidon/hello-solana/tsconfig.json b/basics/hello-solana/poseidon/hello-solana/tsconfig.json index 558b83e5e..cd5d2e3d0 100644 --- a/basics/hello-solana/poseidon/hello-solana/tsconfig.json +++ b/basics/hello-solana/poseidon/hello-solana/tsconfig.json @@ -1,11 +1,10 @@ { - "compilerOptions": { - "types": ["mocha", "chai"], - "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], - "module": "commonjs", - "target": "es6", - "esModuleInterop": true - } - } - \ No newline at end of file + "compilerOptions": { + "types": ["mocha", "chai"], + "typeRoots": ["./node_modules/@types"], + "lib": ["es2015"], + "module": "commonjs", + "target": "es6", + "esModuleInterop": true + } +} diff --git a/basics/transfer-sol/poseidon/tests/transferSol.ts b/basics/transfer-sol/poseidon/tests/transferSol.ts index c65db9d6a..a83a9f4c7 100644 --- a/basics/transfer-sol/poseidon/tests/transferSol.ts +++ b/basics/transfer-sol/poseidon/tests/transferSol.ts @@ -1,8 +1,8 @@ -import * as anchor from "@coral-xyz/anchor"; -import { Program } from "@coral-xyz/anchor"; -import { TransferSol } from "../target/types/transfer_sol"; -import { Keypair, LAMPORTS_PER_SOL, PublicKey } from "@solana/web3.js"; -describe("transfer-sol", () => { +import * as anchor from '@coral-xyz/anchor'; +import { Program } from '@coral-xyz/anchor'; +import { Keypair, LAMPORTS_PER_SOL, PublicKey } from '@solana/web3.js'; +import { TransferSol } from '../target/types/transfer_sol'; +describe('transfer-sol', () => { // Configure the client to use the local cluster. const provider = anchor.AnchorProvider.env(); anchor.setProvider(provider); @@ -15,18 +15,15 @@ describe("transfer-sol", () => { before(async () => { const latestBlockHash = await provider.connection.getLatestBlockhash(); // Airdrop 5 SOL to the user that will send SOL to the other user - const airdropUser = await provider.connection.requestAirdrop( - user.publicKey, - 5 * LAMPORTS_PER_SOL - ); + const airdropUser = await provider.connection.requestAirdrop(user.publicKey, 5 * LAMPORTS_PER_SOL); await provider.connection.confirmTransaction({ blockhash: latestBlockHash.blockhash, lastValidBlockHeight: latestBlockHash.lastValidBlockHeight, signature: airdropUser, }); }); - it("Transfer SOL with CPI", async () => { - await getBalances(user.publicKey, receiver.publicKey, "\n Beginning"); + it('Transfer SOL with CPI', async () => { + await getBalances(user.publicKey, receiver.publicKey, '\n Beginning'); // Transfer SOL instruction invoked from the program await program.methods .transferSolWithCpi(new anchor.BN(transferAmount)) @@ -36,18 +33,12 @@ describe("transfer-sol", () => { }) .signers([user]) .rpc(); - await getBalances(user.publicKey, receiver.publicKey, "\n Resulting"); + await getBalances(user.publicKey, receiver.publicKey, '\n Resulting'); }); // Helper function to display balance of the accounts - async function getBalances( - payerPubkey: PublicKey, - recipientPubkey: PublicKey, - timeframe: string - ) { + async function getBalances(payerPubkey: PublicKey, recipientPubkey: PublicKey, timeframe: string) { const payerBalance = await provider.connection.getBalance(payerPubkey); - const recipientBalance = await provider.connection.getBalance( - recipientPubkey - ); + const recipientBalance = await provider.connection.getBalance(recipientPubkey); console.log(`${timeframe} balances:`); console.log(` Payer: ${payerBalance / LAMPORTS_PER_SOL}`); console.log(` Recipient: ${recipientBalance / LAMPORTS_PER_SOL}`); diff --git a/basics/transfer-sol/poseidon/ts-programs/src/transferSol.ts b/basics/transfer-sol/poseidon/ts-programs/src/transferSol.ts index 68f215588..36ea3a3c0 100644 --- a/basics/transfer-sol/poseidon/ts-programs/src/transferSol.ts +++ b/basics/transfer-sol/poseidon/ts-programs/src/transferSol.ts @@ -1,22 +1,13 @@ -import { - Pubkey, - SystemAccount, - Signer, - SystemProgram, - u64, - type Result, -} from "@solanaturbine/poseidon"; +import { Pubkey, type Result, Signer, SystemAccount, SystemProgram, u64 } from '@solanaturbine/poseidon'; export default class TransferSol { - static PROGRAM_ID = new Pubkey( - "BLiyCbPDx54vqpNPQG6A7YAqEM1vRHiFfvReMKC4FFk5" - ); + static PROGRAM_ID = new Pubkey('BLiyCbPDx54vqpNPQG6A7YAqEM1vRHiFfvReMKC4FFk5'); // Transferring of SOL using CPI transferSolWithCPI( payer: Signer, // sender of the SOL recipient: SystemAccount, // receiver of transferred SOL - amount: u64 // amount to be transferred + amount: u64, // amount to be transferred ): Result { // Invoke the SystemProgram's Transfer instruction // Parameters: from, to, amount diff --git a/tokens/escrow/poseidon/escrow/migrations/deploy.ts b/tokens/escrow/poseidon/escrow/migrations/deploy.ts index 82fb175fa..64a1c3599 100644 --- a/tokens/escrow/poseidon/escrow/migrations/deploy.ts +++ b/tokens/escrow/poseidon/escrow/migrations/deploy.ts @@ -2,9 +2,9 @@ // single deploy script that's invoked from the CLI, injecting a provider // configured from the workspace's Anchor.toml. -const anchor = require("@coral-xyz/anchor"); +const anchor = require('@coral-xyz/anchor'); -module.exports = async function (provider) { +module.exports = async (provider) => { // Configure client to use the provider. anchor.setProvider(provider); diff --git a/tokens/escrow/poseidon/escrow/package.json b/tokens/escrow/poseidon/escrow/package.json index 51966f615..5cd573cdb 100644 --- a/tokens/escrow/poseidon/escrow/package.json +++ b/tokens/escrow/poseidon/escrow/package.json @@ -1,22 +1,22 @@ { - "scripts": { - "lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", - "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" - }, - "dependencies": { - "@coral-xyz/anchor": "^0.29.0", - "@solanaturbine/poseidon": "^0.0.4", - "anchor-bankrun": "^0.5.0", - "solana-bankrun": "^0.4.0" - }, - "devDependencies": { - "@types/bn.js": "^5.1.0", - "@types/chai": "^4.3.0", - "@types/mocha": "^9.0.0", - "chai": "^4.3.4", - "mocha": "^9.0.3", - "prettier": "^2.6.2", - "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" - } + "scripts": { + "lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", + "lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" + }, + "dependencies": { + "@coral-xyz/anchor": "^0.29.0", + "@solanaturbine/poseidon": "^0.0.4", + "anchor-bankrun": "^0.5.0", + "solana-bankrun": "^0.4.0" + }, + "devDependencies": { + "@types/bn.js": "^5.1.0", + "@types/chai": "^4.3.0", + "@types/mocha": "^9.0.0", + "chai": "^4.3.4", + "mocha": "^9.0.3", + "prettier": "^2.6.2", + "ts-mocha": "^10.0.0", + "typescript": "^4.3.5" + } } diff --git a/tokens/escrow/poseidon/escrow/tests/bankrun.test.ts b/tokens/escrow/poseidon/escrow/tests/bankrun.test.ts index a9986721b..63b8025e9 100644 --- a/tokens/escrow/poseidon/escrow/tests/bankrun.test.ts +++ b/tokens/escrow/poseidon/escrow/tests/bankrun.test.ts @@ -1,19 +1,16 @@ -import * as anchor from "@coral-xyz/anchor"; -import { PublicKey, Keypair, SystemProgram } from "@solana/web3.js"; -import { BankrunProvider } from "anchor-bankrun"; -import { assert } from "chai"; -import { startAnchor } from "solana-bankrun"; -import { EscrowProgram } from "../target/types/escrow_program"; +import { describe, it } from 'node:test'; +import * as anchor from '@coral-xyz/anchor'; +import { Keypair, PublicKey, SystemProgram } from '@solana/web3.js'; +import { BankrunProvider } from 'anchor-bankrun'; +import { assert } from 'chai'; +import { startAnchor } from 'solana-bankrun'; +import { EscrowProgram } from '../target/types/escrow_program'; -const IDL = require("../target/idl/escrow_program.json"); +const IDL = require('../target/idl/escrow_program.json'); const PROGRAM_ID = new PublicKey(IDL.address); -describe("escrow_program (Bankrun)", async () => { - const context = await startAnchor( - "", - [{ name: "escrow_program", programId: PROGRAM_ID }], - [] - ); +describe('escrow_program (Bankrun)', async () => { + const context = await startAnchor('', [{ name: 'escrow_program', programId: PROGRAM_ID }], []); const provider = new BankrunProvider(context); const payer = provider.wallet as anchor.Wallet; @@ -25,9 +22,12 @@ describe("escrow_program (Bankrun)", async () => { const escrowKeypair = new Keypair(); const mint = new Keypair(); // Mint account for SPL tokens - let makerATA, takerATA, escrowVault, escrowState; + let makerATA: PublicKey; + let takerATA: PublicKey; + let escrowVault: PublicKey; + let escrowState: anchor.IdlAccounts['escrowState'] | null; - it("Make Escrow", async () => { + it('Make Escrow', async () => { await program.methods .make(new anchor.BN(100), new anchor.BN(50), new anchor.BN(12345)) // deposit_amount, offer_amount, seed .accounts({ @@ -46,14 +46,12 @@ describe("escrow_program (Bankrun)", async () => { .rpc(); // Fetch and verify the state of the escrow - escrowState = await program.account.escrowState.fetch( - escrowKeypair.publicKey - ); + escrowState = await program.account.escrowState.fetch(escrowKeypair.publicKey); assert.equal(escrowState.maker.toString(), maker.publicKey.toString()); assert.equal(escrowState.amount.toNumber(), 50); }); - it("Refund Escrow", async () => { + it('Refund Escrow', async () => { await program.methods .refund() .accounts({ @@ -68,13 +66,11 @@ describe("escrow_program (Bankrun)", async () => { .rpc(); // Assert that escrow is closed or funds refunded - escrowState = await program.account.escrowState - .fetch(escrowKeypair.publicKey) - .catch(() => null); - assert.isNull(escrowState, "Escrow state should be closed after refund"); + escrowState = await program.account.escrowState.fetch(escrowKeypair.publicKey).catch(() => null); + assert.isNull(escrowState, 'Escrow state should be closed after refund'); }); - it("Take Escrow", async () => { + it('Take Escrow', async () => { await program.methods .take() .accounts({ diff --git a/tokens/escrow/poseidon/escrow/tests/escrow.ts b/tokens/escrow/poseidon/escrow/tests/escrow.ts index a2df589e9..8a15873a0 100644 --- a/tokens/escrow/poseidon/escrow/tests/escrow.ts +++ b/tokens/escrow/poseidon/escrow/tests/escrow.ts @@ -1,10 +1,10 @@ -import * as anchor from "@coral-xyz/anchor"; -import { Program } from "@coral-xyz/anchor"; -import { assert } from "chai"; -import { PublicKey, SystemProgram } from "@solana/web3.js"; -import { EscrowProgram } from "../target/types/escrow_program"; +import * as anchor from '@coral-xyz/anchor'; +import { Program } from '@coral-xyz/anchor'; +import { PublicKey, SystemProgram } from '@solana/web3.js'; +import { assert } from 'chai'; +import { EscrowProgram } from '../target/types/escrow_program'; -describe("escrow_program", () => { +describe('escrow_program', () => { // Configure the client to use the local cluster. const provider = anchor.AnchorProvider.env(); anchor.setProvider(provider); @@ -15,7 +15,7 @@ describe("escrow_program", () => { let vaultAccount: PublicKey; let escrowAccount: PublicKey; - it("Creates a new escrow", async () => { + it('Creates a new escrow', async () => { // Generate a keypair for escrow escrowAccount = anchor.web3.Keypair.generate().publicKey; @@ -43,19 +43,11 @@ describe("escrow_program", () => { // Assert escrow account was created const escrowState = await program.account.escrowState.fetch(escrowAccount); - assert.equal( - escrowState.amount.toString(), - offerAmount.toString(), - "Escrow amount is incorrect" - ); - assert.equal( - escrowState.seed.toString(), - seed.toString(), - "Escrow seed is incorrect" - ); + assert.equal(escrowState.amount.toString(), offerAmount.toString(), 'Escrow amount is incorrect'); + assert.equal(escrowState.seed.toString(), seed.toString(), 'Escrow seed is incorrect'); }); - it("Refunds from the vault", async () => { + it('Refunds from the vault', async () => { await program.methods .refund() .accounts({ @@ -73,13 +65,13 @@ describe("escrow_program", () => { // Assert that the escrow account was closed try { await program.account.escrowState.fetch(escrowAccount); - assert.fail("Escrow account should be closed"); + assert.fail('Escrow account should be closed'); } catch (err) { - assert.ok("Escrow account was closed"); + assert.ok('Escrow account was closed'); } }); - it("Transfers tokens to taker", async () => { + it('Transfers tokens to taker', async () => { const taker = anchor.web3.Keypair.generate(); const takerAta = anchor.web3.Keypair.generate(); const takerReceiveAta = anchor.web3.Keypair.generate(); @@ -102,6 +94,6 @@ describe("escrow_program", () => { // Assert the transfer occurred const escrowState = await program.account.escrowState.fetch(escrowAccount); - assert.isNotNull(escrowState, "Escrow state should be updated"); + assert.isNotNull(escrowState, 'Escrow state should be updated'); }); }); diff --git a/tokens/escrow/poseidon/escrow/ts-programs/src/escrow.ts b/tokens/escrow/poseidon/escrow/ts-programs/src/escrow.ts index a370f76bd..545bad253 100644 --- a/tokens/escrow/poseidon/escrow/ts-programs/src/escrow.ts +++ b/tokens/escrow/poseidon/escrow/ts-programs/src/escrow.ts @@ -9,12 +9,12 @@ import { TokenAccount, TokenProgram, UncheckedAccount, - u64, u8, -} from "@solanaturbine/poseidon"; + u64, +} from '@solanaturbine/poseidon'; export default class EscrowProgram { - static PROGRAM_ID = new Pubkey("11111111111111111111111111111111"); + static PROGRAM_ID = new Pubkey('11111111111111111111111111111111'); make( maker: Signer, @@ -26,18 +26,18 @@ export default class EscrowProgram { vault: TokenAccount, depositAmount: u64, offerAmount: u64, - seed: u64 + seed: u64, ) { makerAta.derive(makerMint, maker.key); - auth.derive(["auth"]); + auth.derive(['auth']); // Here like we mentioned in counter we are deriving a PDA for TokenAccount // .derive([...], , ) - vault.derive(["vault", escrow.key], makerMint, auth.key).init(); + vault.derive(['vault', escrow.key], makerMint, auth.key).init(); // here we can see that we are deriving using seed(u64), so we would do change it to bytes by .toBytes() which makes it consumable for derive - escrow.derive(["escrow", maker.key, seed.toBytes()]).init(); + escrow.derive(['escrow', maker.key, seed.toBytes()]).init(); escrow.authBump = auth.getBump(); escrow.vaultBump = vault.getBump(); @@ -53,33 +53,20 @@ export default class EscrowProgram { makerAta, // from vault, // to maker, // authority - depositAmount // amount to transfered + depositAmount, // amount to transfered ); } - refund( - maker: Signer, - makerAta: AssociatedTokenAccount, - makerMint: Mint, - auth: UncheckedAccount, - vault: TokenAccount, - escrow: EscrowState - ) { + refund(maker: Signer, makerAta: AssociatedTokenAccount, makerMint: Mint, auth: UncheckedAccount, vault: TokenAccount, escrow: EscrowState) { makerAta.derive(makerMint, maker.key); - escrow - .derive(["escrow", maker.key, escrow.seed.toBytes()]) - .has([maker]) - .close(maker); + escrow.derive(['escrow', maker.key, escrow.seed.toBytes()]).has([maker]).close(maker); - auth.derive(["auth"]); + auth.derive(['auth']); - vault.derive(["vault", escrow.key], makerMint, auth.key); + vault.derive(['vault', escrow.key], makerMint, auth.key); // similar to system program transfer, we are using seeds as the last arguement as we are tranfering from a PDA - TokenProgram.transfer(vault, makerAta, auth, escrow.amount, [ - "auth", - escrow.authBump.toBytes(), - ]); + TokenProgram.transfer(vault, makerAta, auth, escrow.amount, ['auth', escrow.authBump.toBytes()]); } take( @@ -92,7 +79,7 @@ export default class EscrowProgram { takerMint: Mint, auth: UncheckedAccount, vault: TokenAccount, - escrow: EscrowState + escrow: EscrowState, ) { // for AssociatedTokenAccount(takerAta) since its associated with a pubkey there is no need to pass the seeds list. we can just pass the mint and authority // .derive(, ) @@ -103,17 +90,17 @@ export default class EscrowProgram { makerAta.derive(makerMint, maker.key); escrow - .derive(["escrow", maker.key, escrow.seed.toBytes()]) + .derive(['escrow', maker.key, escrow.seed.toBytes()]) .has([maker, makerMint, takerMint]) // has method makes sure that all the pubkeys in the list which is the Custom_Acc(escrow) holds is same as Acc's pubkey in the function(in this case `take`) arguements .close(maker); - auth.derive(["auth"]); + auth.derive(['auth']); - vault.derive(["vault", escrow.key], makerMint, auth.key); + vault.derive(['vault', escrow.key], makerMint, auth.key); TokenProgram.transfer(takerAta, makerAta, taker, escrow.amount); - let seeds: Seeds = ["auth", escrow.authBump.toBytes()]; + const seeds: Seeds = ['auth', escrow.authBump.toBytes()]; TokenProgram.transfer(vault, takerReceiveAta, auth, escrow.amount, seeds); } diff --git a/tokens/escrow/poseidon/escrow/tsconfig.json b/tokens/escrow/poseidon/escrow/tsconfig.json index 558b83e5e..cd5d2e3d0 100644 --- a/tokens/escrow/poseidon/escrow/tsconfig.json +++ b/tokens/escrow/poseidon/escrow/tsconfig.json @@ -1,11 +1,10 @@ { - "compilerOptions": { - "types": ["mocha", "chai"], - "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], - "module": "commonjs", - "target": "es6", - "esModuleInterop": true - } - } - \ No newline at end of file + "compilerOptions": { + "types": ["mocha", "chai"], + "typeRoots": ["./node_modules/@types"], + "lib": ["es2015"], + "module": "commonjs", + "target": "es6", + "esModuleInterop": true + } +} diff --git a/tokens/escrow/steel/tests/bankrun.test.ts b/tokens/escrow/steel/tests/bankrun.test.ts index 9f70a2d7b..6bf30fb79 100644 --- a/tokens/escrow/steel/tests/bankrun.test.ts +++ b/tokens/escrow/steel/tests/bankrun.test.ts @@ -1,8 +1,8 @@ -import { PublicKey, Keypair, SystemProgram, Transaction, TransactionInstruction, LAMPORTS_PER_SOL } from '@solana/web3.js'; -import { ProgramTestContext, BanksClient, start } from 'solana-bankrun'; -import { createAMint, deserializeOfferAccount, encodeBigint, getMakeOfferInstructionData, getTakeOfferInstructionData, mintTo } from './utils'; -import { AccountLayout, ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, TOKEN_PROGRAM_ID } from '@solana/spl-token'; +import { ASSOCIATED_TOKEN_PROGRAM_ID, AccountLayout, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync } from '@solana/spl-token'; +import { Keypair, LAMPORTS_PER_SOL, PublicKey, SystemProgram, Transaction, TransactionInstruction } from '@solana/web3.js'; import { assert } from 'chai'; +import { BanksClient, ProgramTestContext, start } from 'solana-bankrun'; +import { createAMint, deserializeOfferAccount, encodeBigint, getMakeOfferInstructionData, getTakeOfferInstructionData, mintTo } from './utils'; const PROGRAM_ID = new PublicKey('z7msBPQHDJjTvdQRoEcKyENgXDhSRYeHieN1ZMTqo35'); @@ -10,8 +10,8 @@ describe('Escrow Program', () => { let context: ProgramTestContext; let client: BanksClient; let payer: Keypair; - let maker = Keypair.generate(); - let taker = Keypair.generate(); + const maker = Keypair.generate(); + const taker = Keypair.generate(); const mint_a = Keypair.generate(); const mint_b = Keypair.generate(); diff --git a/tokens/escrow/steel/tests/utils.ts b/tokens/escrow/steel/tests/utils.ts index ba7bb42cd..965032fb1 100644 --- a/tokens/escrow/steel/tests/utils.ts +++ b/tokens/escrow/steel/tests/utils.ts @@ -1,14 +1,14 @@ import { MINT_SIZE, TOKEN_PROGRAM_ID, - createInitializeMint2Instruction, - getAssociatedTokenAddressSync, createAssociatedTokenAccountInstruction, + createInitializeMint2Instruction, createMintToInstruction, + getAssociatedTokenAddressSync, } from '@solana/spl-token'; -import { Keypair, Transaction, SystemProgram, PublicKey, LAMPORTS_PER_SOL } from '@solana/web3.js'; -import { ProgramTestContext } from 'solana-bankrun'; +import { Keypair, LAMPORTS_PER_SOL, PublicKey, SystemProgram, Transaction } from '@solana/web3.js'; import * as borsh from 'borsh'; +import { ProgramTestContext } from 'solana-bankrun'; export const instructionDiscriminators = { MakeOffer: Buffer.from([0]), diff --git a/tokens/external-delegate-token-master/anchor/package.json b/tokens/external-delegate-token-master/anchor/package.json index af72a7d63..209a612a3 100644 --- a/tokens/external-delegate-token-master/anchor/package.json +++ b/tokens/external-delegate-token-master/anchor/package.json @@ -31,4 +31,4 @@ "typescript": "^4.9.5", "@testing-library/jest-dom": "^6.1.6" } -} \ No newline at end of file +} diff --git a/tokens/external-delegate-token-master/anchor/tests/external-delegate-token-master.test.ts b/tokens/external-delegate-token-master/anchor/tests/external-delegate-token-master.test.ts index 859d74724..db0b8a988 100644 --- a/tokens/external-delegate-token-master/anchor/tests/external-delegate-token-master.test.ts +++ b/tokens/external-delegate-token-master/anchor/tests/external-delegate-token-master.test.ts @@ -1,7 +1,7 @@ -import { start } from 'solana-bankrun'; -import { expect } from 'chai'; -import { PublicKey, SystemProgram, Keypair, Connection } from '@solana/web3.js'; import { TOKEN_PROGRAM_ID, createMint, getOrCreateAssociatedTokenAccount, mintTo } from '@solana/spl-token'; +import { Connection, Keypair, PublicKey, SystemProgram } from '@solana/web3.js'; +import { expect } from 'chai'; +import { start } from 'solana-bankrun'; jest.setTimeout(30000); // Set timeout to 30 seconds @@ -12,7 +12,7 @@ async function retryWithBackoff(fn: () => Promise, retries = 5, delay = 500 return await fn(); } catch (err) { if (retries === 0) throw err; - await new Promise(resolve => setTimeout(resolve, delay)); + await new Promise((resolve) => setTimeout(resolve, delay)); return retryWithBackoff(fn, retries - 1, delay * 2); } } @@ -34,15 +34,15 @@ describe('External Delegate Token Master Tests', () => { const programs = [ { - name: "external_delegate_token_master", - programId: new PublicKey("FYPkt5VWMvtyWZDMGCwoKFkE3wXTzphicTpnNGuHWVbD"), - program: "target/deploy/external_delegate_token_master.so", + name: 'external_delegate_token_master', + programId: new PublicKey('FYPkt5VWMvtyWZDMGCwoKFkE3wXTzphicTpnNGuHWVbD'), + program: 'target/deploy/external_delegate_token_master.so', }, ]; context = await retryWithBackoff(async () => await start(programs, [])); - const connection = new Connection("https://api.devnet.solana.com", "confirmed"); + const connection = new Connection('https://api.devnet.solana.com', 'confirmed'); context.connection = connection; // Airdrop SOL to authority with retry logic @@ -51,28 +51,24 @@ describe('External Delegate Token Master Tests', () => { }); // Create mint with retry logic - mint = await retryWithBackoff(async () => - await createMint(connection, authority, authority.publicKey, null, 6) - ); + mint = await retryWithBackoff(async () => await createMint(connection, authority, authority.publicKey, null, 6)); - const userTokenAccountInfo = await retryWithBackoff(async () => - await getOrCreateAssociatedTokenAccount(connection, authority, mint, authority.publicKey) + const userTokenAccountInfo = await retryWithBackoff( + async () => await getOrCreateAssociatedTokenAccount(connection, authority, mint, authority.publicKey), ); userTokenAccount = userTokenAccountInfo.address; - const recipientTokenAccountInfo = await retryWithBackoff(async () => - await getOrCreateAssociatedTokenAccount(connection, authority, mint, Keypair.generate().publicKey) + const recipientTokenAccountInfo = await retryWithBackoff( + async () => await getOrCreateAssociatedTokenAccount(connection, authority, mint, Keypair.generate().publicKey), ); recipientTokenAccount = recipientTokenAccountInfo.address; // Mint tokens to the user's account - await retryWithBackoff(async () => - await mintTo(connection, authority, mint, userTokenAccount, authority, 1000000000) - ); + await retryWithBackoff(async () => await mintTo(connection, authority, mint, userTokenAccount, authority, 1000000000)); // Find program-derived address (PDA) - [userPda, bumpSeed] = await retryWithBackoff(async () => - await PublicKey.findProgramAddress([userAccount.publicKey.toBuffer()], context.program.programId) + [userPda, bumpSeed] = await retryWithBackoff( + async () => await PublicKey.findProgramAddress([userAccount.publicKey.toBuffer()], context.program.programId), ); }); diff --git a/tokens/external-delegate-token-master/anchor/tests/types.js b/tokens/external-delegate-token-master/anchor/tests/types.js deleted file mode 100644 index cdbd30999..000000000 --- a/tokens/external-delegate-token-master/anchor/tests/types.js +++ /dev/null @@ -1,17 +0,0 @@ -// tests/types.ts -import { PublicKey } from '@solana/web3.js'; - -export interface ProgramTestContext { - connection: any; - programs: { - programId: PublicKey; - program: string; - }[]; - grantLamports: (address: PublicKey, amount: number) => Promise; - terminate: () => Promise; -} - -export interface UserAccount { - authority: PublicKey; - ethereumAddress: number[]; -} \ No newline at end of file diff --git a/tokens/external-delegate-token-master/anchor/tests/types.ts b/tokens/external-delegate-token-master/anchor/tests/types.ts new file mode 100644 index 000000000..1bd533483 --- /dev/null +++ b/tokens/external-delegate-token-master/anchor/tests/types.ts @@ -0,0 +1,16 @@ +import { PublicKey } from '@solana/web3.js'; + +export interface ProgramTestContext { + connection: any; + programs: { + programId: PublicKey; + program: string; + }[]; + grantLamports: (address: PublicKey, amount: number) => Promise; + terminate: () => Promise; +} + +export interface UserAccount { + authority: PublicKey; + ethereumAddress: number[]; +} diff --git a/tokens/external-delegate-token-master/anchor/tsconfig.json b/tokens/external-delegate-token-master/anchor/tsconfig.json index b5f6880d5..04f68b131 100644 --- a/tokens/external-delegate-token-master/anchor/tsconfig.json +++ b/tokens/external-delegate-token-master/anchor/tsconfig.json @@ -1,19 +1,8 @@ { "compilerOptions": { - "types": [ - "jest", - "node" - ], - "typeRoots": [ - "./node_modules/@types" - ], - "lib": [ - "es2015", - "dom", - "es6", - "es2017", - "esnext.asynciterable" - ], + "types": ["jest", "node"], + "typeRoots": ["./node_modules/@types"], + "lib": ["es2015", "dom", "es6", "es2017", "esnext.asynciterable"], "module": "commonjs", "target": "es6", "esModuleInterop": true, @@ -30,19 +19,10 @@ "forceConsistentCasingInFileNames": true, "baseUrl": ".", "paths": { - "@/*": [ - "src/*" - ] + "@/*": ["src/*"] }, "outDir": "dist" }, - "include": [ - "tests/**/*", - "programs/**/*", - "jest.setup.js", - "jest.config.js" - ], - "exclude": [ - "node_modules" - ] -} \ No newline at end of file + "include": ["tests/**/*", "programs/**/*", "jest.setup.js", "jest.config.js"], + "exclude": ["node_modules"] +} diff --git a/tokens/spl-token-minter/poseidon/ts-programs/src/splTokenMinter.ts b/tokens/spl-token-minter/poseidon/ts-programs/src/splTokenMinter.ts index 47d990598..06e222d91 100644 --- a/tokens/spl-token-minter/poseidon/ts-programs/src/splTokenMinter.ts +++ b/tokens/spl-token-minter/poseidon/ts-programs/src/splTokenMinter.ts @@ -13,7 +13,7 @@ import { AssociatedTokenAccount, Mint, Pubkey, type Result, Signer, TokenProgram // under "to_account" & "mint_account" under "MintContext" export default class SplTokenMinter { - static PROGRAM_ID = new Pubkey("HFKNWrbYAfKsrWJu88RtUVHgVBNz1uJ6u2tNx1YCmAMZ"); + static PROGRAM_ID = new Pubkey('HFKNWrbYAfKsrWJu88RtUVHgVBNz1uJ6u2tNx1YCmAMZ'); createToken(mint: Mint, decimals: u8, payer: Signer, freezeAuthority: Pubkey): Result { mint.initIfNeeded(); diff --git a/tokens/token-swap/steel/tests/create_pool_and_swap.test.ts b/tokens/token-swap/steel/tests/create_pool_and_swap.test.ts index 94f9a432d..1e7bc7a91 100644 --- a/tokens/token-swap/steel/tests/create_pool_and_swap.test.ts +++ b/tokens/token-swap/steel/tests/create_pool_and_swap.test.ts @@ -1,5 +1,5 @@ -import { Connection, Keypair, PublicKey, SystemProgram, SYSVAR_RENT_PUBKEY, Transaction, TransactionInstruction } from '@solana/web3.js'; -import { AccountLayout, ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, MintLayout, TOKEN_PROGRAM_ID } from '@solana/spl-token'; +import { ASSOCIATED_TOKEN_PROGRAM_ID, AccountLayout, MintLayout, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync } from '@solana/spl-token'; +import { Connection, Keypair, PublicKey, SYSVAR_RENT_PUBKEY, SystemProgram, Transaction, TransactionInstruction } from '@solana/web3.js'; import { assert } from 'chai'; import { describe, it } from 'mocha'; import { BanksClient, ProgramTestContext, start } from 'solana-bankrun'; diff --git a/tokens/token-swap/steel/tests/create_pool_and_withdraw_all_liquid.test.ts b/tokens/token-swap/steel/tests/create_pool_and_withdraw_all_liquid.test.ts index f22868e9c..b241e0c10 100644 --- a/tokens/token-swap/steel/tests/create_pool_and_withdraw_all_liquid.test.ts +++ b/tokens/token-swap/steel/tests/create_pool_and_withdraw_all_liquid.test.ts @@ -1,5 +1,5 @@ -import { Connection, Keypair, PublicKey, SystemProgram, SYSVAR_RENT_PUBKEY, Transaction, TransactionInstruction } from '@solana/web3.js'; -import { AccountLayout, ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, MintLayout, TOKEN_PROGRAM_ID } from '@solana/spl-token'; +import { ASSOCIATED_TOKEN_PROGRAM_ID, AccountLayout, MintLayout, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync } from '@solana/spl-token'; +import { Connection, Keypair, PublicKey, SYSVAR_RENT_PUBKEY, SystemProgram, Transaction, TransactionInstruction } from '@solana/web3.js'; import { assert } from 'chai'; import { describe, it } from 'mocha'; import { BanksClient, ProgramTestContext, start } from 'solana-bankrun'; From 1ea8b1408824f87326b64b4df1821d626aa12821 Mon Sep 17 00:00:00 2001 From: Ayush Date: Sat, 4 Jan 2025 23:57:26 +0530 Subject: [PATCH 03/10] restructured poseidon directories --- .github/.ghaignore | 4 ++- .../anchor-program-example/Cargo.toml | 2 +- .../poseidon/{counter-program => }/.gitignore | 0 .../{counter-program => }/.prettierignore | 0 .../{counter-program => }/Anchor.toml | 0 .../poseidon/{counter-program => }/Cargo.toml | 0 .../migrations/deploy.ts | 0 .../{counter-program => }/package.json | 0 .../{counter-program => }/pnpm-lock.yaml | 0 .../programs/counter-program/Cargo.toml | 0 .../programs/counter-program/Xargo.toml | 0 .../programs/counter-program/src/lib.rs | 0 .../tests/counter-program.test.ts | 0 .../tests/tsconfig.test.json | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../ts-programs/src/counter-program.ts | 0 .../{counter-program => }/tsconfig.json | 0 .../{create_system_account => }/.gitignore | 0 .../.prettierignore | 0 .../{create_system_account => }/Anchor.toml | 0 .../{create_system_account => }/Cargo.toml | 0 .../migrations/deploy.ts | 0 .../{create_system_account => }/package.json | 0 .../pnpm-lock.yaml | 0 .../programs/create_system_account/Cargo.toml | 0 .../programs/create_system_account/Xargo.toml | 0 .../programs/create_system_account/src/lib.rs | 0 .../tests/bankrun.test.ts | 0 .../tests/create_system_account.ts | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../ts-programs/src/create_system_account.ts | 0 .../{create_system_account => }/tsconfig.json | 0 .../poseidon/{pda_rent_payer => }/.gitignore | 0 .../{pda_rent_payer => }/.prettierignore | 0 .../poseidon/{pda_rent_payer => }/Anchor.toml | 0 .../poseidon/{pda_rent_payer => }/Cargo.toml | 0 .../{pda_rent_payer => }/migrations/deploy.ts | 0 .../{pda_rent_payer => }/package.json | 0 .../{pda_rent_payer => }/pnpm-lock.yaml | 0 .../programs/pda_rent_payer/Cargo.toml | 0 .../programs/pda_rent_payer/Xargo.toml | 0 .../programs/pda_rent_payer/src/lib.rs | 0 .../tests/bankrun.test.ts | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../ts-programs/src/pda_rent_payer.ts | 0 .../{pda_rent_payer => }/tsconfig.json | 0 .../.gitignore | 0 .../.prettierignore | 0 .../Anchor.toml | 0 .../Cargo.toml | 0 .../migrations/deploy.ts | 0 .../package.json | 0 .../pnpm-lock.yaml | 0 .../Cargo.toml | 0 .../Xargo.toml | 0 .../src/lib.rs | 0 .../tests/bankrun.test.ts | 0 .../tests/processing-instructions-program.ts | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../src/processingInstructionsProgram.ts | 0 .../tsconfig.json | 0 .../poseidon/{realloc-program => }/.gitignore | 0 .../{realloc-program => }/.prettierignore | 0 .../{realloc-program => }/Anchor.toml | 0 .../poseidon/{realloc-program => }/Cargo.toml | 0 .../migrations/deploy.ts | 0 .../{realloc-program => }/package.json | 0 .../{realloc-program => }/pnpm-lock.yaml | 0 .../programs/realloc-program/Cargo.toml | 0 .../programs/realloc-program/Xargo.toml | 0 .../programs/realloc-program/src/lib.rs | 0 .../tests/bankrun.test.ts | 0 .../tests/realloc-program.ts | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../ts-programs/src/reallocProgram.ts | 0 .../{realloc-program => }/tsconfig.json | 0 .../poseidon/{rent_program => }/.gitignore | 0 .../{rent_program => }/.prettierignore | 0 .../poseidon/{rent_program => }/Anchor.toml | 0 .../poseidon/{rent_program => }/Cargo.toml | 0 .../{rent_program => }/migrations/deploy.ts | 0 .../poseidon/{rent_program => }/package.json | 0 .../{rent_program => }/pnpm-lock.yaml | 0 .../programs/rent_program/Cargo.toml | 0 .../programs/rent_program/Xargo.toml | 0 .../poseidon/programs/rent_program/src/lib.rs | 13 ++++++++ .../programs/rent_program/src/lib.rs | 32 ------------------- .../{rent_program => }/tests/bankrun.test.ts | 0 .../{rent_program => }/tests/rent_program.ts | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../src/rentProgram.ts} | 0 .../poseidon/{rent_program => }/tsconfig.json | 0 .../escrow/anchor/programs/escrow/Cargo.toml | 2 +- .../escrow/poseidon/{escrow => }/.gitignore | 0 .../poseidon/{escrow => }/.prettierignore | 0 .../escrow/poseidon/{escrow => }/Anchor.toml | 0 .../escrow/poseidon/{escrow => }/Cargo.toml | 0 .../{escrow => }/migrations/deploy.ts | 0 .../escrow/poseidon/{escrow => }/package.json | 0 .../poseidon/{escrow => }/pnpm-lock.yaml | 0 .../{escrow => }/programs/escrow/Cargo.toml | 0 .../{escrow => }/programs/escrow/Xargo.toml | 0 .../{escrow => }/programs/escrow/src/lib.rs | 0 .../{escrow => }/tests/bankrun.test.ts | 0 .../poseidon/{escrow => }/tests/escrow.ts | 0 .../{escrow => }/ts-programs/src/escrow.ts | 0 .../poseidon/{escrow => }/tsconfig.json | 0 .../poseidon/{token-minter => }/.gitignore | 0 .../{token-minter => }/.prettierignore | 0 .../poseidon/{token-minter => }/Anchor.toml | 0 .../poseidon/{token-minter => }/Cargo.toml | 0 .../{token-minter => }/migrations/deploy.ts | 0 .../poseidon/{token-minter => }/package.json | 0 .../{token-minter => }/pnpm-lock.yaml | 0 .../programs/token-minter/Cargo.toml | 0 .../programs/token-minter/Xargo.toml | 0 .../programs/token-minter/src/lib.rs | 0 .../{token-minter => }/tests/bankrun.test.ts | 0 .../{token-minter => }/tests/token-minter.ts | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../ts-programs/src/token-minter.ts | 0 .../poseidon/{token-minter => }/tsconfig.json | 0 .../{transfer-tokens-program => }/.gitignore | 0 .../.prettierignore | 0 .../{transfer-tokens-program => }/Anchor.toml | 0 .../{transfer-tokens-program => }/Cargo.toml | 0 .../migrations/deploy.ts | 0 .../package.json | 0 .../pnpm-lock.yaml | 0 .../transfer-tokens-program/Cargo.toml | 0 .../transfer-tokens-program/Xargo.toml | 0 .../transfer-tokens-program/src/lib.rs | 0 .../tests/bankrun.test.ts | 0 .../tests/transfer-tokens-program.ts | 0 .../ts-programs/package.json | 0 .../ts-programs/pnpm-lock.yaml | 0 .../ts-programs/src/transferTokensProgram.ts | 0 .../tsconfig.json | 0 145 files changed, 18 insertions(+), 35 deletions(-) rename basics/counter/poseidon/{counter-program => }/.gitignore (100%) rename basics/counter/poseidon/{counter-program => }/.prettierignore (100%) rename basics/counter/poseidon/{counter-program => }/Anchor.toml (100%) rename basics/counter/poseidon/{counter-program => }/Cargo.toml (100%) rename basics/counter/poseidon/{counter-program => }/migrations/deploy.ts (100%) rename basics/counter/poseidon/{counter-program => }/package.json (100%) rename basics/counter/poseidon/{counter-program => }/pnpm-lock.yaml (100%) rename basics/counter/poseidon/{counter-program => }/programs/counter-program/Cargo.toml (100%) rename basics/counter/poseidon/{counter-program => }/programs/counter-program/Xargo.toml (100%) rename basics/counter/poseidon/{counter-program => }/programs/counter-program/src/lib.rs (100%) rename basics/counter/poseidon/{counter-program => }/tests/counter-program.test.ts (100%) rename basics/counter/poseidon/{counter-program => }/tests/tsconfig.test.json (100%) rename basics/counter/poseidon/{counter-program => }/ts-programs/package.json (100%) rename basics/counter/poseidon/{counter-program => }/ts-programs/pnpm-lock.yaml (100%) rename basics/counter/poseidon/{counter-program => }/ts-programs/src/counter-program.ts (100%) rename basics/counter/poseidon/{counter-program => }/tsconfig.json (100%) rename basics/create-account/poseidon/{create_system_account => }/.gitignore (100%) rename basics/create-account/poseidon/{create_system_account => }/.prettierignore (100%) rename basics/create-account/poseidon/{create_system_account => }/Anchor.toml (100%) rename basics/create-account/poseidon/{create_system_account => }/Cargo.toml (100%) rename basics/create-account/poseidon/{create_system_account => }/migrations/deploy.ts (100%) rename basics/create-account/poseidon/{create_system_account => }/package.json (100%) rename basics/create-account/poseidon/{create_system_account => }/pnpm-lock.yaml (100%) rename basics/create-account/poseidon/{create_system_account => }/programs/create_system_account/Cargo.toml (100%) rename basics/create-account/poseidon/{create_system_account => }/programs/create_system_account/Xargo.toml (100%) rename basics/create-account/poseidon/{create_system_account => }/programs/create_system_account/src/lib.rs (100%) rename basics/create-account/poseidon/{create_system_account => }/tests/bankrun.test.ts (100%) rename basics/create-account/poseidon/{create_system_account => }/tests/create_system_account.ts (100%) rename basics/create-account/poseidon/{create_system_account => }/ts-programs/package.json (100%) rename basics/create-account/poseidon/{create_system_account => }/ts-programs/pnpm-lock.yaml (100%) rename basics/create-account/poseidon/{create_system_account => }/ts-programs/src/create_system_account.ts (100%) rename basics/create-account/poseidon/{create_system_account => }/tsconfig.json (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/.gitignore (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/.prettierignore (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/Anchor.toml (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/Cargo.toml (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/migrations/deploy.ts (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/package.json (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/pnpm-lock.yaml (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/programs/pda_rent_payer/Cargo.toml (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/programs/pda_rent_payer/Xargo.toml (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/programs/pda_rent_payer/src/lib.rs (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/tests/bankrun.test.ts (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/ts-programs/package.json (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/ts-programs/pnpm-lock.yaml (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/ts-programs/src/pda_rent_payer.ts (100%) rename basics/pda-rent-payer/poseidon/{pda_rent_payer => }/tsconfig.json (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/.gitignore (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/.prettierignore (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/Anchor.toml (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/Cargo.toml (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/migrations/deploy.ts (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/package.json (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/pnpm-lock.yaml (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/programs/processing-instructions-program/Cargo.toml (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/programs/processing-instructions-program/Xargo.toml (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/programs/processing-instructions-program/src/lib.rs (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/tests/bankrun.test.ts (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/tests/processing-instructions-program.ts (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/ts-programs/package.json (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/ts-programs/pnpm-lock.yaml (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/ts-programs/src/processingInstructionsProgram.ts (100%) rename basics/processing-instructions/poseidon/{processing-instructions-program => }/tsconfig.json (100%) rename basics/realloc/poseidon/{realloc-program => }/.gitignore (100%) rename basics/realloc/poseidon/{realloc-program => }/.prettierignore (100%) rename basics/realloc/poseidon/{realloc-program => }/Anchor.toml (100%) rename basics/realloc/poseidon/{realloc-program => }/Cargo.toml (100%) rename basics/realloc/poseidon/{realloc-program => }/migrations/deploy.ts (100%) rename basics/realloc/poseidon/{realloc-program => }/package.json (100%) rename basics/realloc/poseidon/{realloc-program => }/pnpm-lock.yaml (100%) rename basics/realloc/poseidon/{realloc-program => }/programs/realloc-program/Cargo.toml (100%) rename basics/realloc/poseidon/{realloc-program => }/programs/realloc-program/Xargo.toml (100%) rename basics/realloc/poseidon/{realloc-program => }/programs/realloc-program/src/lib.rs (100%) rename basics/realloc/poseidon/{realloc-program => }/tests/bankrun.test.ts (100%) rename basics/realloc/poseidon/{realloc-program => }/tests/realloc-program.ts (100%) rename basics/realloc/poseidon/{realloc-program => }/ts-programs/package.json (100%) rename basics/realloc/poseidon/{realloc-program => }/ts-programs/pnpm-lock.yaml (100%) rename basics/realloc/poseidon/{realloc-program => }/ts-programs/src/reallocProgram.ts (100%) rename basics/realloc/poseidon/{realloc-program => }/tsconfig.json (100%) rename basics/rent/poseidon/{rent_program => }/.gitignore (100%) rename basics/rent/poseidon/{rent_program => }/.prettierignore (100%) rename basics/rent/poseidon/{rent_program => }/Anchor.toml (100%) rename basics/rent/poseidon/{rent_program => }/Cargo.toml (100%) rename basics/rent/poseidon/{rent_program => }/migrations/deploy.ts (100%) rename basics/rent/poseidon/{rent_program => }/package.json (100%) rename basics/rent/poseidon/{rent_program => }/pnpm-lock.yaml (100%) rename basics/rent/poseidon/{rent_program => }/programs/rent_program/Cargo.toml (100%) rename basics/rent/poseidon/{rent_program => }/programs/rent_program/Xargo.toml (100%) create mode 100644 basics/rent/poseidon/programs/rent_program/src/lib.rs delete mode 100644 basics/rent/poseidon/rent_program/programs/rent_program/src/lib.rs rename basics/rent/poseidon/{rent_program => }/tests/bankrun.test.ts (100%) rename basics/rent/poseidon/{rent_program => }/tests/rent_program.ts (100%) rename basics/rent/poseidon/{rent_program => }/ts-programs/package.json (100%) rename basics/rent/poseidon/{rent_program => }/ts-programs/pnpm-lock.yaml (100%) rename basics/rent/poseidon/{rent_program/ts-programs/src/rent_program.ts => ts-programs/src/rentProgram.ts} (100%) rename basics/rent/poseidon/{rent_program => }/tsconfig.json (100%) rename tokens/escrow/poseidon/{escrow => }/.gitignore (100%) rename tokens/escrow/poseidon/{escrow => }/.prettierignore (100%) rename tokens/escrow/poseidon/{escrow => }/Anchor.toml (100%) rename tokens/escrow/poseidon/{escrow => }/Cargo.toml (100%) rename tokens/escrow/poseidon/{escrow => }/migrations/deploy.ts (100%) rename tokens/escrow/poseidon/{escrow => }/package.json (100%) rename tokens/escrow/poseidon/{escrow => }/pnpm-lock.yaml (100%) rename tokens/escrow/poseidon/{escrow => }/programs/escrow/Cargo.toml (100%) rename tokens/escrow/poseidon/{escrow => }/programs/escrow/Xargo.toml (100%) rename tokens/escrow/poseidon/{escrow => }/programs/escrow/src/lib.rs (100%) rename tokens/escrow/poseidon/{escrow => }/tests/bankrun.test.ts (100%) rename tokens/escrow/poseidon/{escrow => }/tests/escrow.ts (100%) rename tokens/escrow/poseidon/{escrow => }/ts-programs/src/escrow.ts (100%) rename tokens/escrow/poseidon/{escrow => }/tsconfig.json (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/.gitignore (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/.prettierignore (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/Anchor.toml (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/Cargo.toml (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/migrations/deploy.ts (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/package.json (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/pnpm-lock.yaml (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/programs/token-minter/Cargo.toml (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/programs/token-minter/Xargo.toml (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/programs/token-minter/src/lib.rs (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/tests/bankrun.test.ts (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/tests/token-minter.ts (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/ts-programs/package.json (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/ts-programs/pnpm-lock.yaml (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/ts-programs/src/token-minter.ts (100%) rename tokens/pda-mint-authority/poseidon/{token-minter => }/tsconfig.json (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/.gitignore (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/.prettierignore (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/Anchor.toml (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/Cargo.toml (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/migrations/deploy.ts (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/package.json (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/pnpm-lock.yaml (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/programs/transfer-tokens-program/Cargo.toml (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/programs/transfer-tokens-program/Xargo.toml (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/programs/transfer-tokens-program/src/lib.rs (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/tests/bankrun.test.ts (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/tests/transfer-tokens-program.ts (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/ts-programs/package.json (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/ts-programs/pnpm-lock.yaml (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/ts-programs/src/transferTokensProgram.ts (100%) rename tokens/transfer-tokens/poseidon/{transfer-tokens-program => }/tsconfig.json (100%) diff --git a/.github/.ghaignore b/.github/.ghaignore index 992c7d5ee..54db23fd6 100644 --- a/.github/.ghaignore +++ b/.github/.ghaignore @@ -20,10 +20,12 @@ oracles/pyth/anchor # not building compression/cutils/anchor compression/cnft-vault/anchor +basics/favorites/native + # builds but need to test on localhost compression/cnft-burn/anchor -# test failing +# build failing # https://github.com/solana-developers/helpers/issues/40 tokens/escrow/anchor diff --git a/basics/account-data/anchor/programs/anchor-program-example/Cargo.toml b/basics/account-data/anchor/programs/anchor-program-example/Cargo.toml index 07a478e65..3bc322460 100644 --- a/basics/account-data/anchor/programs/anchor-program-example/Cargo.toml +++ b/basics/account-data/anchor/programs/anchor-program-example/Cargo.toml @@ -17,4 +17,4 @@ no-log-ix-name = [] idl-build = ["anchor-lang/idl-build"] [dependencies] -anchor-lang = "0.30.1" +anchor-lang = "=0.30.0" diff --git a/basics/counter/poseidon/counter-program/.gitignore b/basics/counter/poseidon/.gitignore similarity index 100% rename from basics/counter/poseidon/counter-program/.gitignore rename to basics/counter/poseidon/.gitignore diff --git a/basics/counter/poseidon/counter-program/.prettierignore b/basics/counter/poseidon/.prettierignore similarity index 100% rename from basics/counter/poseidon/counter-program/.prettierignore rename to basics/counter/poseidon/.prettierignore diff --git a/basics/counter/poseidon/counter-program/Anchor.toml b/basics/counter/poseidon/Anchor.toml similarity index 100% rename from basics/counter/poseidon/counter-program/Anchor.toml rename to basics/counter/poseidon/Anchor.toml diff --git a/basics/counter/poseidon/counter-program/Cargo.toml b/basics/counter/poseidon/Cargo.toml similarity index 100% rename from basics/counter/poseidon/counter-program/Cargo.toml rename to basics/counter/poseidon/Cargo.toml diff --git a/basics/counter/poseidon/counter-program/migrations/deploy.ts b/basics/counter/poseidon/migrations/deploy.ts similarity index 100% rename from basics/counter/poseidon/counter-program/migrations/deploy.ts rename to basics/counter/poseidon/migrations/deploy.ts diff --git a/basics/counter/poseidon/counter-program/package.json b/basics/counter/poseidon/package.json similarity index 100% rename from basics/counter/poseidon/counter-program/package.json rename to basics/counter/poseidon/package.json diff --git a/basics/counter/poseidon/counter-program/pnpm-lock.yaml b/basics/counter/poseidon/pnpm-lock.yaml similarity index 100% rename from basics/counter/poseidon/counter-program/pnpm-lock.yaml rename to basics/counter/poseidon/pnpm-lock.yaml diff --git a/basics/counter/poseidon/counter-program/programs/counter-program/Cargo.toml b/basics/counter/poseidon/programs/counter-program/Cargo.toml similarity index 100% rename from basics/counter/poseidon/counter-program/programs/counter-program/Cargo.toml rename to basics/counter/poseidon/programs/counter-program/Cargo.toml diff --git a/basics/counter/poseidon/counter-program/programs/counter-program/Xargo.toml b/basics/counter/poseidon/programs/counter-program/Xargo.toml similarity index 100% rename from basics/counter/poseidon/counter-program/programs/counter-program/Xargo.toml rename to basics/counter/poseidon/programs/counter-program/Xargo.toml diff --git a/basics/counter/poseidon/counter-program/programs/counter-program/src/lib.rs b/basics/counter/poseidon/programs/counter-program/src/lib.rs similarity index 100% rename from basics/counter/poseidon/counter-program/programs/counter-program/src/lib.rs rename to basics/counter/poseidon/programs/counter-program/src/lib.rs diff --git a/basics/counter/poseidon/counter-program/tests/counter-program.test.ts b/basics/counter/poseidon/tests/counter-program.test.ts similarity index 100% rename from basics/counter/poseidon/counter-program/tests/counter-program.test.ts rename to basics/counter/poseidon/tests/counter-program.test.ts diff --git a/basics/counter/poseidon/counter-program/tests/tsconfig.test.json b/basics/counter/poseidon/tests/tsconfig.test.json similarity index 100% rename from basics/counter/poseidon/counter-program/tests/tsconfig.test.json rename to basics/counter/poseidon/tests/tsconfig.test.json diff --git a/basics/counter/poseidon/counter-program/ts-programs/package.json b/basics/counter/poseidon/ts-programs/package.json similarity index 100% rename from basics/counter/poseidon/counter-program/ts-programs/package.json rename to basics/counter/poseidon/ts-programs/package.json diff --git a/basics/counter/poseidon/counter-program/ts-programs/pnpm-lock.yaml b/basics/counter/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from basics/counter/poseidon/counter-program/ts-programs/pnpm-lock.yaml rename to basics/counter/poseidon/ts-programs/pnpm-lock.yaml diff --git a/basics/counter/poseidon/counter-program/ts-programs/src/counter-program.ts b/basics/counter/poseidon/ts-programs/src/counter-program.ts similarity index 100% rename from basics/counter/poseidon/counter-program/ts-programs/src/counter-program.ts rename to basics/counter/poseidon/ts-programs/src/counter-program.ts diff --git a/basics/counter/poseidon/counter-program/tsconfig.json b/basics/counter/poseidon/tsconfig.json similarity index 100% rename from basics/counter/poseidon/counter-program/tsconfig.json rename to basics/counter/poseidon/tsconfig.json diff --git a/basics/create-account/poseidon/create_system_account/.gitignore b/basics/create-account/poseidon/.gitignore similarity index 100% rename from basics/create-account/poseidon/create_system_account/.gitignore rename to basics/create-account/poseidon/.gitignore diff --git a/basics/create-account/poseidon/create_system_account/.prettierignore b/basics/create-account/poseidon/.prettierignore similarity index 100% rename from basics/create-account/poseidon/create_system_account/.prettierignore rename to basics/create-account/poseidon/.prettierignore diff --git a/basics/create-account/poseidon/create_system_account/Anchor.toml b/basics/create-account/poseidon/Anchor.toml similarity index 100% rename from basics/create-account/poseidon/create_system_account/Anchor.toml rename to basics/create-account/poseidon/Anchor.toml diff --git a/basics/create-account/poseidon/create_system_account/Cargo.toml b/basics/create-account/poseidon/Cargo.toml similarity index 100% rename from basics/create-account/poseidon/create_system_account/Cargo.toml rename to basics/create-account/poseidon/Cargo.toml diff --git a/basics/create-account/poseidon/create_system_account/migrations/deploy.ts b/basics/create-account/poseidon/migrations/deploy.ts similarity index 100% rename from basics/create-account/poseidon/create_system_account/migrations/deploy.ts rename to basics/create-account/poseidon/migrations/deploy.ts diff --git a/basics/create-account/poseidon/create_system_account/package.json b/basics/create-account/poseidon/package.json similarity index 100% rename from basics/create-account/poseidon/create_system_account/package.json rename to basics/create-account/poseidon/package.json diff --git a/basics/create-account/poseidon/create_system_account/pnpm-lock.yaml b/basics/create-account/poseidon/pnpm-lock.yaml similarity index 100% rename from basics/create-account/poseidon/create_system_account/pnpm-lock.yaml rename to basics/create-account/poseidon/pnpm-lock.yaml diff --git a/basics/create-account/poseidon/create_system_account/programs/create_system_account/Cargo.toml b/basics/create-account/poseidon/programs/create_system_account/Cargo.toml similarity index 100% rename from basics/create-account/poseidon/create_system_account/programs/create_system_account/Cargo.toml rename to basics/create-account/poseidon/programs/create_system_account/Cargo.toml diff --git a/basics/create-account/poseidon/create_system_account/programs/create_system_account/Xargo.toml b/basics/create-account/poseidon/programs/create_system_account/Xargo.toml similarity index 100% rename from basics/create-account/poseidon/create_system_account/programs/create_system_account/Xargo.toml rename to basics/create-account/poseidon/programs/create_system_account/Xargo.toml diff --git a/basics/create-account/poseidon/create_system_account/programs/create_system_account/src/lib.rs b/basics/create-account/poseidon/programs/create_system_account/src/lib.rs similarity index 100% rename from basics/create-account/poseidon/create_system_account/programs/create_system_account/src/lib.rs rename to basics/create-account/poseidon/programs/create_system_account/src/lib.rs diff --git a/basics/create-account/poseidon/create_system_account/tests/bankrun.test.ts b/basics/create-account/poseidon/tests/bankrun.test.ts similarity index 100% rename from basics/create-account/poseidon/create_system_account/tests/bankrun.test.ts rename to basics/create-account/poseidon/tests/bankrun.test.ts diff --git a/basics/create-account/poseidon/create_system_account/tests/create_system_account.ts b/basics/create-account/poseidon/tests/create_system_account.ts similarity index 100% rename from basics/create-account/poseidon/create_system_account/tests/create_system_account.ts rename to basics/create-account/poseidon/tests/create_system_account.ts diff --git a/basics/create-account/poseidon/create_system_account/ts-programs/package.json b/basics/create-account/poseidon/ts-programs/package.json similarity index 100% rename from basics/create-account/poseidon/create_system_account/ts-programs/package.json rename to basics/create-account/poseidon/ts-programs/package.json diff --git a/basics/create-account/poseidon/create_system_account/ts-programs/pnpm-lock.yaml b/basics/create-account/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from basics/create-account/poseidon/create_system_account/ts-programs/pnpm-lock.yaml rename to basics/create-account/poseidon/ts-programs/pnpm-lock.yaml diff --git a/basics/create-account/poseidon/create_system_account/ts-programs/src/create_system_account.ts b/basics/create-account/poseidon/ts-programs/src/create_system_account.ts similarity index 100% rename from basics/create-account/poseidon/create_system_account/ts-programs/src/create_system_account.ts rename to basics/create-account/poseidon/ts-programs/src/create_system_account.ts diff --git a/basics/create-account/poseidon/create_system_account/tsconfig.json b/basics/create-account/poseidon/tsconfig.json similarity index 100% rename from basics/create-account/poseidon/create_system_account/tsconfig.json rename to basics/create-account/poseidon/tsconfig.json diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/.gitignore b/basics/pda-rent-payer/poseidon/.gitignore similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/.gitignore rename to basics/pda-rent-payer/poseidon/.gitignore diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/.prettierignore b/basics/pda-rent-payer/poseidon/.prettierignore similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/.prettierignore rename to basics/pda-rent-payer/poseidon/.prettierignore diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/Anchor.toml b/basics/pda-rent-payer/poseidon/Anchor.toml similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/Anchor.toml rename to basics/pda-rent-payer/poseidon/Anchor.toml diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/Cargo.toml b/basics/pda-rent-payer/poseidon/Cargo.toml similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/Cargo.toml rename to basics/pda-rent-payer/poseidon/Cargo.toml diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/migrations/deploy.ts b/basics/pda-rent-payer/poseidon/migrations/deploy.ts similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/migrations/deploy.ts rename to basics/pda-rent-payer/poseidon/migrations/deploy.ts diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/package.json b/basics/pda-rent-payer/poseidon/package.json similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/package.json rename to basics/pda-rent-payer/poseidon/package.json diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/pnpm-lock.yaml b/basics/pda-rent-payer/poseidon/pnpm-lock.yaml similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/pnpm-lock.yaml rename to basics/pda-rent-payer/poseidon/pnpm-lock.yaml diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/programs/pda_rent_payer/Cargo.toml b/basics/pda-rent-payer/poseidon/programs/pda_rent_payer/Cargo.toml similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/programs/pda_rent_payer/Cargo.toml rename to basics/pda-rent-payer/poseidon/programs/pda_rent_payer/Cargo.toml diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/programs/pda_rent_payer/Xargo.toml b/basics/pda-rent-payer/poseidon/programs/pda_rent_payer/Xargo.toml similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/programs/pda_rent_payer/Xargo.toml rename to basics/pda-rent-payer/poseidon/programs/pda_rent_payer/Xargo.toml diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/programs/pda_rent_payer/src/lib.rs b/basics/pda-rent-payer/poseidon/programs/pda_rent_payer/src/lib.rs similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/programs/pda_rent_payer/src/lib.rs rename to basics/pda-rent-payer/poseidon/programs/pda_rent_payer/src/lib.rs diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/tests/bankrun.test.ts b/basics/pda-rent-payer/poseidon/tests/bankrun.test.ts similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/tests/bankrun.test.ts rename to basics/pda-rent-payer/poseidon/tests/bankrun.test.ts diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/ts-programs/package.json b/basics/pda-rent-payer/poseidon/ts-programs/package.json similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/ts-programs/package.json rename to basics/pda-rent-payer/poseidon/ts-programs/package.json diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/ts-programs/pnpm-lock.yaml b/basics/pda-rent-payer/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/ts-programs/pnpm-lock.yaml rename to basics/pda-rent-payer/poseidon/ts-programs/pnpm-lock.yaml diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/ts-programs/src/pda_rent_payer.ts b/basics/pda-rent-payer/poseidon/ts-programs/src/pda_rent_payer.ts similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/ts-programs/src/pda_rent_payer.ts rename to basics/pda-rent-payer/poseidon/ts-programs/src/pda_rent_payer.ts diff --git a/basics/pda-rent-payer/poseidon/pda_rent_payer/tsconfig.json b/basics/pda-rent-payer/poseidon/tsconfig.json similarity index 100% rename from basics/pda-rent-payer/poseidon/pda_rent_payer/tsconfig.json rename to basics/pda-rent-payer/poseidon/tsconfig.json diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/.gitignore b/basics/processing-instructions/poseidon/.gitignore similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/.gitignore rename to basics/processing-instructions/poseidon/.gitignore diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/.prettierignore b/basics/processing-instructions/poseidon/.prettierignore similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/.prettierignore rename to basics/processing-instructions/poseidon/.prettierignore diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/Anchor.toml b/basics/processing-instructions/poseidon/Anchor.toml similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/Anchor.toml rename to basics/processing-instructions/poseidon/Anchor.toml diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/Cargo.toml b/basics/processing-instructions/poseidon/Cargo.toml similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/Cargo.toml rename to basics/processing-instructions/poseidon/Cargo.toml diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/migrations/deploy.ts b/basics/processing-instructions/poseidon/migrations/deploy.ts similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/migrations/deploy.ts rename to basics/processing-instructions/poseidon/migrations/deploy.ts diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/package.json b/basics/processing-instructions/poseidon/package.json similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/package.json rename to basics/processing-instructions/poseidon/package.json diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/pnpm-lock.yaml b/basics/processing-instructions/poseidon/pnpm-lock.yaml similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/pnpm-lock.yaml rename to basics/processing-instructions/poseidon/pnpm-lock.yaml diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/programs/processing-instructions-program/Cargo.toml b/basics/processing-instructions/poseidon/programs/processing-instructions-program/Cargo.toml similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/programs/processing-instructions-program/Cargo.toml rename to basics/processing-instructions/poseidon/programs/processing-instructions-program/Cargo.toml diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/programs/processing-instructions-program/Xargo.toml b/basics/processing-instructions/poseidon/programs/processing-instructions-program/Xargo.toml similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/programs/processing-instructions-program/Xargo.toml rename to basics/processing-instructions/poseidon/programs/processing-instructions-program/Xargo.toml diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/programs/processing-instructions-program/src/lib.rs b/basics/processing-instructions/poseidon/programs/processing-instructions-program/src/lib.rs similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/programs/processing-instructions-program/src/lib.rs rename to basics/processing-instructions/poseidon/programs/processing-instructions-program/src/lib.rs diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/tests/bankrun.test.ts b/basics/processing-instructions/poseidon/tests/bankrun.test.ts similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/tests/bankrun.test.ts rename to basics/processing-instructions/poseidon/tests/bankrun.test.ts diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/tests/processing-instructions-program.ts b/basics/processing-instructions/poseidon/tests/processing-instructions-program.ts similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/tests/processing-instructions-program.ts rename to basics/processing-instructions/poseidon/tests/processing-instructions-program.ts diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/package.json b/basics/processing-instructions/poseidon/ts-programs/package.json similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/package.json rename to basics/processing-instructions/poseidon/ts-programs/package.json diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/pnpm-lock.yaml b/basics/processing-instructions/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/pnpm-lock.yaml rename to basics/processing-instructions/poseidon/ts-programs/pnpm-lock.yaml diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/src/processingInstructionsProgram.ts b/basics/processing-instructions/poseidon/ts-programs/src/processingInstructionsProgram.ts similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/src/processingInstructionsProgram.ts rename to basics/processing-instructions/poseidon/ts-programs/src/processingInstructionsProgram.ts diff --git a/basics/processing-instructions/poseidon/processing-instructions-program/tsconfig.json b/basics/processing-instructions/poseidon/tsconfig.json similarity index 100% rename from basics/processing-instructions/poseidon/processing-instructions-program/tsconfig.json rename to basics/processing-instructions/poseidon/tsconfig.json diff --git a/basics/realloc/poseidon/realloc-program/.gitignore b/basics/realloc/poseidon/.gitignore similarity index 100% rename from basics/realloc/poseidon/realloc-program/.gitignore rename to basics/realloc/poseidon/.gitignore diff --git a/basics/realloc/poseidon/realloc-program/.prettierignore b/basics/realloc/poseidon/.prettierignore similarity index 100% rename from basics/realloc/poseidon/realloc-program/.prettierignore rename to basics/realloc/poseidon/.prettierignore diff --git a/basics/realloc/poseidon/realloc-program/Anchor.toml b/basics/realloc/poseidon/Anchor.toml similarity index 100% rename from basics/realloc/poseidon/realloc-program/Anchor.toml rename to basics/realloc/poseidon/Anchor.toml diff --git a/basics/realloc/poseidon/realloc-program/Cargo.toml b/basics/realloc/poseidon/Cargo.toml similarity index 100% rename from basics/realloc/poseidon/realloc-program/Cargo.toml rename to basics/realloc/poseidon/Cargo.toml diff --git a/basics/realloc/poseidon/realloc-program/migrations/deploy.ts b/basics/realloc/poseidon/migrations/deploy.ts similarity index 100% rename from basics/realloc/poseidon/realloc-program/migrations/deploy.ts rename to basics/realloc/poseidon/migrations/deploy.ts diff --git a/basics/realloc/poseidon/realloc-program/package.json b/basics/realloc/poseidon/package.json similarity index 100% rename from basics/realloc/poseidon/realloc-program/package.json rename to basics/realloc/poseidon/package.json diff --git a/basics/realloc/poseidon/realloc-program/pnpm-lock.yaml b/basics/realloc/poseidon/pnpm-lock.yaml similarity index 100% rename from basics/realloc/poseidon/realloc-program/pnpm-lock.yaml rename to basics/realloc/poseidon/pnpm-lock.yaml diff --git a/basics/realloc/poseidon/realloc-program/programs/realloc-program/Cargo.toml b/basics/realloc/poseidon/programs/realloc-program/Cargo.toml similarity index 100% rename from basics/realloc/poseidon/realloc-program/programs/realloc-program/Cargo.toml rename to basics/realloc/poseidon/programs/realloc-program/Cargo.toml diff --git a/basics/realloc/poseidon/realloc-program/programs/realloc-program/Xargo.toml b/basics/realloc/poseidon/programs/realloc-program/Xargo.toml similarity index 100% rename from basics/realloc/poseidon/realloc-program/programs/realloc-program/Xargo.toml rename to basics/realloc/poseidon/programs/realloc-program/Xargo.toml diff --git a/basics/realloc/poseidon/realloc-program/programs/realloc-program/src/lib.rs b/basics/realloc/poseidon/programs/realloc-program/src/lib.rs similarity index 100% rename from basics/realloc/poseidon/realloc-program/programs/realloc-program/src/lib.rs rename to basics/realloc/poseidon/programs/realloc-program/src/lib.rs diff --git a/basics/realloc/poseidon/realloc-program/tests/bankrun.test.ts b/basics/realloc/poseidon/tests/bankrun.test.ts similarity index 100% rename from basics/realloc/poseidon/realloc-program/tests/bankrun.test.ts rename to basics/realloc/poseidon/tests/bankrun.test.ts diff --git a/basics/realloc/poseidon/realloc-program/tests/realloc-program.ts b/basics/realloc/poseidon/tests/realloc-program.ts similarity index 100% rename from basics/realloc/poseidon/realloc-program/tests/realloc-program.ts rename to basics/realloc/poseidon/tests/realloc-program.ts diff --git a/basics/realloc/poseidon/realloc-program/ts-programs/package.json b/basics/realloc/poseidon/ts-programs/package.json similarity index 100% rename from basics/realloc/poseidon/realloc-program/ts-programs/package.json rename to basics/realloc/poseidon/ts-programs/package.json diff --git a/basics/realloc/poseidon/realloc-program/ts-programs/pnpm-lock.yaml b/basics/realloc/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from basics/realloc/poseidon/realloc-program/ts-programs/pnpm-lock.yaml rename to basics/realloc/poseidon/ts-programs/pnpm-lock.yaml diff --git a/basics/realloc/poseidon/realloc-program/ts-programs/src/reallocProgram.ts b/basics/realloc/poseidon/ts-programs/src/reallocProgram.ts similarity index 100% rename from basics/realloc/poseidon/realloc-program/ts-programs/src/reallocProgram.ts rename to basics/realloc/poseidon/ts-programs/src/reallocProgram.ts diff --git a/basics/realloc/poseidon/realloc-program/tsconfig.json b/basics/realloc/poseidon/tsconfig.json similarity index 100% rename from basics/realloc/poseidon/realloc-program/tsconfig.json rename to basics/realloc/poseidon/tsconfig.json diff --git a/basics/rent/poseidon/rent_program/.gitignore b/basics/rent/poseidon/.gitignore similarity index 100% rename from basics/rent/poseidon/rent_program/.gitignore rename to basics/rent/poseidon/.gitignore diff --git a/basics/rent/poseidon/rent_program/.prettierignore b/basics/rent/poseidon/.prettierignore similarity index 100% rename from basics/rent/poseidon/rent_program/.prettierignore rename to basics/rent/poseidon/.prettierignore diff --git a/basics/rent/poseidon/rent_program/Anchor.toml b/basics/rent/poseidon/Anchor.toml similarity index 100% rename from basics/rent/poseidon/rent_program/Anchor.toml rename to basics/rent/poseidon/Anchor.toml diff --git a/basics/rent/poseidon/rent_program/Cargo.toml b/basics/rent/poseidon/Cargo.toml similarity index 100% rename from basics/rent/poseidon/rent_program/Cargo.toml rename to basics/rent/poseidon/Cargo.toml diff --git a/basics/rent/poseidon/rent_program/migrations/deploy.ts b/basics/rent/poseidon/migrations/deploy.ts similarity index 100% rename from basics/rent/poseidon/rent_program/migrations/deploy.ts rename to basics/rent/poseidon/migrations/deploy.ts diff --git a/basics/rent/poseidon/rent_program/package.json b/basics/rent/poseidon/package.json similarity index 100% rename from basics/rent/poseidon/rent_program/package.json rename to basics/rent/poseidon/package.json diff --git a/basics/rent/poseidon/rent_program/pnpm-lock.yaml b/basics/rent/poseidon/pnpm-lock.yaml similarity index 100% rename from basics/rent/poseidon/rent_program/pnpm-lock.yaml rename to basics/rent/poseidon/pnpm-lock.yaml diff --git a/basics/rent/poseidon/rent_program/programs/rent_program/Cargo.toml b/basics/rent/poseidon/programs/rent_program/Cargo.toml similarity index 100% rename from basics/rent/poseidon/rent_program/programs/rent_program/Cargo.toml rename to basics/rent/poseidon/programs/rent_program/Cargo.toml diff --git a/basics/rent/poseidon/rent_program/programs/rent_program/Xargo.toml b/basics/rent/poseidon/programs/rent_program/Xargo.toml similarity index 100% rename from basics/rent/poseidon/rent_program/programs/rent_program/Xargo.toml rename to basics/rent/poseidon/programs/rent_program/Xargo.toml diff --git a/basics/rent/poseidon/programs/rent_program/src/lib.rs b/basics/rent/poseidon/programs/rent_program/src/lib.rs new file mode 100644 index 000000000..35c277a32 --- /dev/null +++ b/basics/rent/poseidon/programs/rent_program/src/lib.rs @@ -0,0 +1,13 @@ +use anchor_lang::prelude::*; +declare_id!("EHjrAJo1Ld77gkq6Pp2ErQHcC6FghT8BEPebNve8bAvj"); +#[program] +pub mod rent_program { + use super::*; +} +#[account] +pub struct AddressData { + pub owner: Pubkey, + pub id: u64, + pub zip_code: u64, + pub account_bump: u8, +} diff --git a/basics/rent/poseidon/rent_program/programs/rent_program/src/lib.rs b/basics/rent/poseidon/rent_program/programs/rent_program/src/lib.rs deleted file mode 100644 index 9ce6d9e00..000000000 --- a/basics/rent/poseidon/rent_program/programs/rent_program/src/lib.rs +++ /dev/null @@ -1,32 +0,0 @@ -use anchor_lang::prelude::*; -declare_id!("EHjrAJo1Ld77gkq6Pp2ErQHcC6FghT8BEPebNve8bAvj"); -#[program] -pub mod rent_program { - use super::*; - pub fn create_system_account( - ctx: Context, - id: u64, - zip_code: u64, - ) -> Result<()> { - ctx.accounts.account.account_bump = ctx.bumps.account; - ctx.accounts.account.owner = ctx.accounts.owner.key(); - ctx.accounts.account.id = id; - ctx.accounts.account.zip_code = zip_code; - Ok(()) - } -} -#[derive(Accounts)] -pub struct CreateSystemAccountContext<'info> { - #[account(mut)] - pub owner: Signer<'info>, - #[account(init, payer = owner, space = 57, seeds = [b"account"], bump)] - pub account: Account<'info, AddressData>, - pub system_program: Program<'info, System>, -} -#[account] -pub struct AddressData { - pub owner: Pubkey, - pub id: u64, - pub zip_code: u64, - pub account_bump: u8, -} diff --git a/basics/rent/poseidon/rent_program/tests/bankrun.test.ts b/basics/rent/poseidon/tests/bankrun.test.ts similarity index 100% rename from basics/rent/poseidon/rent_program/tests/bankrun.test.ts rename to basics/rent/poseidon/tests/bankrun.test.ts diff --git a/basics/rent/poseidon/rent_program/tests/rent_program.ts b/basics/rent/poseidon/tests/rent_program.ts similarity index 100% rename from basics/rent/poseidon/rent_program/tests/rent_program.ts rename to basics/rent/poseidon/tests/rent_program.ts diff --git a/basics/rent/poseidon/rent_program/ts-programs/package.json b/basics/rent/poseidon/ts-programs/package.json similarity index 100% rename from basics/rent/poseidon/rent_program/ts-programs/package.json rename to basics/rent/poseidon/ts-programs/package.json diff --git a/basics/rent/poseidon/rent_program/ts-programs/pnpm-lock.yaml b/basics/rent/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from basics/rent/poseidon/rent_program/ts-programs/pnpm-lock.yaml rename to basics/rent/poseidon/ts-programs/pnpm-lock.yaml diff --git a/basics/rent/poseidon/rent_program/ts-programs/src/rent_program.ts b/basics/rent/poseidon/ts-programs/src/rentProgram.ts similarity index 100% rename from basics/rent/poseidon/rent_program/ts-programs/src/rent_program.ts rename to basics/rent/poseidon/ts-programs/src/rentProgram.ts diff --git a/basics/rent/poseidon/rent_program/tsconfig.json b/basics/rent/poseidon/tsconfig.json similarity index 100% rename from basics/rent/poseidon/rent_program/tsconfig.json rename to basics/rent/poseidon/tsconfig.json diff --git a/tokens/escrow/anchor/programs/escrow/Cargo.toml b/tokens/escrow/anchor/programs/escrow/Cargo.toml index a31367e7f..47a01964b 100644 --- a/tokens/escrow/anchor/programs/escrow/Cargo.toml +++ b/tokens/escrow/anchor/programs/escrow/Cargo.toml @@ -19,4 +19,4 @@ idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"] [dependencies] anchor-lang = { version = "0.30.1", features = ["init-if-needed"]} anchor-spl = "0.30.1" -solana-program = "=2.0.3" +solana-program = "=1.18.17" diff --git a/tokens/escrow/poseidon/escrow/.gitignore b/tokens/escrow/poseidon/.gitignore similarity index 100% rename from tokens/escrow/poseidon/escrow/.gitignore rename to tokens/escrow/poseidon/.gitignore diff --git a/tokens/escrow/poseidon/escrow/.prettierignore b/tokens/escrow/poseidon/.prettierignore similarity index 100% rename from tokens/escrow/poseidon/escrow/.prettierignore rename to tokens/escrow/poseidon/.prettierignore diff --git a/tokens/escrow/poseidon/escrow/Anchor.toml b/tokens/escrow/poseidon/Anchor.toml similarity index 100% rename from tokens/escrow/poseidon/escrow/Anchor.toml rename to tokens/escrow/poseidon/Anchor.toml diff --git a/tokens/escrow/poseidon/escrow/Cargo.toml b/tokens/escrow/poseidon/Cargo.toml similarity index 100% rename from tokens/escrow/poseidon/escrow/Cargo.toml rename to tokens/escrow/poseidon/Cargo.toml diff --git a/tokens/escrow/poseidon/escrow/migrations/deploy.ts b/tokens/escrow/poseidon/migrations/deploy.ts similarity index 100% rename from tokens/escrow/poseidon/escrow/migrations/deploy.ts rename to tokens/escrow/poseidon/migrations/deploy.ts diff --git a/tokens/escrow/poseidon/escrow/package.json b/tokens/escrow/poseidon/package.json similarity index 100% rename from tokens/escrow/poseidon/escrow/package.json rename to tokens/escrow/poseidon/package.json diff --git a/tokens/escrow/poseidon/escrow/pnpm-lock.yaml b/tokens/escrow/poseidon/pnpm-lock.yaml similarity index 100% rename from tokens/escrow/poseidon/escrow/pnpm-lock.yaml rename to tokens/escrow/poseidon/pnpm-lock.yaml diff --git a/tokens/escrow/poseidon/escrow/programs/escrow/Cargo.toml b/tokens/escrow/poseidon/programs/escrow/Cargo.toml similarity index 100% rename from tokens/escrow/poseidon/escrow/programs/escrow/Cargo.toml rename to tokens/escrow/poseidon/programs/escrow/Cargo.toml diff --git a/tokens/escrow/poseidon/escrow/programs/escrow/Xargo.toml b/tokens/escrow/poseidon/programs/escrow/Xargo.toml similarity index 100% rename from tokens/escrow/poseidon/escrow/programs/escrow/Xargo.toml rename to tokens/escrow/poseidon/programs/escrow/Xargo.toml diff --git a/tokens/escrow/poseidon/escrow/programs/escrow/src/lib.rs b/tokens/escrow/poseidon/programs/escrow/src/lib.rs similarity index 100% rename from tokens/escrow/poseidon/escrow/programs/escrow/src/lib.rs rename to tokens/escrow/poseidon/programs/escrow/src/lib.rs diff --git a/tokens/escrow/poseidon/escrow/tests/bankrun.test.ts b/tokens/escrow/poseidon/tests/bankrun.test.ts similarity index 100% rename from tokens/escrow/poseidon/escrow/tests/bankrun.test.ts rename to tokens/escrow/poseidon/tests/bankrun.test.ts diff --git a/tokens/escrow/poseidon/escrow/tests/escrow.ts b/tokens/escrow/poseidon/tests/escrow.ts similarity index 100% rename from tokens/escrow/poseidon/escrow/tests/escrow.ts rename to tokens/escrow/poseidon/tests/escrow.ts diff --git a/tokens/escrow/poseidon/escrow/ts-programs/src/escrow.ts b/tokens/escrow/poseidon/ts-programs/src/escrow.ts similarity index 100% rename from tokens/escrow/poseidon/escrow/ts-programs/src/escrow.ts rename to tokens/escrow/poseidon/ts-programs/src/escrow.ts diff --git a/tokens/escrow/poseidon/escrow/tsconfig.json b/tokens/escrow/poseidon/tsconfig.json similarity index 100% rename from tokens/escrow/poseidon/escrow/tsconfig.json rename to tokens/escrow/poseidon/tsconfig.json diff --git a/tokens/pda-mint-authority/poseidon/token-minter/.gitignore b/tokens/pda-mint-authority/poseidon/.gitignore similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/.gitignore rename to tokens/pda-mint-authority/poseidon/.gitignore diff --git a/tokens/pda-mint-authority/poseidon/token-minter/.prettierignore b/tokens/pda-mint-authority/poseidon/.prettierignore similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/.prettierignore rename to tokens/pda-mint-authority/poseidon/.prettierignore diff --git a/tokens/pda-mint-authority/poseidon/token-minter/Anchor.toml b/tokens/pda-mint-authority/poseidon/Anchor.toml similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/Anchor.toml rename to tokens/pda-mint-authority/poseidon/Anchor.toml diff --git a/tokens/pda-mint-authority/poseidon/token-minter/Cargo.toml b/tokens/pda-mint-authority/poseidon/Cargo.toml similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/Cargo.toml rename to tokens/pda-mint-authority/poseidon/Cargo.toml diff --git a/tokens/pda-mint-authority/poseidon/token-minter/migrations/deploy.ts b/tokens/pda-mint-authority/poseidon/migrations/deploy.ts similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/migrations/deploy.ts rename to tokens/pda-mint-authority/poseidon/migrations/deploy.ts diff --git a/tokens/pda-mint-authority/poseidon/token-minter/package.json b/tokens/pda-mint-authority/poseidon/package.json similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/package.json rename to tokens/pda-mint-authority/poseidon/package.json diff --git a/tokens/pda-mint-authority/poseidon/token-minter/pnpm-lock.yaml b/tokens/pda-mint-authority/poseidon/pnpm-lock.yaml similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/pnpm-lock.yaml rename to tokens/pda-mint-authority/poseidon/pnpm-lock.yaml diff --git a/tokens/pda-mint-authority/poseidon/token-minter/programs/token-minter/Cargo.toml b/tokens/pda-mint-authority/poseidon/programs/token-minter/Cargo.toml similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/programs/token-minter/Cargo.toml rename to tokens/pda-mint-authority/poseidon/programs/token-minter/Cargo.toml diff --git a/tokens/pda-mint-authority/poseidon/token-minter/programs/token-minter/Xargo.toml b/tokens/pda-mint-authority/poseidon/programs/token-minter/Xargo.toml similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/programs/token-minter/Xargo.toml rename to tokens/pda-mint-authority/poseidon/programs/token-minter/Xargo.toml diff --git a/tokens/pda-mint-authority/poseidon/token-minter/programs/token-minter/src/lib.rs b/tokens/pda-mint-authority/poseidon/programs/token-minter/src/lib.rs similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/programs/token-minter/src/lib.rs rename to tokens/pda-mint-authority/poseidon/programs/token-minter/src/lib.rs diff --git a/tokens/pda-mint-authority/poseidon/token-minter/tests/bankrun.test.ts b/tokens/pda-mint-authority/poseidon/tests/bankrun.test.ts similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/tests/bankrun.test.ts rename to tokens/pda-mint-authority/poseidon/tests/bankrun.test.ts diff --git a/tokens/pda-mint-authority/poseidon/token-minter/tests/token-minter.ts b/tokens/pda-mint-authority/poseidon/tests/token-minter.ts similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/tests/token-minter.ts rename to tokens/pda-mint-authority/poseidon/tests/token-minter.ts diff --git a/tokens/pda-mint-authority/poseidon/token-minter/ts-programs/package.json b/tokens/pda-mint-authority/poseidon/ts-programs/package.json similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/ts-programs/package.json rename to tokens/pda-mint-authority/poseidon/ts-programs/package.json diff --git a/tokens/pda-mint-authority/poseidon/token-minter/ts-programs/pnpm-lock.yaml b/tokens/pda-mint-authority/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/ts-programs/pnpm-lock.yaml rename to tokens/pda-mint-authority/poseidon/ts-programs/pnpm-lock.yaml diff --git a/tokens/pda-mint-authority/poseidon/token-minter/ts-programs/src/token-minter.ts b/tokens/pda-mint-authority/poseidon/ts-programs/src/token-minter.ts similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/ts-programs/src/token-minter.ts rename to tokens/pda-mint-authority/poseidon/ts-programs/src/token-minter.ts diff --git a/tokens/pda-mint-authority/poseidon/token-minter/tsconfig.json b/tokens/pda-mint-authority/poseidon/tsconfig.json similarity index 100% rename from tokens/pda-mint-authority/poseidon/token-minter/tsconfig.json rename to tokens/pda-mint-authority/poseidon/tsconfig.json diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/.gitignore b/tokens/transfer-tokens/poseidon/.gitignore similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/.gitignore rename to tokens/transfer-tokens/poseidon/.gitignore diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/.prettierignore b/tokens/transfer-tokens/poseidon/.prettierignore similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/.prettierignore rename to tokens/transfer-tokens/poseidon/.prettierignore diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/Anchor.toml b/tokens/transfer-tokens/poseidon/Anchor.toml similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/Anchor.toml rename to tokens/transfer-tokens/poseidon/Anchor.toml diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/Cargo.toml b/tokens/transfer-tokens/poseidon/Cargo.toml similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/Cargo.toml rename to tokens/transfer-tokens/poseidon/Cargo.toml diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/migrations/deploy.ts b/tokens/transfer-tokens/poseidon/migrations/deploy.ts similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/migrations/deploy.ts rename to tokens/transfer-tokens/poseidon/migrations/deploy.ts diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/package.json b/tokens/transfer-tokens/poseidon/package.json similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/package.json rename to tokens/transfer-tokens/poseidon/package.json diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/pnpm-lock.yaml b/tokens/transfer-tokens/poseidon/pnpm-lock.yaml similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/pnpm-lock.yaml rename to tokens/transfer-tokens/poseidon/pnpm-lock.yaml diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/programs/transfer-tokens-program/Cargo.toml b/tokens/transfer-tokens/poseidon/programs/transfer-tokens-program/Cargo.toml similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/programs/transfer-tokens-program/Cargo.toml rename to tokens/transfer-tokens/poseidon/programs/transfer-tokens-program/Cargo.toml diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/programs/transfer-tokens-program/Xargo.toml b/tokens/transfer-tokens/poseidon/programs/transfer-tokens-program/Xargo.toml similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/programs/transfer-tokens-program/Xargo.toml rename to tokens/transfer-tokens/poseidon/programs/transfer-tokens-program/Xargo.toml diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/programs/transfer-tokens-program/src/lib.rs b/tokens/transfer-tokens/poseidon/programs/transfer-tokens-program/src/lib.rs similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/programs/transfer-tokens-program/src/lib.rs rename to tokens/transfer-tokens/poseidon/programs/transfer-tokens-program/src/lib.rs diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/tests/bankrun.test.ts b/tokens/transfer-tokens/poseidon/tests/bankrun.test.ts similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/tests/bankrun.test.ts rename to tokens/transfer-tokens/poseidon/tests/bankrun.test.ts diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/tests/transfer-tokens-program.ts b/tokens/transfer-tokens/poseidon/tests/transfer-tokens-program.ts similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/tests/transfer-tokens-program.ts rename to tokens/transfer-tokens/poseidon/tests/transfer-tokens-program.ts diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/ts-programs/package.json b/tokens/transfer-tokens/poseidon/ts-programs/package.json similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/ts-programs/package.json rename to tokens/transfer-tokens/poseidon/ts-programs/package.json diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/ts-programs/pnpm-lock.yaml b/tokens/transfer-tokens/poseidon/ts-programs/pnpm-lock.yaml similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/ts-programs/pnpm-lock.yaml rename to tokens/transfer-tokens/poseidon/ts-programs/pnpm-lock.yaml diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/ts-programs/src/transferTokensProgram.ts b/tokens/transfer-tokens/poseidon/ts-programs/src/transferTokensProgram.ts similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/ts-programs/src/transferTokensProgram.ts rename to tokens/transfer-tokens/poseidon/ts-programs/src/transferTokensProgram.ts diff --git a/tokens/transfer-tokens/poseidon/transfer-tokens-program/tsconfig.json b/tokens/transfer-tokens/poseidon/tsconfig.json similarity index 100% rename from tokens/transfer-tokens/poseidon/transfer-tokens-program/tsconfig.json rename to tokens/transfer-tokens/poseidon/tsconfig.json From addd5c59c0102daa23c71f14eecbc71fe626bf93 Mon Sep 17 00:00:00 2001 From: Ayush Date: Sat, 4 Jan 2025 23:58:43 +0530 Subject: [PATCH 04/10] added scheduled build badges in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b4b59a85a..d146dbdfe 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Program Examples +[![Native](https://github.com/solana-developers/program-examples/actions/workflows/solana-native.yml/badge.svg?event=schedule)](https://github.com/solana-developers/program-examples/actions/workflows/solana-native.yml) [![Anchor](https://github.com/solana-developers/program-examples/actions/workflows/anchor.yml/badge.svg?event=schedule)](https://github.com/solana-developers/program-examples/actions/workflows/anchor.yml) [![Steel](https://github.com/solana-developers/program-examples/actions/workflows/steel.yml/badge.svg?event=schedule)](https://github.com/solana-developers/program-examples/actions/workflows/steel.yml) [![Poseidon](https://github.com/solana-developers/program-examples/actions/workflows/poseidon.yml/badge.svg?event=schedule)](https://github.com/solana-developers/program-examples/actions/workflows/poseidon.yml) + ## Onchain program examples for :anchor: Anchor :crab: Native Rust, [TS] TypeScript and :snake: Python This repo contains Solana onchain programs (referred to as 'Smart Contracts' in other blockchains). From f1af29b3d5ca5510d9eb1597050b94f6bddbc144 Mon Sep 17 00:00:00 2001 From: Ayush Date: Sun, 5 Jan 2025 00:14:16 +0530 Subject: [PATCH 05/10] remove root Cargo.toml, clippy fmt will fail --- Cargo.lock | 3187 ----------------- Cargo.toml | 42 - basics/favorites/native/program/Cargo.toml | 2 +- .../program/src/instructions/create_pda.rs | 2 +- 4 files changed, 2 insertions(+), 3231 deletions(-) delete mode 100644 Cargo.lock delete mode 100644 Cargo.toml diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 807dd5b44..000000000 --- a/Cargo.lock +++ /dev/null @@ -1,3187 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "account-data-anchor-program-example" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "account-data-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "aead" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" -dependencies = [ - "generic-array", -] - -[[package]] -name = "aes" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" -dependencies = [ - "cfg-if", - "cipher", - "cpufeatures", - "opaque-debug", -] - -[[package]] -name = "aes-gcm-siv" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589c637f0e68c877bbd59a4599bbe849cac8e5f3e4b5a3ebae8f528cd218dcdc" -dependencies = [ - "aead", - "aes", - "cipher", - "ctr", - "polyval", - "subtle", - "zeroize", -] - -[[package]] -name = "ahash" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" -dependencies = [ - "getrandom 0.2.15", - "once_cell", - "version_check", -] - -[[package]] -name = "ahash" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" -dependencies = [ - "cfg-if", - "once_cell", - "version_check", - "zerocopy", -] - -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - -[[package]] -name = "anchor-attribute-access-control" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47fe28365b33e8334dd70ae2f34a43892363012fe239cf37d2ee91693575b1f8" -dependencies = [ - "anchor-syn", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-attribute-account" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c288d496168268d198d9b53ee9f4f9d260a55ba4df9877ea1d4486ad6109e0f" -dependencies = [ - "anchor-syn", - "bs58 0.5.1", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-attribute-constant" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b77b6948d0eeaaa129ce79eea5bbbb9937375a9241d909ca8fb9e006bb6e90" -dependencies = [ - "anchor-syn", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-attribute-error" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d20bb569c5a557c86101b944721d865e1fd0a4c67c381d31a44a84f07f84828" -dependencies = [ - "anchor-syn", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-attribute-event" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cebd8d0671a3a9dc3160c48598d652c34c77de6be4d44345b8b514323284d57" -dependencies = [ - "anchor-syn", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-attribute-program" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb2a5eb0860e661ab31aff7bb5e0288357b176380e985bade4ccb395981b42d" -dependencies = [ - "anchor-lang-idl", - "anchor-syn", - "anyhow", - "bs58 0.5.1", - "heck", - "proc-macro2", - "quote", - "serde_json", - "syn 1.0.109", -] - -[[package]] -name = "anchor-derive-accounts" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04368b5abef4266250ca8d1d12f4dff860242681e4ec22b885dcfe354fd35aa1" -dependencies = [ - "anchor-syn", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-derive-serde" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0bb0e0911ad4a70cab880cdd6287fe1e880a1a9d8e4e6defa8e9044b9796a6c" -dependencies = [ - "anchor-syn", - "borsh-derive-internal 0.10.4", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-derive-space" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef415ff156dc82e9ecb943189b0cb241b3a6bfc26a180234dc21bd3ef3ce0cb" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "anchor-lang" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6620c9486d9d36a4389cab5e37dc34a42ed0bfaa62e6a75a2999ce98f8f2e373" -dependencies = [ - "anchor-attribute-access-control", - "anchor-attribute-account", - "anchor-attribute-constant", - "anchor-attribute-error", - "anchor-attribute-event", - "anchor-attribute-program", - "anchor-derive-accounts", - "anchor-derive-serde", - "anchor-derive-space", - "anchor-lang-idl", - "arrayref", - "base64 0.21.7", - "bincode", - "borsh 0.10.4", - "bytemuck", - "getrandom 0.2.15", - "solana-program 1.18.17", - "thiserror", -] - -[[package]] -name = "anchor-lang-idl" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31cf97b4e6f7d6144a05e435660fcf757dbc3446d38d0e2b851d11ed13625bba" -dependencies = [ - "anchor-lang-idl-spec", - "anyhow", - "heck", - "regex", - "serde", - "serde_json", - "sha2 0.10.8", -] - -[[package]] -name = "anchor-lang-idl-spec" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bdf143115440fe621bdac3a29a1f7472e09f6cd82b2aa569429a0c13f103838" -dependencies = [ - "anyhow", - "serde", -] - -[[package]] -name = "anchor-program-example" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "anchor-realloc" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "anchor-syn" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f99daacb53b55cfd37ce14d6c9905929721137fd4c67bbab44a19802aecb622f" -dependencies = [ - "anyhow", - "bs58 0.5.1", - "cargo_toml", - "heck", - "proc-macro2", - "quote", - "serde", - "serde_json", - "sha2 0.10.8", - "syn 1.0.109", - "thiserror", -] - -[[package]] -name = "anyhow" -version = "1.0.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" - -[[package]] -name = "ark-bn254" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f" -dependencies = [ - "ark-ec", - "ark-ff", - "ark-std", -] - -[[package]] -name = "ark-ec" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" -dependencies = [ - "ark-ff", - "ark-poly", - "ark-serialize", - "ark-std", - "derivative", - "hashbrown 0.13.2", - "itertools", - "num-traits", - "zeroize", -] - -[[package]] -name = "ark-ff" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" -dependencies = [ - "ark-ff-asm", - "ark-ff-macros", - "ark-serialize", - "ark-std", - "derivative", - "digest 0.10.7", - "itertools", - "num-bigint", - "num-traits", - "paste", - "rustc_version", - "zeroize", -] - -[[package]] -name = "ark-ff-asm" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" -dependencies = [ - "quote", - "syn 1.0.109", -] - -[[package]] -name = "ark-ff-macros" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" -dependencies = [ - "num-bigint", - "num-traits", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "ark-poly" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" -dependencies = [ - "ark-ff", - "ark-serialize", - "ark-std", - "derivative", - "hashbrown 0.13.2", -] - -[[package]] -name = "ark-serialize" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" -dependencies = [ - "ark-serialize-derive", - "ark-std", - "digest 0.10.7", - "num-bigint", -] - -[[package]] -name = "ark-serialize-derive" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "ark-std" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" -dependencies = [ - "num-traits", - "rand 0.8.5", -] - -[[package]] -name = "arrayref" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" - -[[package]] -name = "arrayvec" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" - -[[package]] -name = "assert_matches" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" - -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi", - "libc", - "winapi", -] - -[[package]] -name = "autocfg" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" - -[[package]] -name = "base64" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" - -[[package]] -name = "base64" -version = "0.21.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" - -[[package]] -name = "base64" -version = "0.22.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" - -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - -[[package]] -name = "bitflags" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -dependencies = [ - "serde", -] - -[[package]] -name = "bitmaps" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" -dependencies = [ - "typenum", -] - -[[package]] -name = "blake3" -version = "1.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" -dependencies = [ - "arrayref", - "arrayvec", - "cc", - "cfg-if", - "constant_time_eq", - "digest 0.10.7", -] - -[[package]] -name = "block-buffer" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" -dependencies = [ - "block-padding", - "generic-array", -] - -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "block-padding" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" - -[[package]] -name = "borsh" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15bf3650200d8bffa99015595e10f1fbd17de07abbc25bb067da79e769939bfa" -dependencies = [ - "borsh-derive 0.9.3", - "hashbrown 0.11.2", -] - -[[package]] -name = "borsh" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "115e54d64eb62cdebad391c19efc9dce4981c690c85a33a12199d99bb9546fee" -dependencies = [ - "borsh-derive 0.10.4", - "hashbrown 0.13.2", -] - -[[package]] -name = "borsh" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2506947f73ad44e344215ccd6403ac2ae18cd8e046e581a441bf8d199f257f03" -dependencies = [ - "borsh-derive 1.5.3", - "cfg_aliases", -] - -[[package]] -name = "borsh-derive" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775" -dependencies = [ - "borsh-derive-internal 0.9.3", - "borsh-schema-derive-internal 0.9.3", - "proc-macro-crate 0.1.5", - "proc-macro2", - "syn 1.0.109", -] - -[[package]] -name = "borsh-derive" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "831213f80d9423998dd696e2c5345aba6be7a0bd8cd19e31c5243e13df1cef89" -dependencies = [ - "borsh-derive-internal 0.10.4", - "borsh-schema-derive-internal 0.10.4", - "proc-macro-crate 0.1.5", - "proc-macro2", - "syn 1.0.109", -] - -[[package]] -name = "borsh-derive" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2593a3b8b938bd68373196c9832f516be11fa487ef4ae745eb282e6a56a7244" -dependencies = [ - "once_cell", - "proc-macro-crate 3.2.0", - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "borsh-derive-internal" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5449c28a7b352f2d1e592a8a28bf139bc71afb0764a14f3c02500935d8c44065" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "borsh-derive-internal" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65d6ba50644c98714aa2a70d13d7df3cd75cd2b523a2b452bf010443800976b3" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "borsh-schema-derive-internal" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdbd5696d8bfa21d53d9fe39a714a18538bad11492a42d066dbbc395fb1951c0" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "borsh-schema-derive-internal" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "276691d96f063427be83e6692b86148e488ebba9f48f77788724ca027ba3b6d4" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "bs58" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" - -[[package]] -name = "bs58" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "bumpalo" -version = "3.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" - -[[package]] -name = "bv" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340" -dependencies = [ - "feature-probe", - "serde", -] - -[[package]] -name = "bytemuck" -version = "1.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" -dependencies = [ - "bytemuck_derive", -] - -[[package]] -name = "bytemuck_derive" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "byteorder" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" - -[[package]] -name = "cargo_toml" -version = "0.19.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a98356df42a2eb1bd8f1793ae4ee4de48e384dd974ce5eac8eee802edb7492be" -dependencies = [ - "serde", - "toml 0.8.19", -] - -[[package]] -name = "carnival" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "cc" -version = "1.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a012a0df96dd6d06ba9a1b29d6402d1a5d77c6befd2566afdc26e10603dc93d7" -dependencies = [ - "jobserver", - "libc", - "shlex", -] - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "cfg_aliases" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" - -[[package]] -name = "checking-accounts-anchor-program-example" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "checking-accounts-program" -version = "0.1.0" -dependencies = [ - "solana-program 1.18.17", -] - -[[package]] -name = "chrono" -version = "0.4.39" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" -dependencies = [ - "num-traits", -] - -[[package]] -name = "cipher" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" -dependencies = [ - "generic-array", -] - -[[package]] -name = "close-account-native-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "close-account-program" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "console_error_panic_hook" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" -dependencies = [ - "cfg-if", - "wasm-bindgen", -] - -[[package]] -name = "console_log" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f" -dependencies = [ - "log", - "web-sys", -] - -[[package]] -name = "constant_time_eq" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" - -[[package]] -name = "counter-mpl-stack" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "shank", - "solana-program 1.18.17", -] - -[[package]] -name = "counter-solana-native" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "counter_anchor" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "cpufeatures" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" -dependencies = [ - "libc", -] - -[[package]] -name = "create-account-program" -version = "0.1.0" -dependencies = [ - "solana-program 1.18.17", -] - -[[package]] -name = "create-system-account" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" - -[[package]] -name = "crunchy" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" - -[[package]] -name = "crypto-common" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "crypto-mac" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" -dependencies = [ - "generic-array", - "subtle", -] - -[[package]] -name = "ctr" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea" -dependencies = [ - "cipher", -] - -[[package]] -name = "curve25519-dalek" -version = "3.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.5.1", - "serde", - "subtle", - "zeroize", -] - -[[package]] -name = "darling" -version = "0.20.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.20.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn 2.0.94", -] - -[[package]] -name = "darling_macro" -version = "0.20.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" -dependencies = [ - "darling_core", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "derivation-path" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" - -[[package]] -name = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "digest" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" -dependencies = [ - "generic-array", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer 0.10.4", - "crypto-common", - "subtle", -] - -[[package]] -name = "ed25519" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" -dependencies = [ - "signature", -] - -[[package]] -name = "ed25519-dalek" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" -dependencies = [ - "curve25519-dalek", - "ed25519", - "rand 0.7.3", - "serde", - "sha2 0.9.9", - "zeroize", -] - -[[package]] -name = "ed25519-dalek-bip32" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908" -dependencies = [ - "derivation-path", - "ed25519-dalek", - "hmac 0.12.1", - "sha2 0.10.8", -] - -[[package]] -name = "either" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" - -[[package]] -name = "env_logger" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "equivalent" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" - -[[package]] -name = "favorites-native" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 2.0.14", -] - -[[package]] -name = "feature-probe" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "serde", - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "js-sys", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", -] - -[[package]] -name = "getrandom" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" -dependencies = [ - "cfg-if", - "js-sys", - "libc", - "wasi 0.11.0+wasi-snapshot-preview1", - "wasm-bindgen", -] - -[[package]] -name = "hand" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "hashbrown" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" -dependencies = [ - "ahash 0.7.8", -] - -[[package]] -name = "hashbrown" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" -dependencies = [ - "ahash 0.8.11", -] - -[[package]] -name = "hashbrown" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" - -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "hello-solana-anchor" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "hello-solana-program" -version = "0.1.0" -dependencies = [ - "solana-program 1.18.17", -] - -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] - -[[package]] -name = "hmac" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" -dependencies = [ - "crypto-mac", - "digest 0.9.0", -] - -[[package]] -name = "hmac" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" -dependencies = [ - "digest 0.10.7", -] - -[[package]] -name = "hmac-drbg" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" -dependencies = [ - "digest 0.9.0", - "generic-array", - "hmac 0.8.1", -] - -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "im" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" -dependencies = [ - "bitmaps", - "rand_core 0.6.4", - "rand_xoshiro", - "rayon", - "serde", - "sized-chunks", - "typenum", - "version_check", -] - -[[package]] -name = "indexmap" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" -dependencies = [ - "equivalent", - "hashbrown 0.15.2", -] - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" - -[[package]] -name = "jobserver" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" -dependencies = [ - "libc", -] - -[[package]] -name = "js-sys" -version = "0.3.76" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" -dependencies = [ - "once_cell", - "wasm-bindgen", -] - -[[package]] -name = "keccak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" -dependencies = [ - "cpufeatures", -] - -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" - -[[package]] -name = "lever" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "libc" -version = "0.2.169" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" - -[[package]] -name = "libsecp256k1" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" -dependencies = [ - "arrayref", - "base64 0.12.3", - "digest 0.9.0", - "hmac-drbg", - "libsecp256k1-core", - "libsecp256k1-gen-ecmult", - "libsecp256k1-gen-genmult", - "rand 0.7.3", - "serde", - "sha2 0.9.9", - "typenum", -] - -[[package]] -name = "libsecp256k1-core" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" -dependencies = [ - "crunchy", - "digest 0.9.0", - "subtle", -] - -[[package]] -name = "libsecp256k1-gen-ecmult" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" -dependencies = [ - "libsecp256k1-core", -] - -[[package]] -name = "libsecp256k1-gen-genmult" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" -dependencies = [ - "libsecp256k1-core", -] - -[[package]] -name = "light-poseidon" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" -dependencies = [ - "ark-bn254", - "ark-ff", - "num-bigint", - "thiserror", -] - -[[package]] -name = "lock_api" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" -dependencies = [ - "autocfg", - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" - -[[package]] -name = "memchr" -version = "2.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" - -[[package]] -name = "memmap2" -version = "0.5.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" -dependencies = [ - "libc", -] - -[[package]] -name = "memoffset" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" -dependencies = [ - "autocfg", -] - -[[package]] -name = "merlin" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" -dependencies = [ - "byteorder", - "keccak", - "rand_core 0.6.4", - "zeroize", -] - -[[package]] -name = "num-bigint" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" -dependencies = [ - "num-integer", - "num-traits", -] - -[[package]] -name = "num-derive" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "num-derive" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "num-integer" -version = "0.1.46" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" -dependencies = [ - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" -dependencies = [ - "autocfg", -] - -[[package]] -name = "num_enum" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1" -dependencies = [ - "num_enum_derive 0.6.1", -] - -[[package]] -name = "num_enum" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" -dependencies = [ - "num_enum_derive 0.7.3", -] - -[[package]] -name = "num_enum_derive" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6" -dependencies = [ - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "num_enum_derive" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" -dependencies = [ - "proc-macro-crate 3.2.0", - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "once_cell" -version = "1.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" - -[[package]] -name = "opaque-debug" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" - -[[package]] -name = "parking_lot" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-targets", -] - -[[package]] -name = "paste" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" - -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac", -] - -[[package]] -name = "pbkdf2" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" -dependencies = [ - "digest 0.10.7", -] - -[[package]] -name = "pda-rent-payer" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "pda-rent-payer-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "percent-encoding" -version = "2.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" - -[[package]] -name = "polyval" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" -dependencies = [ - "cfg-if", - "cpufeatures", - "opaque-debug", - "universal-hash", -] - -[[package]] -name = "ppv-lite86" -version = "0.2.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" -dependencies = [ - "zerocopy", -] - -[[package]] -name = "proc-macro-crate" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" -dependencies = [ - "toml 0.5.11", -] - -[[package]] -name = "proc-macro-crate" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" -dependencies = [ - "once_cell", - "toml_edit 0.19.15", -] - -[[package]] -name = "proc-macro-crate" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" -dependencies = [ - "toml_edit 0.22.22", -] - -[[package]] -name = "proc-macro2" -version = "1.0.92" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "processing-instructions" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "processing-instructions-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "program-derived-addresses-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "qstring" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" -dependencies = [ - "percent-encoding", -] - -[[package]] -name = "qualifier_attr" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "quote" -version = "1.0.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] - -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom 0.2.15", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", -] - -[[package]] -name = "rand_xoshiro" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" -dependencies = [ - "rand_core 0.6.4", -] - -[[package]] -name = "rayon" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - -[[package]] -name = "realloc-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "redox_syscall" -version = "0.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" -dependencies = [ - "bitflags", -] - -[[package]] -name = "regex" -version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" - -[[package]] -name = "rent-example" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "repository-layout-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - -[[package]] -name = "rustc_version" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" -dependencies = [ - "semver", -] - -[[package]] -name = "rustversion" -version = "1.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" - -[[package]] -name = "ryu" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" - -[[package]] -name = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - -[[package]] -name = "semver" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" - -[[package]] -name = "serde" -version = "1.0.217" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_bytes" -version = "0.11.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_derive" -version = "1.0.217" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "serde_json" -version = "1.0.134" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d00f4175c42ee48b15416f6193a959ba3a0d67fc699a0db9ad12df9f83991c7d" -dependencies = [ - "itoa", - "memchr", - "ryu", - "serde", -] - -[[package]] -name = "serde_spanned" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_with" -version = "2.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" -dependencies = [ - "serde", - "serde_with_macros", -] - -[[package]] -name = "serde_with_macros" -version = "2.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "sha2" -version = "0.9.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" -dependencies = [ - "block-buffer 0.9.0", - "cfg-if", - "cpufeatures", - "digest 0.9.0", - "opaque-debug", -] - -[[package]] -name = "sha2" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest 0.10.7", -] - -[[package]] -name = "sha3" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" -dependencies = [ - "block-buffer 0.9.0", - "digest 0.9.0", - "keccak", - "opaque-debug", -] - -[[package]] -name = "sha3" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" -dependencies = [ - "digest 0.10.7", - "keccak", -] - -[[package]] -name = "shank" -version = "0.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2935c06d5a141ad2854622a014e30c5eeaa40096667df6bdd682dba9f8f81819" -dependencies = [ - "shank_macro", -] - -[[package]] -name = "shank_macro" -version = "0.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ab8a1eb550845e36c88007f4c00175eeeb436d2fc6c70d05207a338cba7519f" -dependencies = [ - "proc-macro2", - "quote", - "shank_macro_impl", - "syn 1.0.109", -] - -[[package]] -name = "shank_macro_impl" -version = "0.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23ec51b35f2336faaeff44daf8952ddee4fe3e3693a313804ae7366f18a9967d" -dependencies = [ - "anyhow", - "proc-macro2", - "quote", - "serde", - "syn 1.0.109", -] - -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - -[[package]] -name = "signature" -version = "1.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" - -[[package]] -name = "siphasher" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" - -[[package]] -name = "sized-chunks" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" -dependencies = [ - "bitmaps", - "typenum", -] - -[[package]] -name = "smallvec" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" - -[[package]] -name = "solana-frozen-abi" -version = "1.18.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4867f66e9527fa44451c861c1dc6d9b2a7c7a668d7c6a297cdefbe39f4395b33" -dependencies = [ - "block-buffer 0.10.4", - "bs58 0.4.0", - "bv", - "either", - "generic-array", - "im", - "lazy_static", - "log", - "memmap2", - "rustc_version", - "serde", - "serde_bytes", - "serde_derive", - "sha2 0.10.8", - "solana-frozen-abi-macro", - "subtle", - "thiserror", -] - -[[package]] -name = "solana-frozen-abi-macro" -version = "1.18.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168f24d97347b85f05192df58d6be3e3047a4aadc4001bc1b9e711a5ec878eea" -dependencies = [ - "proc-macro2", - "quote", - "rustc_version", - "syn 2.0.94", -] - -[[package]] -name = "solana-logger" -version = "1.18.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0511082fc62f2d086520fff5aa1917c389d8c840930c08ad255ae05952c08a2" -dependencies = [ - "env_logger", - "lazy_static", - "log", -] - -[[package]] -name = "solana-program" -version = "1.18.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bc5a636dc75e5c25651e34f7a36afc9ae60d38166687c5b0375abb580ac81a2" -dependencies = [ - "ark-bn254", - "ark-ec", - "ark-ff", - "ark-serialize", - "base64 0.21.7", - "bincode", - "bitflags", - "blake3", - "borsh 0.10.4", - "borsh 0.9.3", - "borsh 1.5.3", - "bs58 0.4.0", - "bv", - "bytemuck", - "cc", - "console_error_panic_hook", - "console_log", - "curve25519-dalek", - "getrandom 0.2.15", - "itertools", - "js-sys", - "lazy_static", - "libc", - "libsecp256k1", - "light-poseidon", - "log", - "memoffset", - "num-bigint", - "num-derive 0.4.2", - "num-traits", - "parking_lot", - "rand 0.8.5", - "rustc_version", - "rustversion", - "serde", - "serde_bytes", - "serde_derive", - "serde_json", - "sha2 0.10.8", - "sha3 0.10.8", - "solana-frozen-abi", - "solana-frozen-abi-macro", - "solana-sdk-macro 1.18.17", - "thiserror", - "tiny-bip39", - "wasm-bindgen", - "zeroize", -] - -[[package]] -name = "solana-program" -version = "2.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2625a23c3813b620141ee447819b08d1b9a5f1c69a309754834e3f35798a21fb" -dependencies = [ - "ark-bn254", - "ark-ec", - "ark-ff", - "ark-serialize", - "base64 0.22.1", - "bincode", - "bitflags", - "blake3", - "borsh 0.10.4", - "borsh 1.5.3", - "bs58 0.5.1", - "bv", - "bytemuck", - "bytemuck_derive", - "console_error_panic_hook", - "console_log", - "curve25519-dalek", - "getrandom 0.2.15", - "js-sys", - "lazy_static", - "libsecp256k1", - "log", - "memoffset", - "num-bigint", - "num-derive 0.4.2", - "num-traits", - "parking_lot", - "rand 0.8.5", - "rustc_version", - "rustversion", - "serde", - "serde_bytes", - "serde_derive", - "sha2 0.10.8", - "sha3 0.10.8", - "solana-sdk-macro 2.0.14", - "thiserror", - "wasm-bindgen", -] - -[[package]] -name = "solana-sdk" -version = "1.18.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df43d3a1e1637397ab43cbc216a5a8f977ec8a3cc3f3ae8c3851c83a3255dbcf" -dependencies = [ - "assert_matches", - "base64 0.21.7", - "bincode", - "bitflags", - "borsh 1.5.3", - "bs58 0.4.0", - "bytemuck", - "byteorder", - "chrono", - "derivation-path", - "digest 0.10.7", - "ed25519-dalek", - "ed25519-dalek-bip32", - "generic-array", - "hmac 0.12.1", - "itertools", - "js-sys", - "lazy_static", - "libsecp256k1", - "log", - "memmap2", - "num-derive 0.4.2", - "num-traits", - "num_enum 0.7.3", - "pbkdf2 0.11.0", - "qstring", - "qualifier_attr", - "rand 0.7.3", - "rand 0.8.5", - "rustc_version", - "rustversion", - "serde", - "serde_bytes", - "serde_derive", - "serde_json", - "serde_with", - "sha2 0.10.8", - "sha3 0.10.8", - "siphasher", - "solana-frozen-abi", - "solana-frozen-abi-macro", - "solana-logger", - "solana-program 1.18.17", - "solana-sdk-macro 1.18.17", - "thiserror", - "uriparse", - "wasm-bindgen", -] - -[[package]] -name = "solana-sdk-macro" -version = "1.18.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86c76414183a325038ff020b22c07d1e9d2da0703ddc0244acfed37ee2921d96" -dependencies = [ - "bs58 0.4.0", - "proc-macro2", - "quote", - "rustversion", - "syn 2.0.94", -] - -[[package]] -name = "solana-sdk-macro" -version = "2.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93a5a1eabc890415d326707afe62cd7a2009236e8d899c1519566fc8f7e3977b" -dependencies = [ - "bs58 0.5.1", - "proc-macro2", - "quote", - "rustversion", - "syn 2.0.94", -] - -[[package]] -name = "solana-security-txt" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" - -[[package]] -name = "solana-zk-token-sdk" -version = "1.18.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "513407f88394e437b4ff5aad892bc5bf51a655ae2401e6e63549734d3695c46f" -dependencies = [ - "aes-gcm-siv", - "base64 0.21.7", - "bincode", - "bytemuck", - "byteorder", - "curve25519-dalek", - "getrandom 0.1.16", - "itertools", - "lazy_static", - "merlin", - "num-derive 0.4.2", - "num-traits", - "rand 0.7.3", - "serde", - "serde_json", - "sha3 0.9.1", - "solana-program 1.18.17", - "solana-sdk", - "subtle", - "thiserror", - "zeroize", -] - -[[package]] -name = "spl-associated-token-account" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "992d9c64c2564cc8f63a4b508bf3ebcdf2254b0429b13cd1d31adb6162432a5f" -dependencies = [ - "assert_matches", - "borsh 0.10.4", - "num-derive 0.4.2", - "num-traits", - "solana-program 1.18.17", - "spl-token", - "spl-token-2022 1.0.0", - "thiserror", -] - -[[package]] -name = "spl-discriminator" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cce5d563b58ef1bb2cdbbfe0dfb9ffdc24903b10ae6a4df2d8f425ece375033f" -dependencies = [ - "bytemuck", - "solana-program 1.18.17", - "spl-discriminator-derive", -] - -[[package]] -name = "spl-discriminator-derive" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07fd7858fc4ff8fb0e34090e41d7eb06a823e1057945c26d480bfc21d2338a93" -dependencies = [ - "quote", - "spl-discriminator-syn", - "syn 2.0.94", -] - -[[package]] -name = "spl-discriminator-syn" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18fea7be851bd98d10721782ea958097c03a0c2a07d8d4997041d0ece6319a63" -dependencies = [ - "proc-macro2", - "quote", - "sha2 0.10.8", - "syn 2.0.94", - "thiserror", -] - -[[package]] -name = "spl-memo" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd0dc6f70db6bacea7ff25870b016a65ba1d1b6013536f08e4fd79a8f9005325" -dependencies = [ - "solana-program 1.18.17", -] - -[[package]] -name = "spl-memo" -version = "4.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a49f49f95f2d02111ded31696ab38a081fab623d4c76bd4cb074286db4560836" -dependencies = [ - "solana-program 1.18.17", -] - -[[package]] -name = "spl-pod" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2881dddfca792737c0706fa0175345ab282b1b0879c7d877bad129645737c079" -dependencies = [ - "borsh 0.10.4", - "bytemuck", - "solana-program 1.18.17", - "solana-zk-token-sdk", - "spl-program-error 0.3.0", -] - -[[package]] -name = "spl-program-error" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af92f74cd3b0fdfda59fef4b571a92123e4df0f67cc43f73163975d31118ef82" -dependencies = [ - "num-derive 0.3.3", - "num-traits", - "solana-program 1.18.17", - "spl-program-error-derive 0.2.0", - "thiserror", -] - -[[package]] -name = "spl-program-error" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "249e0318493b6bcf27ae9902600566c689b7dfba9f1bdff5893e92253374e78c" -dependencies = [ - "num-derive 0.4.2", - "num-traits", - "solana-program 1.18.17", - "spl-program-error-derive 0.3.2", - "thiserror", -] - -[[package]] -name = "spl-program-error-derive" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "173f3cc506847882189b3a5b67299f617fed2f9730f122dd197b82e1e213dee5" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "spl-program-error-derive" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1845dfe71fd68f70382232742e758557afe973ae19e6c06807b2c30f5d5cb474" -dependencies = [ - "proc-macro2", - "quote", - "sha2 0.10.8", - "syn 2.0.94", -] - -[[package]] -name = "spl-tlv-account-resolution" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82149a5a06b5f158d03904066375eaf0c8a2422557cc3d5a25d277260d9a3b16" -dependencies = [ - "bytemuck", - "solana-program 1.18.17", - "spl-discriminator", - "spl-program-error 0.2.0", - "spl-type-length-value 0.2.0", -] - -[[package]] -name = "spl-tlv-account-resolution" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "615d381f48ddd2bb3c57c7f7fb207591a2a05054639b18a62e785117dd7a8683" -dependencies = [ - "bytemuck", - "solana-program 1.18.17", - "spl-discriminator", - "spl-pod", - "spl-program-error 0.3.0", - "spl-type-length-value 0.3.0", -] - -[[package]] -name = "spl-token" -version = "4.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9eb465e4bf5ce1d498f05204c8089378c1ba34ef2777ea95852fc53a1fd4fb2" -dependencies = [ - "arrayref", - "bytemuck", - "num-derive 0.4.2", - "num-traits", - "num_enum 0.7.3", - "solana-program 1.18.17", - "thiserror", -] - -[[package]] -name = "spl-token-2022" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b24ac5786a3fefbf59f5606312c61abf87b23154e7a717e5d18216fbea4711db" -dependencies = [ - "arrayref", - "bytemuck", - "num-derive 0.3.3", - "num-traits", - "num_enum 0.6.1", - "solana-program 1.18.17", - "solana-zk-token-sdk", - "spl-memo 3.0.1", - "spl-token", - "spl-transfer-hook-interface 0.1.0", - "thiserror", -] - -[[package]] -name = "spl-token-2022" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d697fac19fd74ff472dfcc13f0b442dd71403178ce1de7b5d16f83a33561c059" -dependencies = [ - "arrayref", - "bytemuck", - "num-derive 0.4.2", - "num-traits", - "num_enum 0.7.3", - "solana-program 1.18.17", - "solana-security-txt", - "solana-zk-token-sdk", - "spl-memo 4.0.4", - "spl-pod", - "spl-token", - "spl-token-group-interface", - "spl-token-metadata-interface", - "spl-transfer-hook-interface 0.4.1", - "spl-type-length-value 0.3.0", - "thiserror", -] - -[[package]] -name = "spl-token-group-interface" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b889509d49fa74a4a033ca5dae6c2307e9e918122d97e58562f5c4ffa795c75d" -dependencies = [ - "bytemuck", - "solana-program 1.18.17", - "spl-discriminator", - "spl-pod", - "spl-program-error 0.3.0", -] - -[[package]] -name = "spl-token-metadata-interface" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c16ce3ba6979645fb7627aa1e435576172dd63088dc7848cb09aa331fa1fe4f" -dependencies = [ - "borsh 0.10.4", - "solana-program 1.18.17", - "spl-discriminator", - "spl-pod", - "spl-program-error 0.3.0", - "spl-type-length-value 0.3.0", -] - -[[package]] -name = "spl-transfer-hook-interface" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a2326852adf88716fbac7f54cd6ee2c8a0b5a14ede24db3b4519c4ff13df04b" -dependencies = [ - "arrayref", - "bytemuck", - "num-derive 0.3.3", - "num-traits", - "num_enum 0.6.1", - "solana-program 1.18.17", - "spl-discriminator", - "spl-tlv-account-resolution 0.2.0", - "spl-type-length-value 0.2.0", - "thiserror", -] - -[[package]] -name = "spl-transfer-hook-interface" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7aabdb7c471566f6ddcee724beb8618449ea24b399e58d464d6b5bc7db550259" -dependencies = [ - "arrayref", - "bytemuck", - "solana-program 1.18.17", - "spl-discriminator", - "spl-pod", - "spl-program-error 0.3.0", - "spl-tlv-account-resolution 0.5.1", - "spl-type-length-value 0.3.0", -] - -[[package]] -name = "spl-type-length-value" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1d085f426b33b8365fb98383d1b8b3925e21bdfe579c851ceaa7f511dbec191" -dependencies = [ - "bytemuck", - "solana-program 1.18.17", - "spl-discriminator", - "spl-program-error 0.2.0", -] - -[[package]] -name = "spl-type-length-value" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a468e6f6371f9c69aae760186ea9f1a01c2908351b06a5e0026d21cfc4d7ecac" -dependencies = [ - "bytemuck", - "solana-program 1.18.17", - "spl-discriminator", - "spl-pod", - "spl-program-error 0.3.0", -] - -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "subtle" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" - -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "syn" -version = "2.0.94" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "987bc0be1cdea8b10216bd06e2ca407d40b9543468fafd3ddfb02f36e77f71f3" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "thiserror" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "tiny-bip39" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.9", - "thiserror", - "unicode-normalization", - "wasm-bindgen", - "zeroize", -] - -[[package]] -name = "tinyvec" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - -[[package]] -name = "token-2022-default-account-state-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", - "spl-associated-token-account", - "spl-token-2022 0.7.0", -] - -[[package]] -name = "token-2022-mint-close-authority-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", - "spl-associated-token-account", - "spl-token-2022 0.7.0", -] - -[[package]] -name = "token-2022-multiple-extensions-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", - "spl-associated-token-account", - "spl-token-2022 0.7.0", -] - -[[package]] -name = "token-2022-non-transferable-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", - "spl-associated-token-account", - "spl-token-2022 0.7.0", -] - -[[package]] -name = "token-2022-transfer-fees-program" -version = "0.1.0" -dependencies = [ - "borsh 0.10.4", - "borsh-derive 0.9.3", - "solana-program 1.18.17", - "spl-associated-token-account", - "spl-token-2022 0.7.0", -] - -[[package]] -name = "toml" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" -dependencies = [ - "serde", -] - -[[package]] -name = "toml" -version = "0.8.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit 0.22.22", -] - -[[package]] -name = "toml_datetime" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" -dependencies = [ - "serde", -] - -[[package]] -name = "toml_edit" -version = "0.19.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" -dependencies = [ - "indexmap", - "toml_datetime", - "winnow 0.5.40", -] - -[[package]] -name = "toml_edit" -version = "0.22.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" -dependencies = [ - "indexmap", - "serde", - "serde_spanned", - "toml_datetime", - "winnow 0.6.22", -] - -[[package]] -name = "transfer-sol" -version = "0.1.0" -dependencies = [ - "anchor-lang", -] - -[[package]] -name = "transfer-sol-program" -version = "0.1.0" -dependencies = [ - "borsh 0.9.3", - "borsh-derive 0.9.3", - "solana-program 1.18.17", -] - -[[package]] -name = "typenum" -version = "1.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" - -[[package]] -name = "unicode-ident" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" - -[[package]] -name = "unicode-normalization" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "unicode-segmentation" -version = "1.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" - -[[package]] -name = "universal-hash" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" -dependencies = [ - "generic-array", - "subtle", -] - -[[package]] -name = "uriparse" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff" -dependencies = [ - "fnv", - "lazy_static", -] - -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" - -[[package]] -name = "wasm-bindgen" -version = "0.2.99" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" -dependencies = [ - "cfg-if", - "once_cell", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.99" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" -dependencies = [ - "bumpalo", - "log", - "proc-macro2", - "quote", - "syn 2.0.94", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.99" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.99" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.99" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" - -[[package]] -name = "web-sys" -version = "0.3.76" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" -dependencies = [ - "windows-sys", -] - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" - -[[package]] -name = "winnow" -version = "0.5.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" -dependencies = [ - "memchr", -] - -[[package]] -name = "winnow" -version = "0.6.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39281189af81c07ec09db316b302a3e67bf9bd7cbf6c820b50e35fee9c2fa980" -dependencies = [ - "memchr", -] - -[[package]] -name = "zerocopy" -version = "0.7.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" -dependencies = [ - "byteorder", - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.7.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - -[[package]] -name = "zeroize" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" -dependencies = [ - "zeroize_derive", -] - -[[package]] -name = "zeroize_derive" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] diff --git a/Cargo.toml b/Cargo.toml deleted file mode 100644 index 63da63947..000000000 --- a/Cargo.toml +++ /dev/null @@ -1,42 +0,0 @@ -[workspace] -members = [ - #basics - "basics/account-data/native/program", - "basics/account-data/anchor/programs/anchor-program-example", - "basics/checking-accounts/native/program", - "basics/checking-accounts/anchor/programs/anchor-program-example", - "basics/close-account/native/program", - "basics/close-account/anchor/programs/close-account", - "basics/counter/native/program", - "basics/counter/anchor/programs/counter_anchor", - "basics/counter/mpl-stack", - "basics/create-account/native/program", - "basics/create-account/anchor/programs/create-system-account", - "basics/cross-program-invocation/anchor/programs/*", - "basics/hello-solana/native/program", - "basics/hello-solana/anchor/programs/*", - "basics/pda-rent-payer/native/program", - "basics/pda-rent-payer/anchor/programs/*", - "basics/processing-instructions/native/program", - "basics/processing-instructions/anchor/programs/*", - "basics/program-derived-addresses/native/program", - "basics/program-derived-addresses/anchor/programs/*", - "basics/realloc/native/program", - "basics/realloc/anchor/programs/*", - "basics/rent/native/program", - "basics/rent/anchor/programs/*", - "basics/favorites/native/program", - "basics/repository-layout/native/program", - "basics/repository-layout/anchor/programs/*", - "basics/transfer-sol/native/program", - "basics/transfer-sol/anchor/programs/*", - "tokens/token-2022/mint-close-authority/native/program", - "tokens/token-2022/non-transferable/native/program", - "tokens/token-2022/default-account-state/native/program", - "tokens/token-2022/transfer-fee/native/program", - "tokens/token-2022/multiple-extensions/native/program", -] -resolver = "2" - -[profile.release] -overflow-checks = true diff --git a/basics/favorites/native/program/Cargo.toml b/basics/favorites/native/program/Cargo.toml index 6ffe6c27e..d62199520 100644 --- a/basics/favorites/native/program/Cargo.toml +++ b/basics/favorites/native/program/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] borsh = "0.9.3" -solana-program = "=2.0.14" +solana-program = "=1.18.17" borsh-derive = "0.9.1" [lib] diff --git a/basics/favorites/native/program/src/instructions/create_pda.rs b/basics/favorites/native/program/src/instructions/create_pda.rs index 5f4733505..d98c8e5a0 100644 --- a/basics/favorites/native/program/src/instructions/create_pda.rs +++ b/basics/favorites/native/program/src/instructions/create_pda.rs @@ -55,7 +55,7 @@ pub fn create_pda(program_id: &Pubkey, accounts: &[AccountInfo], data: Favorites data.serialize(&mut &mut favorite_account.data.borrow_mut()[..])?; msg!("{:#?}", data); } else { - return Err(ProgramError::AccountAlreadyInitialized.into()); + return Err(ProgramError::AccountAlreadyInitialized); } Ok(()) From c8db010e41a322cf4ebe87c83be96405754c4a14 Mon Sep 17 00:00:00 2001 From: Ayush Date: Sun, 5 Jan 2025 00:54:35 +0530 Subject: [PATCH 06/10] added cargo.lock again --- Cargo.lock | 3633 ++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 42 + 2 files changed, 3675 insertions(+) create mode 100644 Cargo.lock create mode 100644 Cargo.toml diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 000000000..f23b5fbbb --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,3633 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "account-data-anchor-program-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "account-data-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "aead" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" +dependencies = [ + "generic-array", +] + +[[package]] +name = "aes" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", + "opaque-debug", +] + +[[package]] +name = "aes-gcm-siv" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589c637f0e68c877bbd59a4599bbe849cac8e5f3e4b5a3ebae8f528cd218dcdc" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "polyval", + "subtle", + "zeroize", +] + +[[package]] +name = "ahash" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +dependencies = [ + "getrandom 0.2.15", + "once_cell", + "version_check", +] + +[[package]] +name = "ahash" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +dependencies = [ + "memchr", +] + +[[package]] +name = "anchor-attribute-access-control" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47fe28365b33e8334dd70ae2f34a43892363012fe239cf37d2ee91693575b1f8" +dependencies = [ + "anchor-syn", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-account" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c288d496168268d198d9b53ee9f4f9d260a55ba4df9877ea1d4486ad6109e0f" +dependencies = [ + "anchor-syn", + "bs58 0.5.1", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-constant" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49b77b6948d0eeaaa129ce79eea5bbbb9937375a9241d909ca8fb9e006bb6e90" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-error" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d20bb569c5a557c86101b944721d865e1fd0a4c67c381d31a44a84f07f84828" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-event" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cebd8d0671a3a9dc3160c48598d652c34c77de6be4d44345b8b514323284d57" +dependencies = [ + "anchor-syn", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-attribute-program" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efb2a5eb0860e661ab31aff7bb5e0288357b176380e985bade4ccb395981b42d" +dependencies = [ + "anchor-lang-idl", + "anchor-syn", + "anyhow", + "bs58 0.5.1", + "heck", + "proc-macro2", + "quote", + "serde_json", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-accounts" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04368b5abef4266250ca8d1d12f4dff860242681e4ec22b885dcfe354fd35aa1" +dependencies = [ + "anchor-syn", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-serde" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0bb0e0911ad4a70cab880cdd6287fe1e880a1a9d8e4e6defa8e9044b9796a6c" +dependencies = [ + "anchor-syn", + "borsh-derive-internal 0.10.4", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-derive-space" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ef415ff156dc82e9ecb943189b0cb241b3a6bfc26a180234dc21bd3ef3ce0cb" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "anchor-lang" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e41feb9c1cd9f4b0fad1c004fc8f289183f3ce27e9db38fa6e434470c716fb1e" +dependencies = [ + "anchor-attribute-access-control", + "anchor-attribute-account", + "anchor-attribute-constant", + "anchor-attribute-error", + "anchor-attribute-event", + "anchor-attribute-program", + "anchor-derive-accounts", + "anchor-derive-serde", + "anchor-derive-space", + "anchor-lang-idl", + "arrayref", + "base64 0.21.7", + "bincode", + "borsh 0.10.4", + "bytemuck", + "getrandom 0.2.15", + "solana-program 1.18.17", + "thiserror", +] + +[[package]] +name = "anchor-lang-idl" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31cf97b4e6f7d6144a05e435660fcf757dbc3446d38d0e2b851d11ed13625bba" +dependencies = [ + "anchor-lang-idl-spec", + "anyhow", + "heck", + "regex", + "serde", + "serde_json", + "sha2 0.10.8", +] + +[[package]] +name = "anchor-lang-idl-spec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bdf143115440fe621bdac3a29a1f7472e09f6cd82b2aa569429a0c13f103838" +dependencies = [ + "anyhow", + "serde", +] + +[[package]] +name = "anchor-program-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "anchor-realloc" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "anchor-syn" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f99daacb53b55cfd37ce14d6c9905929721137fd4c67bbab44a19802aecb622f" +dependencies = [ + "anyhow", + "bs58 0.5.1", + "cargo_toml", + "heck", + "proc-macro2", + "quote", + "serde", + "serde_json", + "sha2 0.10.8", + "syn 1.0.109", + "thiserror", +] + +[[package]] +name = "anyhow" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" + +[[package]] +name = "ark-bn254" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-std", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", + "itertools", + "num-traits", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm", + "ark-ff-macros", + "ark-serialize", + "ark-std", + "derivative", + "digest 0.10.7", + "itertools", + "num-bigint", + "num-traits", + "paste", + "rustc_version", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-serialize-derive", + "ark-std", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "assert_matches" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +dependencies = [ + "serde", +] + +[[package]] +name = "bitmaps" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" +dependencies = [ + "typenum", +] + +[[package]] +name = "blake3" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "digest 0.10.7", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "block-padding", + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-padding" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" + +[[package]] +name = "borsh" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15bf3650200d8bffa99015595e10f1fbd17de07abbc25bb067da79e769939bfa" +dependencies = [ + "borsh-derive 0.9.3", + "hashbrown 0.11.2", +] + +[[package]] +name = "borsh" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115e54d64eb62cdebad391c19efc9dce4981c690c85a33a12199d99bb9546fee" +dependencies = [ + "borsh-derive 0.10.4", + "hashbrown 0.13.2", +] + +[[package]] +name = "borsh" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2506947f73ad44e344215ccd6403ac2ae18cd8e046e581a441bf8d199f257f03" +dependencies = [ + "borsh-derive 1.5.3", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775" +dependencies = [ + "borsh-derive-internal 0.9.3", + "borsh-schema-derive-internal 0.9.3", + "proc-macro-crate 0.1.5", + "proc-macro2", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831213f80d9423998dd696e2c5345aba6be7a0bd8cd19e31c5243e13df1cef89" +dependencies = [ + "borsh-derive-internal 0.10.4", + "borsh-schema-derive-internal 0.10.4", + "proc-macro-crate 0.1.5", + "proc-macro2", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2593a3b8b938bd68373196c9832f516be11fa487ef4ae745eb282e6a56a7244" +dependencies = [ + "once_cell", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "borsh-derive-internal" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5449c28a7b352f2d1e592a8a28bf139bc71afb0764a14f3c02500935d8c44065" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65d6ba50644c98714aa2a70d13d7df3cd75cd2b523a2b452bf010443800976b3" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-schema-derive-internal" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdbd5696d8bfa21d53d9fe39a714a18538bad11492a42d066dbbc395fb1951c0" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-schema-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "276691d96f063427be83e6692b86148e488ebba9f48f77788724ca027ba3b6d4" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "bs58" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" + +[[package]] +name = "bv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340" +dependencies = [ + "feature-probe", + "serde", +] + +[[package]] +name = "bytemuck" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "cargo_toml" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a98356df42a2eb1bd8f1793ae4ee4de48e384dd974ce5eac8eee802edb7492be" +dependencies = [ + "serde", + "toml 0.8.19", +] + +[[package]] +name = "carnival" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "cc" +version = "1.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a012a0df96dd6d06ba9a1b29d6402d1a5d77c6befd2566afdc26e10603dc93d7" +dependencies = [ + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "checking-accounts-anchor-program-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "checking-accounts-program" +version = "0.1.0" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "chrono" +version = "0.4.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" +dependencies = [ + "num-traits", +] + +[[package]] +name = "cipher" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" +dependencies = [ + "generic-array", +] + +[[package]] +name = "close-account-native-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "close-account-program" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + +[[package]] +name = "console_log" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f" +dependencies = [ + "log", + "web-sys", +] + +[[package]] +name = "constant_time_eq" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" + +[[package]] +name = "counter-mpl-stack" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "shank", + "solana-program 1.18.17", +] + +[[package]] +name = "counter-solana-native" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "solana-program 2.1.7", +] + +[[package]] +name = "counter_anchor" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "cpufeatures" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" +dependencies = [ + "libc", +] + +[[package]] +name = "create-account-program" +version = "0.1.0" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "create-system-account" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "crypto-mac" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "ctr" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea" +dependencies = [ + "cipher", +] + +[[package]] +name = "curve25519-dalek" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0" +dependencies = [ + "byteorder", + "digest 0.9.0", + "rand_core 0.5.1", + "serde", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rand_core 0.6.4", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "darling" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.94", +] + +[[package]] +name = "darling_macro" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "derivation-path" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common", + "subtle", +] + +[[package]] +name = "ed25519" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +dependencies = [ + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +dependencies = [ + "curve25519-dalek 3.2.1", + "ed25519", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "zeroize", +] + +[[package]] +name = "ed25519-dalek-bip32" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908" +dependencies = [ + "derivation-path", + "ed25519-dalek", + "hmac 0.12.1", + "sha2 0.10.8", +] + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + +[[package]] +name = "env_logger" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "favorites-native" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "feature-probe" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "five8_const" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b4f62f0f8ca357f93ae90c8c2dd1041a1f665fde2f889ea9b1787903829015" +dependencies = [ + "five8_core", +] + +[[package]] +name = "five8_core" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94474d15a76982be62ca8a39570dccce148d98c238ebb7408b0a21b2c4bdddc4" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "serde", + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "hand" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "hashbrown" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +dependencies = [ + "ahash 0.7.8", +] + +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash 0.8.11", +] + +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "hello-solana-anchor" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "hello-solana-program" +version = "0.1.0" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "hmac-drbg" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" +dependencies = [ + "digest 0.9.0", + "generic-array", + "hmac 0.8.1", +] + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "im" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" +dependencies = [ + "bitmaps", + "rand_core 0.6.4", + "rand_xoshiro", + "rayon", + "serde", + "sized-chunks", + "typenum", + "version_check", +] + +[[package]] +name = "indexmap" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" +dependencies = [ + "equivalent", + "hashbrown 0.15.2", +] + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" + +[[package]] +name = "jobserver" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" +dependencies = [ + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "lever" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "libc" +version = "0.2.169" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" + +[[package]] +name = "libsecp256k1" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" +dependencies = [ + "arrayref", + "base64 0.12.3", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core", + "libsecp256k1-gen-ecmult", + "libsecp256k1-gen-genmult", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "typenum", +] + +[[package]] +name = "libsecp256k1-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "light-poseidon" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" +dependencies = [ + "ark-bn254", + "ark-ff", + "num-bigint", + "thiserror", +] + +[[package]] +name = "lock_api" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "memmap2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-derive" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1" +dependencies = [ + "num_enum_derive 0.6.1", +] + +[[package]] +name = "num_enum" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" +dependencies = [ + "num_enum_derive 0.7.3", +] + +[[package]] +name = "num_enum_derive" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" +dependencies = [ + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "once_cell" +version = "1.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "parking_lot" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pbkdf2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +dependencies = [ + "crypto-mac", +] + +[[package]] +name = "pbkdf2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "pda-rent-payer" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "pda-rent-payer-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "polyval" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" +dependencies = [ + "cfg-if", + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml 0.5.11", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" +dependencies = [ + "toml_edit 0.22.22", +] + +[[package]] +name = "proc-macro2" +version = "1.0.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "processing-instructions" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "processing-instructions-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "program-derived-addresses-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "qstring" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "qualifier_attr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "quote" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.15", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_xoshiro" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "rayon" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "realloc-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "redox_syscall" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" + +[[package]] +name = "rent-example" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "repository-layout-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + +[[package]] +name = "ryu" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "semver" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" + +[[package]] +name = "serde" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_bytes" +version = "0.11.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "serde_json" +version = "1.0.134" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d00f4175c42ee48b15416f6193a959ba3a0d67fc699a0db9ad12df9f83991c7d" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", +] + +[[package]] +name = "serde_spanned" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_with" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" +dependencies = [ + "serde", + "serde_with_macros", +] + +[[package]] +name = "serde_with_macros" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures", + "digest 0.9.0", + "opaque-debug", +] + +[[package]] +name = "sha2" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha3" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" +dependencies = [ + "block-buffer 0.9.0", + "digest 0.9.0", + "keccak", + "opaque-debug", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest 0.10.7", + "keccak", +] + +[[package]] +name = "shank" +version = "0.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2935c06d5a141ad2854622a014e30c5eeaa40096667df6bdd682dba9f8f81819" +dependencies = [ + "shank_macro", +] + +[[package]] +name = "shank_macro" +version = "0.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ab8a1eb550845e36c88007f4c00175eeeb436d2fc6c70d05207a338cba7519f" +dependencies = [ + "proc-macro2", + "quote", + "shank_macro_impl", + "syn 1.0.109", +] + +[[package]] +name = "shank_macro_impl" +version = "0.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23ec51b35f2336faaeff44daf8952ddee4fe3e3693a313804ae7366f18a9967d" +dependencies = [ + "anyhow", + "proc-macro2", + "quote", + "serde", + "syn 1.0.109", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signature" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "sized-chunks" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" +dependencies = [ + "bitmaps", + "typenum", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "solana-account-info" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8378a48833ee7f828e20a63e93a6cdaef1313a8fd8f71a90b243df83295987b1" +dependencies = [ + "bincode", + "serde", + "solana-program-error", + "solana-program-memory", + "solana-pubkey", +] + +[[package]] +name = "solana-atomic-u64" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc6f9da603778bbee6402ee2526a3b219b85497c10e49f9c7c112ed8836f46d3" +dependencies = [ + "parking_lot", +] + +[[package]] +name = "solana-bincode" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb75b5d25ae05cfddb8b9b53512f17c18c29e3c92b7a848f39598473e6bf6484" +dependencies = [ + "bincode", + "serde", + "solana-instruction", +] + +[[package]] +name = "solana-borsh" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "055c45b7aae61c8c7b26a537f7a8387cc8a10036081ddfd7170a7a9b4d924ffd" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.3", +] + +[[package]] +name = "solana-clock" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d6af32497acc6bb09d8150ea6f53df25dbad713991741999d46688beaf944e" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro 2.1.7", + "solana-sysvar-id", +] + +[[package]] +name = "solana-cpi" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "380b06ac8e2ebf8a5b8a54645b721f92f5d7a6d116550bbf1817167cc48abeb1" +dependencies = [ + "solana-account-info", + "solana-define-syscall", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-stable-layout", +] + +[[package]] +name = "solana-decode-error" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99f2fe3170045ae27951ae476a0c88a40130b242736f033ba5e353cd6f816b8e" +dependencies = [ + "num-traits", +] + +[[package]] +name = "solana-define-syscall" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14a80d323dbe8866aaefb40e3c11564d82f77894d193fa66583e793f3d845723" + +[[package]] +name = "solana-epoch-schedule" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "276fda33b7de27df41e3043f344e517d5e85ab345d2f2aa2425d1011bac570c4" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro 2.1.7", + "solana-sysvar-id", +] + +[[package]] +name = "solana-fee-calculator" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc0371153eda80024109800051b87bab11f056fae260ca477a50875aaffdfde" +dependencies = [ + "log", + "serde", + "serde_derive", +] + +[[package]] +name = "solana-frozen-abi" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4867f66e9527fa44451c861c1dc6d9b2a7c7a668d7c6a297cdefbe39f4395b33" +dependencies = [ + "block-buffer 0.10.4", + "bs58 0.4.0", + "bv", + "either", + "generic-array", + "im", + "lazy_static", + "log", + "memmap2", + "rustc_version", + "serde", + "serde_bytes", + "serde_derive", + "sha2 0.10.8", + "solana-frozen-abi-macro", + "subtle", + "thiserror", +] + +[[package]] +name = "solana-frozen-abi-macro" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "168f24d97347b85f05192df58d6be3e3047a4aadc4001bc1b9e711a5ec878eea" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.94", +] + +[[package]] +name = "solana-hash" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7067f2bd1e9c3f28153484f03e44bf8dc73cededa6bc132e40de9bfc667b8534" +dependencies = [ + "borsh 1.5.3", + "bs58 0.5.1", + "bytemuck", + "bytemuck_derive", + "js-sys", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-sanitize", + "wasm-bindgen", +] + +[[package]] +name = "solana-instruction" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dbf607aff88e4f17079a33d34517b7f379d752dfa0496a94cea798a91e6f6ee" +dependencies = [ + "bincode", + "borsh 1.5.3", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-define-syscall", + "solana-pubkey", + "wasm-bindgen", +] + +[[package]] +name = "solana-last-restart-slot" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38f2ee9af7a2815137c60d77cb930c26480bc802b55e00d9e230e81fd308062e" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro 2.1.7", + "solana-sysvar-id", +] + +[[package]] +name = "solana-logger" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0511082fc62f2d086520fff5aa1917c389d8c840930c08ad255ae05952c08a2" +dependencies = [ + "env_logger", + "lazy_static", + "log", +] + +[[package]] +name = "solana-msg" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "406cd9c6ed9d4d036da00c958f0f98edb248c08eb596975011a30063ac3aa902" +dependencies = [ + "solana-define-syscall", +] + +[[package]] +name = "solana-native-token" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08ef55ad8dcc8c5f21e2bbbc7298fa59550269e8bdf2c6976c4de626ea8a0069" + +[[package]] +name = "solana-program" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bc5a636dc75e5c25651e34f7a36afc9ae60d38166687c5b0375abb580ac81a2" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", + "base64 0.21.7", + "bincode", + "bitflags", + "blake3", + "borsh 0.10.4", + "borsh 0.9.3", + "borsh 1.5.3", + "bs58 0.4.0", + "bv", + "bytemuck", + "cc", + "console_error_panic_hook", + "console_log", + "curve25519-dalek 3.2.1", + "getrandom 0.2.15", + "itertools", + "js-sys", + "lazy_static", + "libc", + "libsecp256k1", + "light-poseidon", + "log", + "memoffset", + "num-bigint", + "num-derive 0.4.2", + "num-traits", + "parking_lot", + "rand 0.8.5", + "rustc_version", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "sha2 0.10.8", + "sha3 0.10.8", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-sdk-macro 1.18.17", + "thiserror", + "tiny-bip39", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "solana-program" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99c693c5c392bacc44e7a86baa18069eb966d88afbc9040219ca000e873fb02e" +dependencies = [ + "base64 0.22.1", + "bincode", + "bitflags", + "blake3", + "borsh 0.10.4", + "borsh 1.5.3", + "bs58 0.5.1", + "bv", + "bytemuck", + "bytemuck_derive", + "console_error_panic_hook", + "console_log", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "lazy_static", + "log", + "memoffset", + "num-bigint", + "num-derive 0.4.2", + "num-traits", + "parking_lot", + "rand 0.8.5", + "serde", + "serde_bytes", + "serde_derive", + "sha2 0.10.8", + "sha3 0.10.8", + "solana-account-info", + "solana-atomic-u64", + "solana-bincode", + "solana-borsh", + "solana-clock", + "solana-cpi", + "solana-decode-error", + "solana-define-syscall", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-hash", + "solana-instruction", + "solana-last-restart-slot", + "solana-msg", + "solana-native-token", + "solana-program-entrypoint", + "solana-program-error", + "solana-program-memory", + "solana-program-option", + "solana-program-pack", + "solana-pubkey", + "solana-rent", + "solana-sanitize", + "solana-sdk-macro 2.1.7", + "solana-secp256k1-recover", + "solana-serde-varint", + "solana-serialize-utils", + "solana-sha256-hasher", + "solana-short-vec", + "solana-slot-hashes", + "solana-slot-history", + "solana-stable-layout", + "solana-sysvar-id", + "solana-transaction-error", + "thiserror", + "wasm-bindgen", +] + +[[package]] +name = "solana-program-entrypoint" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e0696f51a4386f92f4e1807059bd2b649c207688b9249df332d0fd5ecac240c" +dependencies = [ + "solana-account-info", + "solana-msg", + "solana-program-error", + "solana-pubkey", +] + +[[package]] +name = "solana-program-error" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bd557d10df4380234f5b4a5971a0cae29eedcc42ebe4bbe926a21ff31912e99" +dependencies = [ + "borsh 1.5.3", + "num-traits", + "serde", + "serde_derive", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-pubkey", +] + +[[package]] +name = "solana-program-memory" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef71296a3fa6ebaa38ae522bea71af82b7deeea170e459efa3c539b8f14e0155" +dependencies = [ + "num-traits", + "solana-define-syscall", +] + +[[package]] +name = "solana-program-option" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "506908720b9b1660f2087d9c6f45ba208fa67a0f34658804517324ef65fd432b" + +[[package]] +name = "solana-program-pack" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21820c32999ce24532fb12d6188daeffa27eb88a366505a4a0553857729aae52" +dependencies = [ + "solana-program-error", +] + +[[package]] +name = "solana-pubkey" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c46701a845b731f2ffcf002c4bb08968434b9cf5e576cdd705259421074d1764" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.3", + "bs58 0.5.1", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-decode-error", + "solana-define-syscall", + "solana-sanitize", + "solana-sha256-hasher", + "wasm-bindgen", +] + +[[package]] +name = "solana-rent" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05a4d15fe63d0e9a9551adfecfec495e3d50ba0bc4705001010c724fe84f65d8" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro 2.1.7", + "solana-sysvar-id", +] + +[[package]] +name = "solana-sanitize" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b8c536460c84ec7cbcce45d8a68ab1c12c99933cfeb0cb332567e67a27eea2f" + +[[package]] +name = "solana-sdk" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df43d3a1e1637397ab43cbc216a5a8f977ec8a3cc3f3ae8c3851c83a3255dbcf" +dependencies = [ + "assert_matches", + "base64 0.21.7", + "bincode", + "bitflags", + "borsh 1.5.3", + "bs58 0.4.0", + "bytemuck", + "byteorder", + "chrono", + "derivation-path", + "digest 0.10.7", + "ed25519-dalek", + "ed25519-dalek-bip32", + "generic-array", + "hmac 0.12.1", + "itertools", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memmap2", + "num-derive 0.4.2", + "num-traits", + "num_enum 0.7.3", + "pbkdf2 0.11.0", + "qstring", + "qualifier_attr", + "rand 0.7.3", + "rand 0.8.5", + "rustc_version", + "rustversion", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "serde_with", + "sha2 0.10.8", + "sha3 0.10.8", + "siphasher", + "solana-frozen-abi", + "solana-frozen-abi-macro", + "solana-logger", + "solana-program 1.18.17", + "solana-sdk-macro 1.18.17", + "thiserror", + "uriparse", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk-macro" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86c76414183a325038ff020b22c07d1e9d2da0703ddc0244acfed37ee2921d96" +dependencies = [ + "bs58 0.4.0", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.94", +] + +[[package]] +name = "solana-sdk-macro" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24c160cb22c3671fe2e0fd7c3630701cfccae308174d8d31d7fc93386c3cc381" +dependencies = [ + "bs58 0.5.1", + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "solana-secp256k1-recover" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ece1b12237c7755a2070ab1d309a236b506041dd1d7927c7053b04cd3203728" +dependencies = [ + "libsecp256k1", + "solana-define-syscall", + "thiserror", +] + +[[package]] +name = "solana-security-txt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" + +[[package]] +name = "solana-serde-varint" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ef862fbe970f90d0e024c6dfca71f25210ec9a52c0e62d94249aae10bda8e97" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-serialize-utils" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6f1cdaa53aea6fa76dbacd1504e307c4d9665edd50d6d2c5154cd1f88caa1d2" +dependencies = [ + "solana-instruction", + "solana-pubkey", + "solana-sanitize", +] + +[[package]] +name = "solana-sha256-hasher" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4806e0ffeeb460968219b6a20176b1dc616089e84de1cd37e50cf7f01e295ad9" +dependencies = [ + "sha2 0.10.8", + "solana-define-syscall", + "solana-hash", +] + +[[package]] +name = "solana-short-vec" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824dee0886a8504a62a0c06bf95928d43cec0b077992d2b543e0f898775a4931" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-slot-hashes" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "409010900f8c357c6cb7bec25014f96e7a0826ca47c915f61f94358b01df9f68" +dependencies = [ + "serde", + "serde_derive", + "solana-hash", + "solana-sysvar-id", +] + +[[package]] +name = "solana-slot-history" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82dfd06c84fa3baea6686178b34be9f9485849045ba401c5d0e8eee2eaf485ab" +dependencies = [ + "bv", + "serde", + "serde_derive", + "solana-sysvar-id", +] + +[[package]] +name = "solana-stable-layout" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d1629426668b0c503ce86e2fad9ed6d9d525efa958365e6b890397af491c545" +dependencies = [ + "solana-instruction", + "solana-pubkey", +] + +[[package]] +name = "solana-sysvar-id" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9ec6dbb5d57e773722824069d1b2283e552f0363b1be39aa177b1d77b51ea6e" +dependencies = [ + "solana-pubkey", +] + +[[package]] +name = "solana-transaction-error" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "832ead1987e67eb4cd9a742b8e778169966d600955a39efa50b83a6bb3dec6d3" +dependencies = [ + "solana-instruction", + "solana-sanitize", +] + +[[package]] +name = "solana-zk-token-sdk" +version = "1.18.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "513407f88394e437b4ff5aad892bc5bf51a655ae2401e6e63549734d3695c46f" +dependencies = [ + "aes-gcm-siv", + "base64 0.21.7", + "bincode", + "bytemuck", + "byteorder", + "curve25519-dalek 3.2.1", + "getrandom 0.1.16", + "itertools", + "lazy_static", + "merlin", + "num-derive 0.4.2", + "num-traits", + "rand 0.7.3", + "serde", + "serde_json", + "sha3 0.9.1", + "solana-program 1.18.17", + "solana-sdk", + "subtle", + "thiserror", + "zeroize", +] + +[[package]] +name = "spl-associated-token-account" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "992d9c64c2564cc8f63a4b508bf3ebcdf2254b0429b13cd1d31adb6162432a5f" +dependencies = [ + "assert_matches", + "borsh 0.10.4", + "num-derive 0.4.2", + "num-traits", + "solana-program 1.18.17", + "spl-token", + "spl-token-2022 1.0.0", + "thiserror", +] + +[[package]] +name = "spl-discriminator" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cce5d563b58ef1bb2cdbbfe0dfb9ffdc24903b10ae6a4df2d8f425ece375033f" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator-derive", +] + +[[package]] +name = "spl-discriminator-derive" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07fd7858fc4ff8fb0e34090e41d7eb06a823e1057945c26d480bfc21d2338a93" +dependencies = [ + "quote", + "spl-discriminator-syn", + "syn 2.0.94", +] + +[[package]] +name = "spl-discriminator-syn" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18fea7be851bd98d10721782ea958097c03a0c2a07d8d4997041d0ece6319a63" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.94", + "thiserror", +] + +[[package]] +name = "spl-memo" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0dc6f70db6bacea7ff25870b016a65ba1d1b6013536f08e4fd79a8f9005325" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "spl-memo" +version = "4.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a49f49f95f2d02111ded31696ab38a081fab623d4c76bd4cb074286db4560836" +dependencies = [ + "solana-program 1.18.17", +] + +[[package]] +name = "spl-pod" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2881dddfca792737c0706fa0175345ab282b1b0879c7d877bad129645737c079" +dependencies = [ + "borsh 0.10.4", + "bytemuck", + "solana-program 1.18.17", + "solana-zk-token-sdk", + "spl-program-error 0.3.0", +] + +[[package]] +name = "spl-program-error" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af92f74cd3b0fdfda59fef4b571a92123e4df0f67cc43f73163975d31118ef82" +dependencies = [ + "num-derive 0.3.3", + "num-traits", + "solana-program 1.18.17", + "spl-program-error-derive 0.2.0", + "thiserror", +] + +[[package]] +name = "spl-program-error" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "249e0318493b6bcf27ae9902600566c689b7dfba9f1bdff5893e92253374e78c" +dependencies = [ + "num-derive 0.4.2", + "num-traits", + "solana-program 1.18.17", + "spl-program-error-derive 0.3.2", + "thiserror", +] + +[[package]] +name = "spl-program-error-derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173f3cc506847882189b3a5b67299f617fed2f9730f122dd197b82e1e213dee5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "spl-program-error-derive" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1845dfe71fd68f70382232742e758557afe973ae19e6c06807b2c30f5d5cb474" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.94", +] + +[[package]] +name = "spl-tlv-account-resolution" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82149a5a06b5f158d03904066375eaf0c8a2422557cc3d5a25d277260d9a3b16" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-program-error 0.2.0", + "spl-type-length-value 0.2.0", +] + +[[package]] +name = "spl-tlv-account-resolution" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "615d381f48ddd2bb3c57c7f7fb207591a2a05054639b18a62e785117dd7a8683" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", + "spl-type-length-value 0.3.0", +] + +[[package]] +name = "spl-token" +version = "4.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9eb465e4bf5ce1d498f05204c8089378c1ba34ef2777ea95852fc53a1fd4fb2" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum 0.7.3", + "solana-program 1.18.17", + "thiserror", +] + +[[package]] +name = "spl-token-2022" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b24ac5786a3fefbf59f5606312c61abf87b23154e7a717e5d18216fbea4711db" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.3.3", + "num-traits", + "num_enum 0.6.1", + "solana-program 1.18.17", + "solana-zk-token-sdk", + "spl-memo 3.0.1", + "spl-token", + "spl-transfer-hook-interface 0.1.0", + "thiserror", +] + +[[package]] +name = "spl-token-2022" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d697fac19fd74ff472dfcc13f0b442dd71403178ce1de7b5d16f83a33561c059" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum 0.7.3", + "solana-program 1.18.17", + "solana-security-txt", + "solana-zk-token-sdk", + "spl-memo 4.0.4", + "spl-pod", + "spl-token", + "spl-token-group-interface", + "spl-token-metadata-interface", + "spl-transfer-hook-interface 0.4.1", + "spl-type-length-value 0.3.0", + "thiserror", +] + +[[package]] +name = "spl-token-group-interface" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b889509d49fa74a4a033ca5dae6c2307e9e918122d97e58562f5c4ffa795c75d" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", +] + +[[package]] +name = "spl-token-metadata-interface" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c16ce3ba6979645fb7627aa1e435576172dd63088dc7848cb09aa331fa1fe4f" +dependencies = [ + "borsh 0.10.4", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", + "spl-type-length-value 0.3.0", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a2326852adf88716fbac7f54cd6ee2c8a0b5a14ede24db3b4519c4ff13df04b" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.3.3", + "num-traits", + "num_enum 0.6.1", + "solana-program 1.18.17", + "spl-discriminator", + "spl-tlv-account-resolution 0.2.0", + "spl-type-length-value 0.2.0", + "thiserror", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aabdb7c471566f6ddcee724beb8618449ea24b399e58d464d6b5bc7db550259" +dependencies = [ + "arrayref", + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", + "spl-tlv-account-resolution 0.5.1", + "spl-type-length-value 0.3.0", +] + +[[package]] +name = "spl-type-length-value" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1d085f426b33b8365fb98383d1b8b3925e21bdfe579c851ceaa7f511dbec191" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-program-error 0.2.0", +] + +[[package]] +name = "spl-type-length-value" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a468e6f6371f9c69aae760186ea9f1a01c2908351b06a5e0026d21cfc4d7ecac" +dependencies = [ + "bytemuck", + "solana-program 1.18.17", + "spl-discriminator", + "spl-pod", + "spl-program-error 0.3.0", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "987bc0be1cdea8b10216bd06e2ca407d40b9543468fafd3ddfb02f36e77f71f3" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "tiny-bip39" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" +dependencies = [ + "anyhow", + "hmac 0.8.1", + "once_cell", + "pbkdf2 0.4.0", + "rand 0.7.3", + "rustc-hash", + "sha2 0.9.9", + "thiserror", + "unicode-normalization", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "tinyvec" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "token-2022-default-account-state-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-mint-close-authority-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-multiple-extensions-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-non-transferable-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "token-2022-transfer-fees-program" +version = "0.1.0" +dependencies = [ + "borsh 0.10.4", + "borsh-derive 0.9.3", + "solana-program 1.18.17", + "spl-associated-token-account", + "spl-token-2022 0.7.0", +] + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[package]] +name = "toml" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit 0.22.22", +] + +[[package]] +name = "toml_datetime" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap", + "toml_datetime", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.22.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "winnow 0.6.22", +] + +[[package]] +name = "transfer-sol" +version = "0.1.0" +dependencies = [ + "anchor-lang", +] + +[[package]] +name = "transfer-sol-program" +version = "0.1.0" +dependencies = [ + "borsh 0.9.3", + "borsh-derive 0.9.3", + "solana-program 1.18.17", +] + +[[package]] +name = "typenum" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" + +[[package]] +name = "unicode-ident" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" + +[[package]] +name = "unicode-normalization" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "universal-hash" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "uriparse" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff" +dependencies = [ + "fnv", + "lazy_static", +] + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasm-bindgen" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" +dependencies = [ + "cfg-if", + "once_cell", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" +dependencies = [ + "bumpalo", + "log", + "proc-macro2", + "quote", + "syn 2.0.94", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" + +[[package]] +name = "web-sys" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.6.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39281189af81c07ec09db316b302a3e67bf9bd7cbf6c820b50e35fee9c2fa980" +dependencies = [ + "memchr", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] + +[[package]] +name = "zeroize" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.94", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000..9b8280afe --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,42 @@ +[workspace] +members = [ + #basics + "basics/account-data/native/program", + "basics/account-data/anchor/programs/anchor-program-example", + "basics/checking-accounts/native/program", + "basics/checking-accounts/anchor/programs/anchor-program-example", + "basics/close-account/native/program", + "basics/close-account/anchor/programs/close-account", + "basics/counter/native/program", + "basics/counter/anchor/programs/counter_anchor", + "basics/counter/mpl-stack", + "basics/create-account/native/program", + "basics/create-account/anchor/programs/create-system-account", + "basics/cross-program-invocation/anchor/programs/*", + "basics/hello-solana/native/program", + "basics/hello-solana/anchor/programs/*", + "basics/pda-rent-payer/native/program", + "basics/pda-rent-payer/anchor/programs/*", + "basics/processing-instructions/native/program", + "basics/processing-instructions/anchor/programs/*", + "basics/program-derived-addresses/native/program", + "basics/program-derived-addresses/anchor/programs/*", + "basics/realloc/native/program", + "basics/realloc/anchor/programs/*", + "basics/rent/native/program", + "basics/rent/anchor/programs/*", + "basics/favorites/native/program", + "basics/repository-layout/native/program", + "basics/repository-layout/anchor/programs/*", + "basics/transfer-sol/native/program", + "basics/transfer-sol/anchor/programs/*", + "tokens/token-2022/mint-close-authority/native/program", + "tokens/token-2022/non-transferable/native/program", + "tokens/token-2022/default-account-state/native/program", + "tokens/token-2022/transfer-fee/native/program", + "tokens/token-2022/multiple-extensions/native/program", +] +resolver = "2" + +[profile.release] +overflow-checks = true \ No newline at end of file From de5786d8002360c9e243376a1c93bc9d3e9225e7 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 9 Jan 2025 01:59:33 +0530 Subject: [PATCH 07/10] setup rust 1.79.0 --- .github/workflows/anchor.yml | 3 +++ .github/workflows/poseidon.yml | 3 +++ .github/workflows/rust.yml | 4 +++- .github/workflows/solana-native.yml | 3 +++ .github/workflows/steel.yml | 3 +++ 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index 68d729115..461dd2dae 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -104,6 +104,9 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - uses: heyAyushh/setup-anchor@v4.9 with: anchor-version: 0.30.1 diff --git a/.github/workflows/poseidon.yml b/.github/workflows/poseidon.yml index befa47718..a523d6ccc 100644 --- a/.github/workflows/poseidon.yml +++ b/.github/workflows/poseidon.yml @@ -104,6 +104,9 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - uses: heyAyushh/setup-anchor@v4.9 with: anchor-version: 0.30.1 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 62a219d39..3251d0ca9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -33,7 +33,9 @@ jobs: # This GitHub Action installs a Rust toolchain using rustup. It is designed for one-line concise usage and good defaults. - name: Install the Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - name: Run tests run: cargo test diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index b1f9d6dbc..3cabf57d7 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -103,6 +103,9 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - name: Use Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/steel.yml b/.github/workflows/steel.yml index 58e7c83a8..61d69e993 100644 --- a/.github/workflows/steel.yml +++ b/.github/workflows/steel.yml @@ -27,6 +27,9 @@ jobs: matrix: ${{ steps.matrix.outputs.matrix }} steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.79.0 + with: + components: rustfmt, clippy - uses: dorny/paths-filter@v3 id: changes if: github.event_name == 'pull_request' From b8781f2b8b580ce5ebeeda73d92b85430b44261e Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 9 Jan 2025 02:17:12 +0530 Subject: [PATCH 08/10] steel 1.79.0 --- .github/workflows/rust.yml | 5 ++--- .github/workflows/steel.yml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3251d0ca9..ad70775ab 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,8 +45,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.79.0 with: # Specific to dtolnay/rust-toolchain: Comma-separated string of additional components to install components: rustfmt @@ -59,7 +58,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.79.0 with: components: clippy - name: Linting diff --git a/.github/workflows/steel.yml b/.github/workflows/steel.yml index 61d69e993..727dd43df 100644 --- a/.github/workflows/steel.yml +++ b/.github/workflows/steel.yml @@ -100,7 +100,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.79.0 with: components: rustfmt, clippy - name: Run sccache-cache @@ -140,7 +140,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.79.0 - name: Run sccache-cache if: github.event_name != 'release' uses: mozilla-actions/sccache-action@v0.0.6 From 309db56312c4c4214b2302ad95fb132f8e310f51 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 9 Jan 2025 02:23:40 +0530 Subject: [PATCH 09/10] anchor external-delegate-token-master --- .../external-delegate-token-master/Cargo.toml | 22 +++++++++++++++++++ .../external-delegate-token-master/Xargo.toml | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Cargo.toml create mode 100644 tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Xargo.toml diff --git a/tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Cargo.toml b/tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Cargo.toml new file mode 100644 index 000000000..16c10b824 --- /dev/null +++ b/tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "external-delegate-token-master" +version = "0.1.0" +description = "Created with Anchor" +edition = "2021" + +[lib] +crate-type = ["cdylib", "lib"] +name = "escrow" + +[features] +default = [] +cpi = ["no-entrypoint"] +no-entrypoint = [] +no-idl = [] +no-log-ix-name = [] +idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"] + +[dependencies] +anchor-lang = { version = "0.30.1", features = ["init-if-needed"]} +anchor-spl = "0.30.1" +solana-program = "=1.18.17" diff --git a/tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Xargo.toml b/tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Xargo.toml new file mode 100644 index 000000000..475fb71ed --- /dev/null +++ b/tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master/Xargo.toml @@ -0,0 +1,2 @@ +[target.bpfel-unknown-unknown.dependencies.std] +features = [] From 18c41c0a4d2c5cd2e6275d784d1837f434b079a3 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 9 Jan 2025 02:26:51 +0530 Subject: [PATCH 10/10] Cargo.lock --- Cargo.lock | 536 +++++------------------------------------------------ 1 file changed, 45 insertions(+), 491 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f23b5fbbb..2f026fd90 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "account-data-anchor-program-example" @@ -589,7 +589,7 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -684,7 +684,7 @@ checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -821,7 +821,7 @@ name = "counter-solana-native" version = "0.1.0" dependencies = [ "borsh 0.9.3", - "solana-program 2.1.7", + "solana-program 2.0.21", ] [[package]] @@ -928,34 +928,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "curve25519-dalek" -version = "4.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" -dependencies = [ - "cfg-if", - "cpufeatures", - "curve25519-dalek-derive", - "digest 0.10.7", - "fiat-crypto", - "rand_core 0.6.4", - "rustc_version", - "subtle", - "zeroize", -] - -[[package]] -name = "curve25519-dalek-derive" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.94", -] - [[package]] name = "darling" version = "0.20.10" @@ -977,7 +949,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -988,7 +960,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -1043,7 +1015,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", @@ -1103,27 +1075,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" -[[package]] -name = "fiat-crypto" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" - -[[package]] -name = "five8_const" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b4f62f0f8ca357f93ae90c8c2dd1041a1f665fde2f889ea9b1787903829015" -dependencies = [ - "five8_core", -] - -[[package]] -name = "five8_core" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94474d15a76982be62ca8a39570dccce148d98c238ebb7408b0a21b2c4bdddc4" - [[package]] name = "fnv" version = "1.0.7" @@ -1501,7 +1452,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -1549,7 +1500,7 @@ dependencies = [ "proc-macro-crate 1.3.1", "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -1561,7 +1512,7 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -1754,7 +1705,7 @@ checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -1994,14 +1945,14 @@ checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] name = "serde_json" -version = "1.0.134" +version = "1.0.135" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d00f4175c42ee48b15416f6193a959ba3a0d67fc699a0db9ad12df9f83991c7d" +checksum = "2b0d7ba2887406110130a978386c4e1befb98c674b4fba677954e4db976630d9" dependencies = [ "itoa", "memchr", @@ -2037,7 +1988,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -2154,113 +2105,6 @@ version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" -[[package]] -name = "solana-account-info" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8378a48833ee7f828e20a63e93a6cdaef1313a8fd8f71a90b243df83295987b1" -dependencies = [ - "bincode", - "serde", - "solana-program-error", - "solana-program-memory", - "solana-pubkey", -] - -[[package]] -name = "solana-atomic-u64" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6f9da603778bbee6402ee2526a3b219b85497c10e49f9c7c112ed8836f46d3" -dependencies = [ - "parking_lot", -] - -[[package]] -name = "solana-bincode" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb75b5d25ae05cfddb8b9b53512f17c18c29e3c92b7a848f39598473e6bf6484" -dependencies = [ - "bincode", - "serde", - "solana-instruction", -] - -[[package]] -name = "solana-borsh" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "055c45b7aae61c8c7b26a537f7a8387cc8a10036081ddfd7170a7a9b4d924ffd" -dependencies = [ - "borsh 0.10.4", - "borsh 1.5.3", -] - -[[package]] -name = "solana-clock" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d6af32497acc6bb09d8150ea6f53df25dbad713991741999d46688beaf944e" -dependencies = [ - "serde", - "serde_derive", - "solana-sdk-macro 2.1.7", - "solana-sysvar-id", -] - -[[package]] -name = "solana-cpi" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "380b06ac8e2ebf8a5b8a54645b721f92f5d7a6d116550bbf1817167cc48abeb1" -dependencies = [ - "solana-account-info", - "solana-define-syscall", - "solana-instruction", - "solana-program-error", - "solana-pubkey", - "solana-stable-layout", -] - -[[package]] -name = "solana-decode-error" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99f2fe3170045ae27951ae476a0c88a40130b242736f033ba5e353cd6f816b8e" -dependencies = [ - "num-traits", -] - -[[package]] -name = "solana-define-syscall" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14a80d323dbe8866aaefb40e3c11564d82f77894d193fa66583e793f3d845723" - -[[package]] -name = "solana-epoch-schedule" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "276fda33b7de27df41e3043f344e517d5e85ab345d2f2aa2425d1011bac570c4" -dependencies = [ - "serde", - "serde_derive", - "solana-sdk-macro 2.1.7", - "solana-sysvar-id", -] - -[[package]] -name = "solana-fee-calculator" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abc0371153eda80024109800051b87bab11f056fae260ca477a50875aaffdfde" -dependencies = [ - "log", - "serde", - "serde_derive", -] - [[package]] name = "solana-frozen-abi" version = "1.18.17" @@ -2295,55 +2139,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn 2.0.94", -] - -[[package]] -name = "solana-hash" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7067f2bd1e9c3f28153484f03e44bf8dc73cededa6bc132e40de9bfc667b8534" -dependencies = [ - "borsh 1.5.3", - "bs58 0.5.1", - "bytemuck", - "bytemuck_derive", - "js-sys", - "serde", - "serde_derive", - "solana-atomic-u64", - "solana-sanitize", - "wasm-bindgen", -] - -[[package]] -name = "solana-instruction" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dbf607aff88e4f17079a33d34517b7f379d752dfa0496a94cea798a91e6f6ee" -dependencies = [ - "bincode", - "borsh 1.5.3", - "getrandom 0.2.15", - "js-sys", - "num-traits", - "serde", - "serde_derive", - "solana-define-syscall", - "solana-pubkey", - "wasm-bindgen", -] - -[[package]] -name = "solana-last-restart-slot" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38f2ee9af7a2815137c60d77cb930c26480bc802b55e00d9e230e81fd308062e" -dependencies = [ - "serde", - "serde_derive", - "solana-sdk-macro 2.1.7", - "solana-sysvar-id", + "syn 2.0.95", ] [[package]] @@ -2357,21 +2153,6 @@ dependencies = [ "log", ] -[[package]] -name = "solana-msg" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "406cd9c6ed9d4d036da00c958f0f98edb248c08eb596975011a30063ac3aa902" -dependencies = [ - "solana-define-syscall", -] - -[[package]] -name = "solana-native-token" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08ef55ad8dcc8c5f21e2bbbc7298fa59550269e8bdf2c6976c4de626ea8a0069" - [[package]] name = "solana-program" version = "1.18.17" @@ -2395,7 +2176,7 @@ dependencies = [ "cc", "console_error_panic_hook", "console_log", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "getrandom 0.2.15", "itertools", "js-sys", @@ -2429,10 +2210,14 @@ dependencies = [ [[package]] name = "solana-program" -version = "2.1.7" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99c693c5c392bacc44e7a86baa18069eb966d88afbc9040219ca000e873fb02e" +checksum = "cd486c097871491a880557c367a523b9fa8f0e53683483bf916a2cb6db9a3b56" dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", "base64 0.22.1", "bincode", "bitflags", @@ -2445,11 +2230,11 @@ dependencies = [ "bytemuck_derive", "console_error_panic_hook", "console_log", - "curve25519-dalek 4.1.3", - "five8_const", + "curve25519-dalek", "getrandom 0.2.15", "js-sys", "lazy_static", + "libsecp256k1", "log", "memoffset", "num-bigint", @@ -2457,146 +2242,18 @@ dependencies = [ "num-traits", "parking_lot", "rand 0.8.5", + "rustc_version", + "rustversion", "serde", "serde_bytes", "serde_derive", "sha2 0.10.8", "sha3 0.10.8", - "solana-account-info", - "solana-atomic-u64", - "solana-bincode", - "solana-borsh", - "solana-clock", - "solana-cpi", - "solana-decode-error", - "solana-define-syscall", - "solana-epoch-schedule", - "solana-fee-calculator", - "solana-hash", - "solana-instruction", - "solana-last-restart-slot", - "solana-msg", - "solana-native-token", - "solana-program-entrypoint", - "solana-program-error", - "solana-program-memory", - "solana-program-option", - "solana-program-pack", - "solana-pubkey", - "solana-rent", - "solana-sanitize", - "solana-sdk-macro 2.1.7", - "solana-secp256k1-recover", - "solana-serde-varint", - "solana-serialize-utils", - "solana-sha256-hasher", - "solana-short-vec", - "solana-slot-hashes", - "solana-slot-history", - "solana-stable-layout", - "solana-sysvar-id", - "solana-transaction-error", + "solana-sdk-macro 2.0.21", "thiserror", "wasm-bindgen", ] -[[package]] -name = "solana-program-entrypoint" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e0696f51a4386f92f4e1807059bd2b649c207688b9249df332d0fd5ecac240c" -dependencies = [ - "solana-account-info", - "solana-msg", - "solana-program-error", - "solana-pubkey", -] - -[[package]] -name = "solana-program-error" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bd557d10df4380234f5b4a5971a0cae29eedcc42ebe4bbe926a21ff31912e99" -dependencies = [ - "borsh 1.5.3", - "num-traits", - "serde", - "serde_derive", - "solana-decode-error", - "solana-instruction", - "solana-msg", - "solana-pubkey", -] - -[[package]] -name = "solana-program-memory" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef71296a3fa6ebaa38ae522bea71af82b7deeea170e459efa3c539b8f14e0155" -dependencies = [ - "num-traits", - "solana-define-syscall", -] - -[[package]] -name = "solana-program-option" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "506908720b9b1660f2087d9c6f45ba208fa67a0f34658804517324ef65fd432b" - -[[package]] -name = "solana-program-pack" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21820c32999ce24532fb12d6188daeffa27eb88a366505a4a0553857729aae52" -dependencies = [ - "solana-program-error", -] - -[[package]] -name = "solana-pubkey" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c46701a845b731f2ffcf002c4bb08968434b9cf5e576cdd705259421074d1764" -dependencies = [ - "borsh 0.10.4", - "borsh 1.5.3", - "bs58 0.5.1", - "bytemuck", - "bytemuck_derive", - "curve25519-dalek 4.1.3", - "five8_const", - "getrandom 0.2.15", - "js-sys", - "num-traits", - "serde", - "serde_derive", - "solana-atomic-u64", - "solana-decode-error", - "solana-define-syscall", - "solana-sanitize", - "solana-sha256-hasher", - "wasm-bindgen", -] - -[[package]] -name = "solana-rent" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05a4d15fe63d0e9a9551adfecfec495e3d50ba0bc4705001010c724fe84f65d8" -dependencies = [ - "serde", - "serde_derive", - "solana-sdk-macro 2.1.7", - "solana-sysvar-id", -] - -[[package]] -name = "solana-sanitize" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b8c536460c84ec7cbcce45d8a68ab1c12c99933cfeb0cb332567e67a27eea2f" - [[package]] name = "solana-sdk" version = "1.18.17" @@ -2662,30 +2319,20 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] name = "solana-sdk-macro" -version = "2.1.7" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24c160cb22c3671fe2e0fd7c3630701cfccae308174d8d31d7fc93386c3cc381" +checksum = "caf4e0cdf5195f5c1fdac5dbb1586a16c38af423469fa89fee891761c2a30bc7" dependencies = [ "bs58 0.5.1", "proc-macro2", "quote", - "syn 2.0.94", -] - -[[package]] -name = "solana-secp256k1-recover" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ece1b12237c7755a2070ab1d309a236b506041dd1d7927c7053b04cd3203728" -dependencies = [ - "libsecp256k1", - "solana-define-syscall", - "thiserror", + "rustversion", + "syn 2.0.95", ] [[package]] @@ -2694,99 +2341,6 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" -[[package]] -name = "solana-serde-varint" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef862fbe970f90d0e024c6dfca71f25210ec9a52c0e62d94249aae10bda8e97" -dependencies = [ - "serde", -] - -[[package]] -name = "solana-serialize-utils" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6f1cdaa53aea6fa76dbacd1504e307c4d9665edd50d6d2c5154cd1f88caa1d2" -dependencies = [ - "solana-instruction", - "solana-pubkey", - "solana-sanitize", -] - -[[package]] -name = "solana-sha256-hasher" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4806e0ffeeb460968219b6a20176b1dc616089e84de1cd37e50cf7f01e295ad9" -dependencies = [ - "sha2 0.10.8", - "solana-define-syscall", - "solana-hash", -] - -[[package]] -name = "solana-short-vec" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "824dee0886a8504a62a0c06bf95928d43cec0b077992d2b543e0f898775a4931" -dependencies = [ - "serde", -] - -[[package]] -name = "solana-slot-hashes" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "409010900f8c357c6cb7bec25014f96e7a0826ca47c915f61f94358b01df9f68" -dependencies = [ - "serde", - "serde_derive", - "solana-hash", - "solana-sysvar-id", -] - -[[package]] -name = "solana-slot-history" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82dfd06c84fa3baea6686178b34be9f9485849045ba401c5d0e8eee2eaf485ab" -dependencies = [ - "bv", - "serde", - "serde_derive", - "solana-sysvar-id", -] - -[[package]] -name = "solana-stable-layout" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d1629426668b0c503ce86e2fad9ed6d9d525efa958365e6b890397af491c545" -dependencies = [ - "solana-instruction", - "solana-pubkey", -] - -[[package]] -name = "solana-sysvar-id" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9ec6dbb5d57e773722824069d1b2283e552f0363b1be39aa177b1d77b51ea6e" -dependencies = [ - "solana-pubkey", -] - -[[package]] -name = "solana-transaction-error" -version = "2.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "832ead1987e67eb4cd9a742b8e778169966d600955a39efa50b83a6bb3dec6d3" -dependencies = [ - "solana-instruction", - "solana-sanitize", -] - [[package]] name = "solana-zk-token-sdk" version = "1.18.17" @@ -2798,7 +2352,7 @@ dependencies = [ "bincode", "bytemuck", "byteorder", - "curve25519-dalek 3.2.1", + "curve25519-dalek", "getrandom 0.1.16", "itertools", "lazy_static", @@ -2851,7 +2405,7 @@ checksum = "07fd7858fc4ff8fb0e34090e41d7eb06a823e1057945c26d480bfc21d2338a93" dependencies = [ "quote", "spl-discriminator-syn", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -2863,7 +2417,7 @@ dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.94", + "syn 2.0.95", "thiserror", ] @@ -2932,7 +2486,7 @@ checksum = "173f3cc506847882189b3a5b67299f617fed2f9730f122dd197b82e1e213dee5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -2944,7 +2498,7 @@ dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -3143,9 +2697,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.94" +version = "2.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "987bc0be1cdea8b10216bd06e2ca407d40b9543468fafd3ddfb02f36e77f71f3" +checksum = "46f71c0377baf4ef1cc3e3402ded576dccc315800fbc62dfc7fe04b009773b4a" dependencies = [ "proc-macro2", "quote", @@ -3178,7 +2732,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -3426,7 +2980,7 @@ dependencies = [ "log", "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", "wasm-bindgen-shared", ] @@ -3448,7 +3002,7 @@ checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -3609,7 +3163,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ] [[package]] @@ -3629,5 +3183,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.94", + "syn 2.0.95", ]