Commit Graph

1687 Commits

Author SHA1 Message Date
David Leung 85edf91e0c
feat(lang): update mollusk test template dependencies (#3790)
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.
2025-07-30 20:55:39 -05:00
Jonathan Claudius a87fe2b86d
security: require pinned docker images (#3799)
Co-authored-by: Jonathan Claudius <claudijd@Mac.localdomain>
2025-07-29 21:02:21 -05:00
Jonathan Claudius 7b79a5fe8a
docs: remove dead link in SECURITY.md (#3800)
Co-authored-by: Jonathan Claudius <claudijd@Mac.localdomain>
2025-07-29 20:54:52 -05:00
@runitinrust 099b6a57c1
feat: Remove anchor publish command (#3795)
* Remove dead code for anchor publish command

* removed unused imports

* did cargo fmt -- --check
2025-07-29 14:35:34 -05:00
Zero Xplorer 3dd2386d89
docs: fix typos (#3774) 2025-07-17 15:25:45 -05:00
Arthur Bretas 702cbde3e8
feat(cli): Replace `anchor verify` with a robust `solana-verify` wrapper (#3768)
* 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>
2025-07-17 15:24:47 -05:00
Jean (Exotic Markets) bf495ac3df
chore: fix clippy complains (#3776)
* chore: fix clippy complains

* fix lints

* simplify some parts

---------

Co-authored-by: Aursen <aursen@users.noreply.github.com>
2025-07-17 10:21:27 -05:00
Jacob Creech f8602079af
docs: security policy (#3772) 2025-07-14 20:53:04 -05:00
leopardracer 4a669f3eda
fix: typos in comments (#3756)
* Update try_accounts.rs

* Update instruction.rs
2025-07-09 22:40:22 -05:00
KULDEEP K SRIVASTAVA bce8f9c9d4
fix: update macros link in docs (#3767) 2025-07-09 22:39:44 -05:00
cryptopapi997 864ea6731a
feat: Add `errors` to declare program macro (#3757)
* add errors to declare program macro

* changelog and docs

* cargo fmt
2025-07-08 01:01:18 -05:00
Zero Xplorer c803484aa4
chore: fix typos (#3710) 2025-07-08 00:19:44 -05:00
nk_ysg 73fc4835e0
chore: small opt fn set_authority (#3675) 2025-07-08 00:18:55 -05:00
Nathan Marley ae8179367d
feat: Add support for Bun as a package manager (#3586) 2025-07-08 00:14:32 -05:00
Joe Wanga 1e0c3641a2
fix: broken TypeScript link in README.md (#3765) 2025-07-07 15:02:26 -05:00
acheron 9a6648c814
cli: Fix not respecting `provider.cluster` in `keys sync` command (#3761) 2025-07-01 00:00:38 +02:00
Arthur Bretas 0878f53804
feat: add support for tuple types in space calculation (#3744)
* 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
2025-06-30 00:17:15 -05:00
Marc Nijdam e5db804681
feat: Add missing pubkey const generation (#3677) 2025-06-29 20:59:40 -05:00
Maximilian Hubert b09972bb3f
docs: typos fix in release notes (#3691)
* Update 0-30-1.mdx

* Update 0-30-0.mdx

* Update 0-29-0.mdx
2025-06-29 20:57:17 -05:00
Hasip Timurtas 3f833a54d0
refactor: Remove unnecessary Xargo.toml and update dependencies in rust_template.rs (#3748)
This commit eliminates the deprecated Xargo.toml file reference and adds new dependencies for modern Solana builds, enhancing the project's compatibility and maintainability.
2025-06-27 20:06:10 -05:00
Hasip Timurtas b5aced54f3
fix: Resolve Clippy Warnings and Format (#3751)
* 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.
2025-06-27 20:05:37 -05:00
Maximilian Hubert a5df519319
docs: Update installation.mdx (#3708) 2025-06-06 21:38:42 -05:00
acheron 0bdfa3f760
cli: Fix using deprecated commitment `recent` in migration scripts (#3725) 2025-05-31 00:03:07 +02:00
elec7rik ae00e514ab
fix: Update cpi.mdx (#3694)
This commit fixes a comment
`AccountMeta::new_readonly(account4_pubkey, true)` should create the metadata for an account marked `non-writable` during an instruction
2025-05-27 10:13:13 -05:00
tobey 8b0e965c65
docs: add missing space (#3689) 2025-04-30 20:49:47 -05:00
Jacob Creech 3b5c5ed288
docker: upgrade `node` to 20.18.0 LTS (#3687)
* docker: upgrade node to 20.18.0 LTS

* update changelog

* update node on reusable test
2025-04-30 20:34:59 -05:00
fudancoder 936cb5a1ca
chore: remove redundant words (#3441)
Signed-off-by: fudancoder <fudancoder@icloud.com.>
Co-authored-by: fudancoder <fudancoder@icloud.com.>
2025-04-29 15:04:02 -04:00
Maxim Evtush 6d72be7168
fix: typos in documentation files (#3543)
* Update realloc.ts

* Update amm_v3.json

* Update amm_v3.json
2025-04-29 14:49:16 -04:00
Mike MacCana 7f799070ab
docs: don't require knowledge of sealevel to know what Anchor is. (#3650)
* docs: don't require knowledge of sealevel to know what Anchor is.

* PR feeddback
2025-04-29 14:42:54 -04:00
Humayun Javed 459e890cdb
Update local.mdx (#3685) 2025-04-29 14:38:32 -04:00
Yehia ac90f4c96e
Update events.mdx (#3660)
Fixed typo :D
2025-04-29 14:35:37 -04:00
publicqi 34b6d1996b
fix: event parsing panic (#3657)
* add test

* stricter regex

* less confusing log

* even stricter regex

* add typescript fix and test

* fix

* prettier
2025-04-28 15:51:36 -05:00
Jacob Creech 47284f8f0b
v0.31.1 (#3666)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2025-04-20 00:39:49 +02:00
cryptopapi997 5913906130
ts: Fix parsing IDL with multiple const generics (#3665) 2025-04-19 23:07:39 +02:00
cryptopapi997 4d815e49ba
docs: Fix outdated space recommendation description (#3656) 2025-04-19 23:03:00 +02:00
cryptopapi997 54d5396acb
idl: Update `proc-macro2` usage for latest nightly (#3663) 2025-04-17 23:30:20 +02:00
acheron 649b9d6c5e
Fix `clippy 1.86.0` (#3654) 2025-04-10 22:14:15 +02:00
Bob 1a2b6bd65a
docs: Clarify `max_len` space calculation (#3641) 2025-04-09 22:49:30 +02:00
acheron e247502ee6
docs: Fix broken links in v0.31.0 release notes (#3638) 2025-04-04 23:19:23 +02:00
acheron 12508d4858
lang: Remove `bytemuck_derive` version requirement (#3630) 2025-03-30 23:02:32 +02:00
acheron 157a52f1e1
Replace `backpackapp/build` Docker image with `solanafoundation/anchor` (#3619) 2025-03-25 11:20:48 +01:00
Davit Badalyan 70bdd6a8cb
ts: Make `Provider` require publicKey instead of wallet in accounts resolver (#3613) 2025-03-23 21:51:10 +01:00
Jimii b8ee93338d
docs: Use permalinks for source code links (#3612) 2025-03-22 21:00:30 +01:00
jintao cb0598943d
docs: Fix the remaining missing `>`s in errors section (#3611)
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2025-03-21 22:04:36 +01:00
Vitaliy Busko 14cf063ea4
docs: Fix missing `>`s in errors section snippets (#3601) 2025-03-21 21:17:18 +01:00
acheron a107d82e15
lang: Fix `bytemuck_derive` build error (#3610) 2025-03-19 23:38:37 +01:00
acheron f86a9c97fd
docs: Add package manager documentation (#3605) 2025-03-17 22:16:50 +01:00
John a21f88489d
docs: Update Inkeep to fix vercel deployment (#3604) 2025-03-17 20:39:16 +01:00
acheron c509618412
docs: Add shell completions section to installation page (#3599) 2025-03-13 23:29:00 +01:00
John 1053b717dc
docs: Add Inkeep Searchbar (#3597) 2025-03-13 21:05:06 +01:00