Commit Graph

1228 Commits

Author SHA1 Message Date
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
acheron 6eacad4b11
cli: Add program template with multiple files (#2602) 2023-08-15 23:58:17 +02:00
acheron 454f1dd044
ts: Add support for unnamed(tuple) enum in accounts (#2601) 2023-08-13 16:50:28 +02:00
Jimii b5cf67f13b
spl: Add `TokenRecordAccount` for pNFTs (#2597) 2023-08-12 22:02:37 +02:00
Proph3t 58428f858d
Add `setup_tests.sh` for setting up your local machine for tests (#2594) 2023-08-11 21:48:28 +02:00
acheron 4cf447a1c4
bench: Add benchmarking for program binary size (#2591) 2023-08-08 22:03:31 +02:00
acheron abfdc4e88f
chore: Remove duplicate dependency and and alphabetize features (#2590) 2023-08-05 23:47:06 +02:00
acheron 2af9cc669b
cli: Improve converting non-conflicting paths to names in IDL (#2588) 2023-08-02 23:01:05 +02:00
Proph3t be8764b8a8
Fix typo in account.rs docs (#2587) 2023-08-01 22:23:48 +02:00
acheron b7b8736276
spl: Export `mpl-token-metadata` crate (#2583) 2023-07-31 23:41:12 +02:00
acheron cad868a052
Make the new IDL features explicit (#2582) 2023-07-29 23:49:17 +02:00
acheron 8f30f00ec3
tests: Improve IDL comparison tests (#2581) 2023-07-27 23:29:26 +02:00
Pierre df3e95925b
chore: Use @noble/hashes/sha256 rather than obscure package (#2580) 2023-07-26 23:56:12 +02:00
acheron 5eb678a8bf
ts: Lazy load workspace programs and improve program name accessor (#2579) 2023-07-25 23:52:26 +02:00
acheron 4604fbea9c
cli: Automatically decide IDL generation method (#2578) 2023-07-22 16:39:05 +02:00
Jean Marchand (Exotic Markets) c548c85dff
chore: Remove unused crates (#2577) 2023-07-22 12:43:56 +02:00
Jean Marchand (Exotic Markets) 2bb3237da6
chore: Fix clippy lints (#2576) 2023-07-21 11:04:52 +02:00
dromaz 10eb698912
avm: Add support for the `.anchorversion` file (#2553)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-07-20 23:58:13 +02:00
acheron 8309bb3ed5
cli: Fix `anchor build --no-docs` (#2575) 2023-07-19 18:28:38 +02:00
acheron c306463432
tests: Refactor IDL tests (#2573) 2023-07-17 22:47:55 +02:00
acheron cf057acac0
client: Fix compilation with Solana `1.14` (#2572) 2023-07-16 17:08:25 +02:00
acheron 4e5280be46
cli: Fix workspace inheritence (#2570) 2023-07-14 23:17:23 +02:00
Lucas Steuernagel cfc6d2916b
cli: Bump `solang-parser` version (#2569) 2023-07-14 21:29:16 +02:00
acheron 472279d10d
cli: Add `--out` and `--out-ts` arguments for `idl build` command (#2566) 2023-07-13 22:06:12 +02:00
acheron b7e91d4d0d
Remove IDL `path` field (#2564) 2023-07-11 19:05:14 +02:00
Krešimir Klas 6ef6b79a6c
IDL generation through compilation (#2011)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-07-08 19:59:30 +02:00
Noah Prince 0225b7c0fd
lang: Allow polymorphic CPI calls matching an interface (#2559) 2023-07-07 23:30:38 +02:00
Jean Marchand (Exotic Markets) 9ff7dfcf6f
lang: Support for `const` in the `InitSpace` macro (#2555) 2023-07-05 10:05:37 +02:00
chalda 401d526150
client: Add `DynSigner` (#2550) 2023-07-03 22:56:58 +02:00
acheron e55cd3e646
lang: Add `Lamports` trait (#2552) 2023-07-01 22:59:36 +02:00
Jean Marchand (Exotic Markets) 5624bfe0ff
lang: Fix typo in the doc (#2551) 2023-06-29 13:35:38 +02:00
acheron 29b8a72800
bench: Show change amount and add change note (#2549) 2023-06-27 20:03:51 +02:00
Han Yang 8bdc1b18ea
spl: Only allow spl-token version above 1.1 (#2546) 2023-06-26 19:04:30 +02:00
acheron 9e73317d09
bench: Show Solana version used in tests (#2543) 2023-06-24 23:28:16 +02:00
acheron d41e513351
ts: Bump packages to `0.28.1-beta.1` (#2539) 2023-06-21 23:32:14 +02:00
acheron b5519a6532
bench: Add lock files and store Solana version (#2537) 2023-06-20 20:20:22 +02:00
acheron 9d947cb26b
ts: Remove usage of `assert` (#2535) 2023-06-17 21:19:42 +02:00
acheron 78d48552c6
docker: Update org name and Ubuntu version (#2533) 2023-06-14 20:41:20 +02:00
acheron c2a36f9e42
ci: Enable `anchor init` test (#2529) 2023-06-12 20:09:14 +02:00
acheron e1afcbf71e
v0.28.0 (#2527) 2023-06-09 18:00:35 +02:00
acheron c7c73194d8
Allow wider range of dependency versions to reduce dependency issues (#2524) 2023-06-08 18:59:44 +02:00
acheron 6df34e7678
Update crate authors and remove outdated registry (#2522) 2023-06-07 19:12:56 +02:00
Jean Marchand (Exotic Markets) 1705d16376
docs: Add doc for InitSpace macro (#2521) 2023-06-07 16:29:23 +02:00
acheron 3d7c97be90
cli: Accept program lib name for `anchor deploy --program-name` (#2519) 2023-06-06 19:28:24 +02:00
Sergo a88be4209a
ts: Validate `error.data` exists on simulation response (#2508) 2023-06-06 13:07:33 +02:00
Jean Marchand (Exotic Markets) 65c9d6e9b9
client: Add async to anchor-client (#2488)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-06-06 09:43:46 +02:00
Deep Mehta b8eda6980c
cli: Print not found message if the given program cannot be found during deployment (#2517) 2023-06-05 19:05:24 +02:00
CanardMandarin 1902b8e586
cli: Update programs in `Anchor.toml` when using `anchor new` (#2516) 2023-06-05 14:16:10 +02:00
acheron 383e440788
cli: Initialize with the correct program id (#2509) 2023-06-04 21:02:16 +02:00