Commit Graph

480 Commits

Author SHA1 Message Date
acheron ede69e67ef
cli: Add `--no-install` option to the `init` command (#2945) 2024-05-02 23:04:48 +02:00
Mike MacCana 940de79bb0
cli: Add filename to 'Unable to read keypair file' errors (#2932)
Use named placeholders in formatting

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2024-05-01 20:24:58 +02:00
skrrb 645ab6dca7
idl: Allow toolchain overriding in `idl build` command (#2941) 2024-04-30 18:44:49 +02:00
Mike MacCana 054850c614
cli: Fix npm warning by using configured default license (#2929) 2024-04-30 18:37:21 +02:00
acheron 81c8c556e8
idl: Add accounts resolution for associated token accounts (#2927) 2024-04-24 18:02:20 +02:00
czkz c96846fce2
ts: Fix incorrect `maxSupportedTransactionVersion` in `AnchorProvider.send*()` methods (#2922) 2024-04-23 18:39:18 +02:00
acheron 10c997552e
Add `anchor-derive-serde` crate to the publish script (#2924) 2024-04-23 00:48:58 +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
zeroc b53bb35cf2
avm: Support customizing the installation location (#2917) 2024-04-20 13:36:19 +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
acheron 95c4959287
ts: Add missing errors (#2906) 2024-04-14 00:00:41 +02:00
Bhargava Sai Macha a18d6caa6d
spl: Make `TokenAccount` and `Mint` `Copy` (#2904) 2024-04-13 23:30:02 +02:00
acheron 1f0bf0ee60
spl: Remove `solana-program` dependency (#2900) 2024-04-11 23:57:41 +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 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 475c694355
Upgrade `spl-token-2022` to 3.0.2 (#2876) 2024-03-31 07:59:49 +02:00
amilz 45c84c524f
cli: Add `deactivate_feature` flag to `solana-test-validator` config in Anchor.toml (#2872) 2024-03-30 17:40:30 +01:00
acheron c66b323293
Upgrade Solana to 1.18.8 (#2867) 2024-03-28 05:52:24 +01:00
acheron 0f6090950a
lang: Add `declare_program!` macro (#2857) 2024-03-25 23:14:02 +01:00
Taylor Johnson 4393d73d3d
ts: Add optional `prepend` parameter to `preInstructions` method (#2863) 2024-03-24 14:39:57 +01:00
acheron 7c424ee58a
ts: Remove `programId` parameter of the `Program` constructor (#2864) 2024-03-22 01:51:26 +01:00
zilayo 35142161de
client: Fix panic in event parsing due to empty stack (#2856) 2024-03-20 13:54:13 +01:00
Andrei Hrs cc15435e4d
cli: Add priority fees to idl commands (#2845) 2024-03-19 11:00:09 +01:00
acheron d931b31c0a
cli: Add `--no-idl` flag to the `build` command (#2847) 2024-03-16 15:56:13 +01:00
acheron ddcb3b8260
ts: Make `opts` parameter of `AnchorProvider` constructor optional (#2843) 2024-03-14 23:59: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
acheron 216b56e26f
cli: Add ability to build and test only a specified program (#2823) 2024-02-24 15:45:09 +01:00
Jayden Park 253501aa89
ts: Correctly construct field layout for type aliases (#2821) 2024-02-19 20:59:48 +01:00
acheron 5d5cadebdd
cli: Accept package name as program name (#2816) 2024-02-16 16:51:56 +01:00
Aoi Kurokawa 8eee184938
cli: Add Rust test template (#2805) 2024-02-14 23:58:40 +01:00
acheron fc8cb5234a
cli: Check `@coral-xyz/anchor` package and CLI version compatibility (#2813) 2024-02-11 03:54:41 +01:00
Aoi Kurokawa 94fde24339
cli: Add support for multiple commands with `anchor test` (#2799) 2024-02-01 14:59:46 +01:00
Gabriele Picco 169264d730
cli: Add support for simple wildcard patterns in Anchor.toml's `workspace.members` and `workspace.exclude` (#2785)
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2024-01-25 14:37:01 +01:00
chalda bcd7e1719e
cli: Specify the address to close with `idl close` and close buffer after `idl upgrade` (#2760)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2024-01-16 20:04:54 +01:00
Ford 66d2f073bb
docs: proofread the changelog (#2772) 2024-01-15 20:17:03 +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
0xabhinav 211982affc
ts: Fix formatting enums (#2763)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2024-01-09 13:47:59 +01:00
Sabir Khan 7cbdff657d
cli: set I/O stream to `Stdio:null` if the given `solana_version` is already installed (#2757)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2024-01-06 18:06:09 +01:00
Neutron 1a6b5066df
ts: Add IDL seed types (#2752)
Signed-off-by: Shiva953 <b22070@students.iitmandi.ac.in>
Co-authored-by: acheron <acheroncrypto@gmail.com>
2024-01-04 18:42:29 +01:00
acheron 47ff77f4df
cli: Check `anchor-lang` and CLI version compatibility (#2753) 2024-01-03 00:01:12 +01:00
acheron de9901b5fd
ts: Remove deprecated `associated` methods (#2749) 2023-12-27 18:35:54 +01:00
Jean Marchand (Exotic Markets) 52fbe55d52
spl: Remove shared memory program (#2747) 2023-12-26 22:21:42 +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