Commit Graph

365 Commits

Author SHA1 Message Date
acheron 51b21cebca
ts: Remove `StateCoder` (#3224) 2024-09-04 23:58:55 +02:00
acheron 1152f9019a
ts: Upgrade `typescript` to 5.5.4 (#3221) 2024-09-03 23:57:30 +02:00
acheron 5c67b04625
lang, ts: Update discriminator-related documentation (#3211) 2024-08-29 23:59:25 +02:00
acheron 65c159fb3c
ts: Include unresolved accounts in the resolution error message (#3207) 2024-08-28 23:58:32 +02:00
dev4all.sol a245dce292
ts: Add optional `options.blockhash` to `Provider.sendAndConfirm` (#3070) 2024-08-28 23:56:56 +02:00
acheron 04b2153007
ts: Change the `Program` constructor's `idl` parameter type to `any` (#3181) 2024-08-19 23:55:52 +02:00
acheron 275b28a345
ts: Improve error message of unsupported `view` method (#3177) 2024-08-17 23:58:13 +02:00
acheron 48c732ddac
ts: Remove `crypto-hash` dependency (#3171) 2024-08-15 23:55:12 +02:00
acheron bb809fd1df
lang, ts: Remove "8 byte" requirement from discriminator error messages (#3161) 2024-08-09 23:01:44 +02:00
acheron fb7ea68c0d
ts: Add optional `wallet` property to the `Provider` interface (#3130) 2024-07-28 23:05:43 +02:00
acheron 9fce3dfc9c
ts: Get discriminator lengths dynamically (#3120) 2024-07-26 21:21:20 +02:00
Tomáš Livora 18cc94be94
ts: Add `commitment` param to `addEventListener` (#3052) 2024-06-26 23:00:17 +02:00
acheron e6d7dafe12
v0.30.1 (#3040) 2024-06-20 17:20:02 +02:00
cryptopapi997 29a6558d08
ts: Fix using IDLs that have defined types as generic arguments (#3016) 2024-06-10 23:40:05 +02:00
Loris Leiva cd826271c2
ts: Extract Anchor error codes into their own package (#2983) 2024-05-29 22:24:32 +02:00
CanardMandarin b7dff46267
lang: Implement `TryFromIntError` for `Error` (#2950) 2024-05-15 21:22:22 +02:00
czkz c96846fce2
ts: Fix incorrect `maxSupportedTransactionVersion` in `AnchorProvider.send*()` methods (#2922) 2024-04-23 18:39:18 +02:00
acheron fefa69519f
ts: Upgrade `@babel/traverse` to 7.24.1 (#2919) 2024-04-20 19:03:16 +02:00
acheron 852fcc77be
v0.30.0 (#2909) 2024-04-15 17:20:01 +02:00
acheron 95c4959287
ts: Add missing errors (#2906) 2024-04-14 00:00:41 +02:00
acheron da2d9a4045
idl: Store deployment addresses for other clusters (#2892) 2024-04-06 23:39:53 +02:00
dongjinlong c2cd5a99aa
Fix typos in comments (#2868) 2024-03-27 23:59:38 +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
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
cui fliter 3e2cd0004c
Fix typos in comments (#2830) 2024-03-05 22:42:14 +01:00
Jayden Park 253501aa89
ts: Correctly construct field layout for type aliases (#2821) 2024-02-19 20:59:48 +01:00
0xabhinav 211982affc
ts: Fix formatting enums (#2763)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2024-01-09 13:47:59 +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 de9901b5fd
ts: Remove deprecated `associated` methods (#2749) 2023-12-27 18:35:54 +01:00
Joe C 13fc0bb915
lang: Add `#[interface]` attribute for overriding the default discriminator (#2728) 2023-12-17 23:57:57 +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 dfee9589fd
ts: Remove `anchor-deprecated-state` feature (#2717) 2023-12-03 11:24:40 +01:00
acheron 5a655b0f65
ts: Use workspace dependencies and fix tests (#2685) 2023-10-27 00:59:11 +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 d1e32674d5
Add type alias support (#2637) 2023-09-27 22:59:29 +02:00
acheron 28adaf2343
ts: Remove `base64-js` dependency (#2635) 2023-09-25 23:36:58 +02:00
acheron fdda604d41
ts: Add strong type support for `addEventListener` (#2627) 2023-09-13 00:12:41 +02:00
acheron a5e4c02de0
ts: Bump packages to `0.28.1-beta.2` (#2616) 2023-08-27 10:21:17 +02:00
acheron 454f1dd044
ts: Add support for unnamed(tuple) enum in accounts (#2601) 2023-08-13 16:50:28 +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 d41e513351
ts: Bump packages to `0.28.1-beta.1` (#2539) 2023-06-21 23:32:14 +02:00
acheron 9d947cb26b
ts: Remove usage of `assert` (#2535) 2023-06-17 21:19:42 +02:00
acheron e1afcbf71e
v0.28.0 (#2527) 2023-06-09 18:00:35 +02:00
Sergo a88be4209a
ts: Validate `error.data` exists on simulation response (#2508) 2023-06-06 13:07:33 +02:00
Noah Gundotra 23b90bffc0
Feature: CPI Events API (#2438)
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-05-26 18:36:46 +02:00
James 9a93a2eccc
ts: Improve IDL typing (#2482)
* Use XOR pattern for enum variants to prevent two variants being used at the same time.

* Fix unknown for types like Option<[u8; 32]>
2023-05-08 11:17:51 +02:00