Commit Graph

288 Commits

Author SHA1 Message Date
acheron 6147beb473
spl: Upgrade SPL deps to latest (#3346) 2024-11-04 12:50:36 +01:00
acheron ebbad72fc4
Upgrade Solana to 2.1.0 (#3339) 2024-11-01 14:17:19 +01:00
acheron f5f8edf77d
lang: Generate documentation of constants in `declare_program!` (#3311) 2024-10-13 23:59:36 +02:00
acheron aa48efb437
ts: Update `engines.node` to `>= 17` (#3301) 2024-10-09 23:58:09 +02:00
acheron cfe82aa682
lang: Fix using non-instruction composite accounts with `declare_program!` (#3290) 2024-10-03 08:49:53 +02:00
acheron 143893f67e
lang: Fix constant bytes declarations when using `declare_program!` (#3287) 2024-09-30 17:28:33 +02:00
acheron c679b2782e
bench: Sync to update Solana version (#3258) 2024-09-18 23:55:15 +02:00
acheron 020a304658
Upgrade Solana to v2 and SPL to the latest (#3219) 2024-09-17 19:02:09 +02:00
acheron 8d52c1c244
spl: Remove `dex` feature (#3257) 2024-09-16 17:01:26 +02:00
Jean Marchand (Exotic Markets) e25918c609
lang: Allow the `cfg` attribute above the instructions (#2339) 2024-09-16 15:59:30 +02:00
acheron 340e9c13f4
lang: Remove `EventIndex` (#3244) 2024-09-12 21:00:29 +02:00
CanardMandarin ec74adbcbb
lang: Use closures for `init` constraints (#2939)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2024-09-07 23:59:07 +02:00
acheron 18e9134072
idl: Fix using full path types with `Program` (#3228) 2024-09-05 23:59:23 +02:00
acheron 879601e632
lang: Add `LazyAccount` (#3194) 2024-09-01 03:16:38 +02:00
acheron 467ae43621
idl: Fix using `address` constraint with non-const expressions (#3216) 2024-08-31 18:15:30 +02:00
acheron 65c159fb3c
ts: Include unresolved accounts in the resolution error message (#3207) 2024-08-28 23:58:32 +02:00
acheron 679c1306f3
lang: Deprecate `#[interface]` attribute (#3195) 2024-08-24 23:48:57 +02:00
acheron 46f52da34b
lang: Remove `discriminator` method from `Discriminator` trait (#3163) 2024-08-10 23:21:31 +02:00
acheron 438c481384
idl: Check ambiguous discriminators (#3157) 2024-08-07 23:39:59 +02:00
JD 442541e9c5
spl: Rename metadata interface instruction fields from `token_program_id` to `program_id` (#3076) 2024-08-06 23:00:15 +02:00
acheron 9117bbc001
lang: Add `discriminator` argument to `#[event]` attribute (#3152) 2024-08-05 22:42:20 +02:00
acheron d73983d3db
lang: Add `discriminator` argument to `#[account]` attribute (#3149) 2024-08-04 22:51:46 +02:00
acheron f6a8042c40
lang: Remove unnecessary clone in account exit routine (#3139) 2024-07-31 22:27:30 +02:00
acheron 3f945f682c
lang: Add `#[instruction]` attribute proc-macro (#3137) 2024-07-30 23:03:14 +02:00
acheron ccac42dfcf
lang: Update `dispatch` function to support dynamic discriminators (#3104) 2024-07-23 14:09:44 +02:00
acheron 117717468f
lang: Add `Account` utility type to get accounts from bytes (#3091) 2024-07-18 12:26:37 +02:00
acheron 79d1cec79e
lang: Fix using `owner` constraint with `Box`ed accounts (#3087) 2024-07-15 22:50:51 +02:00
Andrei Silviu Dragnea 5727865b65
lang: Make stack frames slimmer on ATA creation (#3065) 2024-07-03 22:54:29 +02:00
acheron a8d2598cc9
tests: Move constant seed derivation test to `pda-derivation` (#3064) 2024-07-01 20:56:26 +02:00
acheron e6d7dafe12
v0.30.1 (#3040) 2024-06-20 17:20:02 +02:00
acheron f326b89c48
idl: Fix using `address` constraint with field expressions (#3034) 2024-06-18 22:54:40 +02:00
acheron 64c52c66e3
idl: Fix generation with unsupported expressions (#3033) 2024-06-17 23:21:24 +02:00
acheron 1c2aabe315
lang: Include `pubkey!` macro in `prelude` (#3026) 2024-06-15 12:57:13 +02:00
cryptopapi997 29a6558d08
ts: Fix using IDLs that have defined types as generic arguments (#3016) 2024-06-10 23:40:05 +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
acheron 334a44ab7b
lang: Fix instruction return type generation with `declare_program!` (#2977) 2024-05-21 22:04:19 +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
acheron 460a16171a
lang: Fix using defined types in instruction parameters with `declare_program!` (#2959) 2024-05-11 11:59:27 +02:00
acheron 81c8c556e8
idl: Add accounts resolution for associated token accounts (#2927) 2024-04-24 18:02:20 +02:00
acheron 852fcc77be
v0.30.0 (#2909) 2024-04-15 17:20:01 +02:00
acheron 257b560109
lang: Return overflow error from `Lamports` trait operations (#2907) 2024-04-14 23:04:51 +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 01839ad725
lang: Add composite accounts support for `declare_program!` (#2894) 2024-04-07 23:41:56 +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
acheron 475c694355
Upgrade `spl-token-2022` to 3.0.2 (#2876) 2024-03-31 07:59:49 +02:00
acheron c66b323293
Upgrade Solana to 1.18.8 (#2867) 2024-03-28 05:52:24 +01:00