Commit Graph

1438 Commits

Author SHA1 Message Date
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
Snoppy 62dccce2ed
Fix typos (#2860) 2024-03-21 22:34:21 +01:00
zilayo 35142161de
client: Fix panic in event parsing due to empty stack (#2856) 2024-03-20 13:54:13 +01:00
acheron b83d5fd64b
Upgrade `cargo_toml` to 0.19.2 (#2859) 2024-03-20 02:36:39 +01:00
Andrei Hrs cc15435e4d
cli: Add priority fees to idl commands (#2845) 2024-03-19 11:00:09 +01:00
acheron 8fdc07bffb
docs: Refactor sidebar navigation (#2852) 2024-03-18 08:26:55 +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
Nabeel 23028334f3
spl: Add documentation for `burn_nft` (#2819)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2024-03-07 14:24:45 +01:00
cui fliter 3e2cd0004c
Fix typos in comments (#2830) 2024-03-05 22:42:14 +01:00
acheron 2f552a17f5
cli: Fix excessive test validator requests (#2828) 2024-02-29 21:42:28 +01:00
acheron 216b56e26f
cli: Add ability to build and test only a specified program (#2823) 2024-02-24 15:45:09 +01:00
acheron 6716c13b38
client: Add documentation for `RequestBuilder.accounts` method (#2822) 2024-02-20 22:38:31 +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
Pioua e21210538d
docs: Fix typos (#2815) 2024-02-10 22:39:00 +01:00
acheron 359e2718ba
tests: Fix non-path `anchor-lang` dep in tests (#2811) 2024-02-07 23:59:54 +01:00
Anthony 08110e63fa
Fix broken link to Rust's code of conduct (#2810) 2024-02-06 23:41:53 +01:00
acheron fde00661c1
spl: Pin version of `toml_edit` crate to 0.21.0 (#2807) 2024-02-04 12:46:25 +01:00
Aoi Kurokawa 94fde24339
cli: Add support for multiple commands with `anchor test` (#2799) 2024-02-01 14:59:46 +01:00
Mike MacCana 616dd239c3
docs: minor fixes to JS Anchor types (#2796) 2024-01-31 12:06:30 +01:00
acheron ef836852dd
Specify `solana-program` version range to not include 1.18.0 (#2798) 2024-01-29 23:18:57 +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
acheron ef3b149348
client: Add crate level examples and features docs (#2779) 2024-01-21 23:32:50 +01:00
acheron dbb36d211c
cli: Remove redundant Solidity code (#2778) 2024-01-18 20:15:55 +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 1fc92ab1e3
lang: Fix `use of unstable library feature 'build_hasher_simple_hash_one'` (#2756) 2023-12-31 18:05:33 +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
Jean Marchand (Exotic Markets) f6a15254d1
lang: Allow custom lifetime for Accounts structure (#2741) 2023-12-21 22:59:41 +01:00
acheron 51ae380574
ci: Remove manual downgrade of `index_list` to make `solana-program-test` compile (#2739) 2023-12-19 23:59:58 +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
chalda 61244a86dc
Change default local test-validator address from localhost to 127.0.0.1 (#2725) 2023-12-11 23:29:01 +01:00
acheron 8bf7f251ad
spl: Fix compilation with `shmem` feature enabled (#2722) 2023-12-08 15:26:22 +01:00