Commit Graph

422 Commits

Author SHA1 Message Date
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
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
Snoppy 62dccce2ed
Fix typos (#2860) 2024-03-21 22:34:21 +01:00
acheron b83d5fd64b
Upgrade `cargo_toml` to 0.19.2 (#2859) 2024-03-20 02:36:39 +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 ef836852dd
Specify `solana-program` version range to not include 1.18.0 (#2798) 2024-01-29 23:18:57 +01:00
acheron 60b10809c0
Enable all features for docs.rs build (#2774) 2024-01-14 19:42:58 +01:00
acheron c93b33a27e
cli: Fix `migrate` command not working without global `ts-node` installation (#2767) 2024-01-11 14:13:56 +01:00
acheron 1fc92ab1e3
lang: Fix `use of unstable library feature 'build_hasher_simple_hash_one'` (#2756) 2023-12-31 18:05:33 +01:00
acheron c4f14b9f6f
lang: Remove `try_to_vec` usage (#2744) 2023-12-23 23:28:46 +01:00
Jean Marchand (Exotic Markets) f6a15254d1
lang: Allow custom lifetime for Accounts structure (#2741) 2023-12-21 22:59:41 +01:00
Joe C 13fc0bb915
lang: Add `#[interface]` attribute for overriding the default discriminator (#2728) 2023-12-17 23:57:57 +01:00
cavemanloverboy c2b5472d85
lang: Add `InstructionData::write_to` implementation (#2733)
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-12-16 23:59:53 +01:00
Michal Nazarewicz 250fa8cdc5
lang: Avoid temporary `Vec`s when serializing objects with discriminators and set default capacity to 256 bytes (#2691) 2023-12-14 21:09:48 +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 4c0af6dc53
lang: Remove `CLOSED_ACCOUNT_DISCRIMINATOR` (#2726) 2023-12-12 20:55:21 +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 167c8ecbf5
syn: Fix `Hash::new_from_array` warning in non-bpf targets (#2693) 2023-11-03 15:53:46 +01:00
Michal Nazarewicz 7e5bdce710
Update base64 dependency (#2686) 2023-10-28 23:00:00 +02:00
vadorovsky 85a5a9bdfc
syn: Add missing `new_from_array` method to `Hash` (#2682) 2023-10-25 00:15:12 +02:00
acheron e0d0df4ab5
Fix 1.73.0 clippy warnings (#2674) 2023-10-20 15:48:01 +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
acheron 6cf200493a
spl: Update dependencies to their latest versions (#2657) 2023-10-12 11:13:30 +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 5e7fb44518
Upgrade Solana to `1.17.0` (#2645) 2023-10-07 23:53:37 +02:00
acheron 25b24a1fd3
syn: Fix having access to `idl` module by default (#2650) 2023-10-06 14:52:50 +02:00