Commit Graph

1442 Commits

Author SHA1 Message Date
acheron 334a44ab7b
lang: Fix instruction return type generation with `declare_program!` (#2977) 2024-05-21 22:04:19 +02:00
cryptopapi997 b76d1bf04b
lang: Fix using optional accounts with `declare_program!` (#2967) 2024-05-20 22:09:08 +02:00
acheron 4540c8253a
Bump minimum Solana crate versions to `1.17.3` (#2975) 2024-05-19 16:44:10 +02:00
acheron 518b73f219
Fix clippy 1.78.0 lints (#2971) 2024-05-16 17:34:44 +02:00
CanardMandarin b7dff46267
lang: Implement `TryFromIntError` for `Error` (#2950) 2024-05-15 21:22:22 +02:00
cryptopapi997 e71a63cb7a
lang: Fix using `Vec<u8>` type with `declare_program!` (#2966) 2024-05-15 08:41:57 +02:00
zeroc 470731b24c
avm: Optimize `avm list` when GitHub API rate limits are reached (#2962) 2024-05-14 15:07:30 +02:00
cryptopapi997 460869bf10
lang: Fix using const generics with `declare_program!` (#2965) 2024-05-14 07:04: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
Mike MacCana d8d007eb89
Add a link to the release notes in the changelog (#2957) 2024-05-11 07:53:01 +02:00
acheron 14309ea146
idl: Fix potential panic on external type resolution (#2954) 2024-05-09 21:29:18 +02:00
guibescos 128e937f4b
idl: Fix generation with recursive external types (#2946) 2024-05-07 18:42:41 +02:00
acheron 970cd236b6
examples: Fix passing `programId` to `Program` constructor (#2948) 2024-05-06 16:59:53 +02:00
acheron ede69e67ef
cli: Add `--no-install` option to the `init` command (#2945) 2024-05-02 23:04:48 +02:00
chalda da3b251f38
cli: Print total steps in IDL buffer writes (#2944) 2024-05-02 22:23:58 +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 9761ea6008
lang: Add example section in `declare_program!` documentation and fix typos (#2936) 2024-04-28 15:02:30 +02:00
Mike MacCana 499e1e67c6
cli: Fix unused variable warning on new projects (#2930) 2024-04-27 18:03: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
acheron fefa69519f
ts: Upgrade `@babel/traverse` to 7.24.1 (#2919) 2024-04-20 19:03:16 +02:00
zeroc b53bb35cf2
avm: Support customizing the installation location (#2917) 2024-04-20 13:36:19 +02:00
fedoras 7515c919f8
lang: Fix `token_program` docs.rs documentation (#2918) 2024-04-20 00:50:00 +02:00
Syed Aabis Akhtar 8e8df76eda
docs: Fix GitHub example link of `declare_program!` in release notes (#2910)
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2024-04-18 15:20:53 +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 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 7356bd5afe
idl: Keep crate and `spec` version the same (#2901) 2024-04-13 01:06:45 +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 ae26fd84bb
spl: Upgrade `mpl-token-metadata` to 4.1.2 (#2899) 2024-04-10 23:58: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 3591ba6cb8
spl: Remove `toml_edit` version requirement (#2895) 2024-04-08 21:19:34 +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 2dd79da674
spl: Upgrade `spl-associated-token-account` to 3.0.2 (#2891) 2024-04-05 23:18:46 +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
Jasper 6aba24e225
cli: Standardize Rust templates for `anchor init` generated JSON and ignore files (#2874) 2024-03-30 17:14:30 +01:00