Commit Graph

314 Commits

Author SHA1 Message Date
Armani Ferrante 6baed77eb5
v0.25.0 (#2031) 2022-07-05 16:32:55 -04:00
Matthew Callens c47fb2877e
lang: adjust `realloc` implementation to safeguard max increase and idempotency (#1986) 2022-07-05 15:54:40 -04:00
Matthew Callens e67c50f914
ts: convert `EventParser.parseLogs` to a generator function (#2018) 2022-07-01 23:29:19 -04:00
Matthew Callens 2ad00678b6
ts: add `accountsStrict` for non-resolvable accounts input (#2019) 2022-07-01 18:26:09 -04:00
Italo Casas a1bb494631
docs meta tags and registry url (#2010) 2022-06-28 18:01:14 -04:00
Sohrab 55e0c5d9dd
fix: align links to coral-xyz/anchor github repo (#1988) 2022-06-19 22:16:16 -04:00
Matthew Callens 179711bacc
ts: verbose error for missing `ANCHOR_WALLET` in `NodeWallet.local()` (#1958) 2022-06-10 09:54:06 -04:00
Anoushk Kharangate 8f7572e8af
ts: add alternative to rpc deprecated comments (#1832) 2022-06-09 12:16:07 -04:00
Daniel Marin a5dbc7b850
ts: setup associated token program idl (#1939) 2022-06-01 14:51:44 -04:00
Vladimir Guguiev d83fcbf7bc
ts: Add program.coder.types for encoding/decoding user-defined types (#1931) 2022-05-29 22:39:45 +02:00
dboures f9c42f104b
ts: remove .rollup.cache when publishing npm package (#1919) 2022-05-26 17:17:57 +02:00
Daniel Marin 707ebf26e7
feat: Setup a coder for SystemProgram (#1920) 2022-05-26 13:03:44 +02:00
Sohrab f866d073db
fix(ts/idl): export all IDL types (#1918) 2022-05-25 14:15:18 +02:00
Krešimir Klas d3e9b5f05d
ts: add docs field to IdlAccoutDef and IdlTypeDef types (#1915) 2022-05-22 10:07:17 +02:00
Charlie You 90bbc8b6be
ts: Add tx signature to EventCallback (#1851) 2022-05-17 11:24:16 -04:00
Armani Ferrante ef178e5217
token metadata and accounts resolver update (#1896) 2022-05-15 18:28:11 -04:00
Aximili 8ddc9f25a6
ts: Fix browser detection (#1233) 2022-05-04 11:06:09 -04:00
Armani Ferrante ee14a884f7
ts: provider publicKey optional (#1867) 2022-05-03 10:45:42 -04:00
Victor Pontis e6155dbc7d
Fix typo in instruction.ts (#1862) 2022-05-02 18:05:32 -04:00
Tommy Johnson 0011e22b91
add wallet publickey to Provider (#1845) 2022-04-28 18:23:20 -04:00
ebrightfield ed15922f1a
Add docs field to idl (#1561) 2022-04-21 16:37:41 -04:00
Ian Macalinao b18b7f7393
Add superstruct as a direct dependency (#1802) 2022-04-20 16:37:55 -04:00
Armani Ferrante 0b4c7b0c73
v0.24.2 (#1788) 2022-04-13 19:44:18 -04:00
Armani Ferrante d491f0ba1d
v0.24.1 (#1779) 2022-04-12 18:50:33 -04:00
Paul fb149f96a1
update yarn lockfile, fix cli template, and fix ci (#1770) 2022-04-12 15:02:06 -04:00
Armani Ferrante b0f263214d
v0.24.0 (#1769) 2022-04-12 10:52:06 -04:00
Paul 537d470954
ts: make `Provider` an interface, add `AnchorProvider` class, and update provider functions (#1707) 2022-04-11 15:48:58 -04:00
Krešimir Klas 12f6541486
ts: export error types (#1756) 2022-04-11 11:25:59 -04:00
DFL Zeke 7d611ac46f
ts: fix program upgrade event crashes existing listeners (#1757) 2022-04-11 09:38:43 -04:00
Armani Ferrante 032525c212
ts: use modern gma api (#1753) 2022-04-10 16:05:52 -04:00
Matthew Callens d1ddf8ee24
ts: add `pubkeys` method builder function to view all instruction account addresses (#1733)
Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com>
2022-04-10 13:19:56 -04:00
Armani Ferrante a89d2468d0
Revert "ts: Add data type to clients in `AccountNamespace` (#1358)" (#1739) 2022-04-06 15:39:41 -04:00
Harshal Sheth 423223d5bf
ts: Add data type to clients in `AccountNamespace` (#1358) 2022-04-06 13:16:20 -04:00
Tom Linton 8fb942efd5
ts: Add views (#1695) 2022-04-03 19:15:06 -04:00
matias-la 3e0f641c66
ts: remove find^0.3.0 unused dependency (#1709) 2022-03-30 22:35:13 -04:00
Pierre 237dbbe42e
Add coption to DecodeType (#1699) 2022-03-30 21:43:29 -04:00
Tom Linton 1cb7429fe2
lang: Allow CPI return values (#1598) 2022-03-24 14:40:38 -04:00
Krešimir Klas 946fa23538
ts: fix type for accounts field in Idl (#1542) 2022-03-22 21:43:51 -04:00
Paul 4b4b8007fb
update lockfiles (#1662) 2022-03-21 00:47:56 -04:00
Armani Ferrante e66c0466b6
fix typedoc version (#1661) 2022-03-20 23:51:28 -04:00
Armani Ferrante 77b1afcf2f
v0.23.0 (#1660) 2022-03-20 23:30:55 -04:00
Paul 9afdb17ac2
ts: add error log parsing to ts client (#1640) 2022-03-20 20:29:12 -04:00
robert-balcerowicz 1c7139a9e3
ts: Use return value of `wallet.signTransaction` in `provider.ts` (#1527) 2022-03-20 14:11:41 -04:00
Paul 94b0fec714
fix anchor-lang import in safety-check, add custom-coder to ci, and fix spl-token coder (#1604) 2022-03-16 18:27:57 -04:00
Matthew Callens b376fd4615
lang: add additional `require_x` comparison macros (#1622) 2022-03-16 14:45:09 -04:00
Paul 3b0006b3ce
use sol_log_data for logging events (#1608) 2022-03-16 14:28:19 -04:00
Paul 721fe6693c
lang: add support for logging expected and actual values and pubkeys (#1572) 2022-03-15 11:42:17 -04:00
Armani Ferrante b149fc522a
ts: add provider parameter to spl token client (#1597) 2022-03-10 22:43:33 -05:00
Matthew Callens eee75ab07a
ts: fix methods builder `.accounts` requiring global programs (#1548) 2022-03-03 22:42:45 -05:00
Matthew Callens 80be42803d
ts: fix methods namespace typing loss and deprecate non-methods namespaces (#1539) 2022-03-01 19:26:32 -05:00
Matthew Callens a78c9c0341
lang: add sysvar custom error and failing test case (#1535) 2022-03-01 11:33:18 -05:00
Totoro 9c49e7642d
ts: fix formatIdlData for option defined type (#1439) 2022-02-28 12:15:54 -05:00
Armani Ferrante b733610d87
v0.22.1 (#1528) 2022-02-28 11:35:59 -05:00
Armani Ferrante 24ccaea903
v0.22.0 (#1484) 2022-02-20 20:32:38 -05:00
Paul 40596824bf
error redesign (#1462) 2022-02-20 17:28:24 -05:00
Pavel Kuzovkin 90bcea1cbe
lang, ts: float types support (#1425) 2022-02-17 14:23:21 -05:00
Paul 1f56a62bab
lang: add check that declared id == program id (#1451) 2022-02-15 18:16:06 -05:00
tuphan-dn 40379eb21f
ts: update SPL IDL (#1450) 2022-02-14 21:28:39 -05:00
Daniel Marin 3838bdeaf0
ts: allow nullable types for option fields (#1428) 2022-02-10 09:46:44 -05:00
Krešimir Klas 580167a1b0
ts: add metadata field to Idl type (#1422) 2022-02-09 16:51:39 -05:00
dependabot[bot] 6d3a7e54ec
build(deps): bump trim-off-newlines from 1.0.1 to 1.0.3 in /ts (#1418) 2022-02-08 17:34:21 -05:00
dependabot[bot] b66761d488
build(deps): bump node-fetch from 2.6.1 to 2.6.7 in /ts (#1417) 2022-02-08 17:34:02 -05:00
Armani Ferrante ef1a58d665
v0.21.0 (#1403) 2022-02-07 20:10:49 -05:00
Armani Ferrante 598c7b0790
lang: error if bump target is given on init (#1380) 2022-02-07 13:26:05 -05:00
Eoin Murphy 9fea72e701
ts: fill in some gaps for ts IDL types (#1393) 2022-02-04 13:11:17 -05:00
Matthew Callens 714f5e6b75
ts: fix `Wallet` class declaration (#1363) 2022-01-31 18:31:21 -05:00
Armani Ferrante 46722953c1
ts: verified build utility (#1371) 2022-01-29 16:46:12 -05:00
Armani Ferrante d8d720067d
lang, ts: automatic client side pda derivation (#1331) 2022-01-24 14:44:24 -05:00
Armani Ferrante e121e4e09d
ts: builder api (#1324) 2022-01-15 17:09:53 -05:00
Alberto Ruiz 1f95929f1d
docs: add webpack 5 note on @project-serum/anchor (#1320) 2022-01-15 11:32:40 -05:00
xjcaa f34287e399
ts: remove event error log (#1313) 2022-01-14 11:02:15 -05:00
Armani Ferrante 84e0852584
ts: `Coder` as interface and SPL token coder (#1259) 2022-01-09 21:10:25 -05:00
Armani Ferrante a81ff88d76
v0.20.1 (#1274) 2022-01-09 16:50:10 -05:00
Armani Ferrante 9c47c0a6cd
v0.20.0 (#1251) 2022-01-06 18:09:43 -05:00
Dominic Lee 6f4fe1dd11
ts: add missing types for conditional exports (#1137) 2022-01-03 11:51:27 +01:00
Paul b3720a0b84
lang, ts: fix init_if_needed missing ATA address check (#1221) 2022-01-01 21:47:13 -05:00
John Rees 69299fb723
ts: only read .json files when parsing IDLs (#1214) 2021-12-30 20:26:11 -05:00
Neco 483999e870
ts: remove deprecated commitment settings (#1128) 2021-12-20 10:51:02 +01:00
Paul d353ed133c
ts: ts-ignore crusade (#1174) 2021-12-19 19:16:49 -05:00
Paul af926876c5
ts: add optional commitment arg (#1171) 2021-12-19 11:28:39 -05:00
man0s 561f7cdaa8
Change AccoutNotProgramOwned error to AccountOwnedByWrongProgram (#1154) 2021-12-17 13:34:43 +01:00
0xCryptoSheik a7e80079da
fix: translateAddress should not rely on PublicKey constructor nam (#1138) 2021-12-15 02:20:26 +01:00
Armani Ferrante 3afd1a22e4
v0.19.0 (#1116) 2021-12-08 17:33:36 -05:00
Paul 423ddde30a
lang: Always execute constraints for init_if_needed (#1096) 2021-12-08 16:50:08 -05:00
Dominic Lee bef1bd8b80
ts: add getAccountInfo helper method to account namespace/client (#1084) 2021-12-08 15:05:52 +01:00
Jeduan Cornejo 0f8de4f6af
ts: Create a minified browser build (#1108) 2021-12-07 15:16:46 -05:00
Paul 3321a3f9c9
lang: Add ProgramData account (#1095) 2021-12-05 14:14:16 -05:00
Paul 517838e494
ts: Better public key error msgs (#1098) 2021-12-04 15:01:50 -05:00
Tom Linton 6bc59350de
lang: Add constant attribute (#956) 2021-12-03 18:49:38 -05:00
Vladimir Guguiev 5e8d335599
ts: Improve native ESM compatibility (#1053) 2021-11-28 08:02:58 -08:00
Armani Ferrante c868b91e93
ts: Add bool, u128, i128 for idl types (#1042) 2021-11-19 07:14:43 -08:00
Mikhail Gorbachev 2d44654a4b
lang: Add `AccountNotInitialized` error (#1024) 2021-11-18 07:42:07 -08:00
Swift e7e8f4da9b
ts: Remove console logs from Node package (#1031) 2021-11-17 14:58:26 -08:00
dependabot[bot] 94de51bc67
build: Bump ansi-regex from 5.0.0 to 5.0.1 in /ts (#1012) 2021-11-14 06:46:39 -08:00
SolanaMonkeyBusiness c188846a4b
ts: Add postInstructions (#1007) 2021-11-14 06:45:03 -08:00
Tom Linton 1319dc65d6
v0.18.2 (#1011) 2021-11-13 18:58:10 -08:00
Matthew Callens 20726d06bd
lang: Add `SystemAccount<'info>` Account Type (#954) 2021-10-30 11:45:06 -05:00
Matthew Callens ec26966340
ts: Capitalize account discriminator in `AccountCoder` (#931) 2021-10-27 11:09:40 -07:00
Armani Ferrante 229e335da8
v0.18.0 (#921) 2021-10-24 19:18:32 -07:00
Armani Ferrante f68cc50e5b
ts: Add package.json metadata (#911) 2021-10-21 19:37:18 -07:00