Commit Graph

248 Commits

Author SHA1 Message Date
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
acheron 267c4ceab7
tests: Remove `auction-house` submodule and host it natively (#2654) 2023-10-09 13:50:40 +02:00
acheron 5e7fb44518
Upgrade Solana to `1.17.0` (#2645) 2023-10-07 23:53:37 +02:00
acheron 51578bcbc5
spl: Fix compilation error and warnings (#2647) 2023-10-05 19:19:07 +02:00
acheron f18fd971fb
Update Node to `18.18.0` LTS (#2643) 2023-10-03 11:49:03 +02:00
acheron e1d5e785b8
syn: Fix generic type aliases (#2644) 2023-10-01 22:53:02 +02:00
acheron d1e32674d5
Add type alias support (#2637) 2023-09-27 22:59:29 +02:00
Sean Young 3e8bc76d72
Update to solang v0.3.2 and add simple test (#2636) 2023-09-26 22:55:41 +02:00
acheron 3c6fc2ba2d
syn: Fix IDL named enum variant field being snake_case (#2633) 2023-09-21 18:45:22 +02:00
acheron b5f4796156
Add `IdlBuild` trait (#2629) 2023-09-15 23:59:18 +02:00
acheron fdda604d41
ts: Add strong type support for `addEventListener` (#2627) 2023-09-13 00:12:41 +02:00
acheron 4955a92593
Add byte slice(`&[u8]`) support for `idl-build` (#2622) 2023-09-08 10:01:51 +02:00
acheron a1e4453a0b
cli: Make conflicting account names a compile-time error (#2621) 2023-09-05 17:30:53 +02:00
Will dcf5928f3f
lang: `Box` the inner enums of `anchor_lang::error::Error` (#2600)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-08-30 19:28:51 +02:00
acheron 115679e675
bench: Add benchmarking for stack memory usage (#2617) 2023-08-28 14:13:12 +02:00
Will a7205af5df
lang: `associated_token` constraints don't work when setting `token_program` (#2603)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-08-23 22:10:08 +02:00
acheron 6f9f7d9369
tests: Move IDL related tests in `misc` to `idl` (#2606) 2023-08-19 13:09:09 +02:00