Updates the mollusk-svm dev-dependency to the latest version (~0.4).
Removes the explicit solana-program dev dependency from the generated test template, as it is not strictly required for writing mollusk tests.
* feat: add support for tuple types in space calculation
This commit introduces the ability to handle tuple types in the space calculation logic. A new `TestTupleStruct` is added to validate various tuple configurations, including nested and option types, ensuring accurate space calculations through comprehensive unit tests.
* clean up unnacessary comments
* chore: fmt fix
* fix: fixing test assert
* fix: fixing test assert
* feat: replace anchor verify to use solana verify under the hood
* feat: Enhance installation process with support for local paths and solana-verify integration
- Made `get_bin_dir_path` public to allow external access.
- Updated `InstallTarget` enum to include a `Path` variant for local repository installations.
- Modified `install_version` function to handle installation from a local path, including reading the version from the Cargo.toml manifest.
- Integrated installation of `solana-verify` during the installation process.
- Updated CLI commands to support the new path option for installation.
- Enhanced verification command to allow for repository URL or current directory options.
* Refactor: Resolve avm binary collision by unifying proxy logic
* feat: Add symlink creation for anchor.exe on Windows
* fix: fmt
* feat: Specify version for solana-verify installation
* feat: Improve anchor command proxying and add testing script
- Updated the main function to enhance the logic for determining if the binary is named `anchor`.
- Introduced a new test script to verify that `anchor` commands correctly proxy to the installed Anchor CLI binary, ensuring expected behavior for both `avm` and `anchor` commands.
* docs: Add caution note regarding mainnet wallet usage in verification test script
* fix: CI fix
* docs: add feature to the changelog
* chore: fix clippy complains (#3776)
* chore: fix clippy complains
* fix lints
* simplify some parts
---------
Co-authored-by: Aursen <aursen@users.noreply.github.com>
* fix: correct median priority fee calculation in get_recommended_micro_lamport_fee function
* fix: clippy
---------
Co-authored-by: Jean (Exotic Markets) <jeanno11@orange.fr>
Co-authored-by: Aursen <aursen@users.noreply.github.com>
* feat: add support for tuple types in space calculation
This commit introduces the ability to handle tuple types in the space calculation logic. A new `TestTupleStruct` is added to validate various tuple configurations, including nested and option types, ensuring accurate space calculations through comprehensive unit tests.
* clean up unnacessary comments
* chore: fmt fix
* fix: fixing test assert
* fix: fixing test assert
This commit eliminates the deprecated Xargo.toml file reference and adds new dependencies for modern Solana builds, enhancing the project's compatibility and maintainability.
* refactor: Simplify error handling and improve readability in various modules
- Updated error handling in `cli/src/config.rs` to use `io::Error::other`.
- Enhanced error mapping in `client/src/lib.rs` for asynchronous calls.
- Refactored conditional expressions in `idl/src/convert.rs` and `lang/attribute/program/src/declare_program/mods/internal.rs` for clarity.
- Improved logic in `lang/syn/src/codegen/accounts/constraints.rs` for rent constraints handling.
* refactor: Enhance code readability and error handling in config and client modules
- Improved error handling formatting in `cli/src/config.rs` for directory reading and path canonicalization.
- Refactored asynchronous call handling in `client/src/lib.rs` to improve clarity and maintainability.
- Adjusted method chaining for better readability in multiple locations within the client module.
* fix: format TypeScript test files
* refactor: Update TypeScript test files for improved type inference
- Adjusted type definitions in various test files to enhance type inference by removing unnecessary parentheses around `typeof` expressions.
This commit fixes a comment
`AccountMeta::new_readonly(account4_pubkey, true)` should create the metadata for an account marked `non-writable` during an instruction