Commit Graph

264 Commits

Author SHA1 Message Date
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
dongjinlong c2cd5a99aa
Fix typos in comments (#2868) 2024-03-27 23:59:38 +01:00
acheron 0f6090950a
lang: Add `declare_program!` macro (#2857) 2024-03-25 23:14:02 +01:00
acheron 7c424ee58a
ts: Remove `programId` parameter of the `Program` constructor (#2864) 2024-03-22 01:51:26 +01:00
acheron d9a9f19394
Fix IDL (#2824)
* Rewrite IDL type spec

* Rewrite IDL generation

* Partially rewrite the TS package with the new IDL, improved account resolution and types
2024-03-10 14:22:23 +01:00
cui fliter 3e2cd0004c
Fix typos in comments (#2830) 2024-03-05 22:42:14 +01:00
acheron 359e2718ba
tests: Fix non-path `anchor-lang` dep in tests (#2811) 2024-02-07 23:59:54 +01:00
acheron ef836852dd
Specify `solana-program` version range to not include 1.18.0 (#2798) 2024-01-29 23:18:57 +01:00
acheron c4f14b9f6f
lang: Remove `try_to_vec` usage (#2744) 2023-12-23 23:28:46 +01:00
Joe C 13fc0bb915
lang: Add `#[interface]` attribute for overriding the default discriminator (#2728) 2023-12-17 23:57:57 +01:00
Jean Marchand (Exotic Markets) c402972bf1
lang: Make bumps of optional accounts `Option<u8>` rather than `u8` (#2730) 2023-12-14 01:31:08 +01:00
acheron dfee9589fd
ts: Remove `anchor-deprecated-state` feature (#2717) 2023-12-03 11:24:40 +01:00
acheron a423f7855b
cli: Require explicit `overflow-checks` flag (#2716) 2023-11-30 00:55:12 +01:00
acheron 9dd1b54acd
lang: Remove the unnecessary clone in `to_account_info().clone()` (#2713) 2023-11-26 16:58:44 +01:00
John Anthos a9c423ef24
syn: Fix IDL constant seeds parsing (#2699) 2023-11-15 23:59:34 +01:00
acheron 8f3bb8a556
cli: Make `cargo build-sbf` the default build command (#2694) 2023-11-07 00:53:26 +01:00
acheron 150fc3e832
Fix workspace `resolver` warning (#2676) 2023-10-30 22:39:07 +01:00
Pierre 9331908aee
tests: Add remaining accounts test (#2683) 2023-10-26 01:14:38 +02:00
Sean Young 749c45a2d9
Fixes for Solidity/Solang (#2677) 2023-10-24 15:59:34 +02:00
acheron fc9fd6d24b
v0.29.0 (#2672) 2023-10-16 18:35:17 +02:00
acheron 8717364f81
Remove the maximum version constraint from Solana crates (#2667) 2023-10-13 23:58:51 +02:00
Jean Marchand (Exotic Markets) 0fef819e4b
chore: Remove abusive cloning (#2663) 2023-10-12 23:59:21 +02:00
Jean Marchand (Exotic Markets) dcafb789e1
lang: Add accounts by reference (#2656) 2023-10-11 16:46:48 +02:00
Jean Marchand (Exotic Markets) 243ab75738
lang: Type safe bumps (#2542) 2023-10-10 23:48:23 +02:00
acheron 721eb7a3be
bench: Fix number formatting due to locale difference (#2655) 2023-10-10 13:16:09 +02:00