Commit Graph

454 Commits

Author SHA1 Message Date
acheron 117717468f
lang: Add `Account` utility type to get accounts from bytes (#3091) 2024-07-18 12:26:37 +02:00
acheron 0dd6b4e57d
lang: Add a sanity check for unimplemented token extensions (#3090) 2024-07-17 22:44:21 +02:00
acheron 79d1cec79e
lang: Fix using `owner` constraint with `Box`ed accounts (#3087) 2024-07-15 22:50:51 +02:00
cryptopapi997 a2bd50bb29
lang: Make `InitSpace` support unnamed and unit structs (#3084) 2024-07-14 23:18:01 +02:00
acheron ca4822f5e9
lang: Remove `EventData` trait (#3083) 2024-07-13 22:22:07 +02:00
acheron fd6174a88d
syn: Remove `bpf` target support in `hash` feature (#3078) 2024-07-11 12:22:44 +02:00
acheron 0a1d458c7b
lang: Export `Discriminator` trait from `prelude` (#3075) 2024-07-08 22:47:43 +02:00
acheron 59ee310cfa
lang: Remove `getrandom` dependency (#3072) 2024-07-05 20:59:40 +02:00
Andrei Silviu Dragnea 5727865b65
lang: Make stack frames slimmer on ATA creation (#3065) 2024-07-03 22:54:29 +02:00
Burbo e68b96f454
lang: Fix `align` repr support in `declare-program!` (#3056)
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2024-07-01 21:01:19 +02:00
acheron 594169efd0
idl: Make safety comment checks fail silently when program path env is not set (#3045) 2024-06-26 23:31:17 +02:00
acheron e6d7dafe12
v0.30.1 (#3040) 2024-06-20 17:20:02 +02:00
acheron cc43e67399
idl: Add separate spec crate (#3036) 2024-06-19 23:06:25 +02:00
Burbo 9c17d65a76
lang: Fix using `bytemuckunsafe` account serialization with `declare_program!` (#3037) 2024-06-19 22:57:10 +02:00
acheron f326b89c48
idl: Fix using `address` constraint with field expressions (#3034) 2024-06-18 22:54:40 +02:00
cryptopapi997 3c5483f0d0
lang: Add const of program ID to `declare_id!` and `declare_program!` (#3019) 2024-06-18 22:48:58 +02:00
acheron 64c52c66e3
idl: Fix generation with unsupported expressions (#3033) 2024-06-17 23:21:24 +02:00
acheron d4318cc7cf
idl: Remove `anchor-syn` dependency (#3030) 2024-06-16 23:54:40 +02:00
acheron 1c2aabe315
lang: Include `pubkey!` macro in `prelude` (#3026) 2024-06-15 12:57:13 +02:00
Michal Nazarewicz 81c2519a9b
lang: Add `pubkey` macro for declaring `Pubkey` const values (#3021) 2024-06-15 00:01:37 +02:00
acheron e77a453ac3
lang: Support legacy IDLs with `declare_program!` (#2997) 2024-06-03 12:10:49 +02:00
acheron efe2e40c12
Remove `rust-version` from crate manifests (#3000) 2024-05-31 23:32:40 +02:00
cryptopapi997 56017029b4
lang: Make tuple struct fields public in `declare_program!` (#2994) 2024-05-30 23:07:29 +02:00
acheron 700cedd519
idl: Fix `unexpected_cfgs` build warning (#2992) 2024-05-28 22:48:50 +02:00
acheron 334a44ab7b
lang: Fix instruction return type generation with `declare_program!` (#2977) 2024-05-21 22:04:19 +02:00
cryptopapi997 b76d1bf04b
lang: Fix using optional accounts with `declare_program!` (#2967) 2024-05-20 22:09:08 +02:00
acheron 4540c8253a
Bump minimum Solana crate versions to `1.17.3` (#2975) 2024-05-19 16:44:10 +02:00
CanardMandarin b7dff46267
lang: Implement `TryFromIntError` for `Error` (#2950) 2024-05-15 21:22:22 +02:00
cryptopapi997 e71a63cb7a
lang: Fix using `Vec<u8>` type with `declare_program!` (#2966) 2024-05-15 08:41:57 +02:00
cryptopapi997 460869bf10
lang: Fix using const generics with `declare_program!` (#2965) 2024-05-14 07:04:22 +02:00
acheron 460a16171a
lang: Fix using defined types in instruction parameters with `declare_program!` (#2959) 2024-05-11 11:59:27 +02:00
acheron 14309ea146
idl: Fix potential panic on external type resolution (#2954) 2024-05-09 21:29:18 +02:00
guibescos 128e937f4b
idl: Fix generation with recursive external types (#2946) 2024-05-07 18:42:41 +02:00
acheron 9761ea6008
lang: Add example section in `declare_program!` documentation and fix typos (#2936) 2024-04-28 15:02:30 +02:00
acheron 81c8c556e8
idl: Add accounts resolution for associated token accounts (#2927) 2024-04-24 18:02:20 +02:00
Sundeep Charan Ramkumar 827c986618
lang: Eliminate variable allocations that build up stack space for token extension code generation (#2913) 2024-04-22 13:00:40 +02:00
fedoras 7515c919f8
lang: Fix `token_program` docs.rs documentation (#2918) 2024-04-20 00:50:00 +02:00
acheron 852fcc77be
v0.30.0 (#2909) 2024-04-15 17:20:01 +02:00
acheron f74ea64ca6
idl: Rename crate name to `anchor-lang-idl` (#2908) 2024-04-15 13:56:53 +02:00
acheron 257b560109
lang: Return overflow error from `Lamports` trait operations (#2907) 2024-04-14 23:04:51 +02:00
acheron 7356bd5afe
idl: Keep crate and `spec` version the same (#2901) 2024-04-13 01:06:45 +02:00
Bhargava Sai Macha e3ced784ad
Add support for token extensions (#2789) 2024-04-11 22:49:13 +02:00
acheron 0be5b00a34
lang: Add `Event` utility type to get events from bytes (#2897) 2024-04-09 23:57:41 +02:00
acheron c7ccbb8f62
Fix `1.79.0-nightly` warnings (#2896) 2024-04-08 23:58:45 +02:00
acheron 01839ad725
lang: Add composite accounts support for `declare_program!` (#2894) 2024-04-07 23:41:56 +02:00
acheron cbf9b0a090
Unpin `nightly` version (#2893) 2024-04-07 13:47:50 +02:00
acheron da2d9a4045
idl: Store deployment addresses for other clusters (#2892) 2024-04-06 23:39:53 +02:00
acheron 5f6af05519
idl: Add `#[non_exhaustive]` to IDL enums (#2890) 2024-04-04 22:34:35 +02:00
acheron 4de70aabee
idl: Add `docs` field for constants (#2887) 2024-04-03 21:59:43 +02:00
acheron c138a55b72
idl: Move IDL types from the `anchor-syn` crate to the new IDL crate (#2882) 2024-04-02 20:01:27 +02:00