Commit Graph

314 Commits

Author SHA1 Message Date
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
Maximilian Schneider 0aeaac7c23
ts: Improve error message (#891) 2021-10-17 17:51:55 -07:00
Pierre 39791dc4af
ts: Fix empty instructions array (#877) 2021-10-13 09:47:16 -07:00
Pierre ee190595ac
ts: Update types to work for vec and array (#862) 2021-10-10 09:04:46 -07:00
Susmitha Kodamarthi a845af21af
fix: Remove TypesCoder (#859) 2021-10-09 21:55:08 -07:00
NorbertBodziony 24d07aa41b
ts: Types fixes (#850) 2021-10-09 14:14:14 -07:00
ChewingGlass 0a660d26c4
ts, cli: Program clients generic over IDL types (#795) 2021-10-04 23:16:13 -07:00
Armani Ferrante 6eead5669e
v0.17.0 (#828) 2021-10-03 16:54:00 -07:00
Armani Ferrante a6bac96ac9
ts: Lint fix (#817) 2021-10-01 09:55:59 -07:00
Dana Hanna d325f218dd
ts: Add message for base Error property (#810) 2021-09-28 11:36:59 -07:00
Armani Ferrante 3d21d33cd5
v0.16.2 (#807) 2021-09-27 16:40:44 -07:00
Daniel Marin 73f046e0a5
ts: Extend filters for `all` method (#788) 2021-09-25 07:22:12 -07:00
dependabot[bot] b8ee0ccd14
ts: Bump tmpl from 1.0.4 to 1.0.5 (#791) 2021-09-23 17:51:09 -07:00
Daniel Marin b71cc6d5e5
ts: Expose accountDiscriminator as static method (#775) 2021-09-22 12:12:13 -07:00
Bryan Zierk cfba251fc4
ts: Fixed typo in docs (#781) 2021-09-22 10:22:53 -07:00
Dana Hanna d40400fff2
ts: Add fetchMultiple to compliment rpc getMultiple (#761) 2021-09-21 12:15:43 -07:00
Dana Hanna fe355ed159
ts: Batch calls to getMultipleAccounts (#763) 2021-09-20 18:59:52 -07:00
Ian Macalinao 296f4b6b2d
ts: Allow adding types for AccountsCoder names (#764) 2021-09-19 16:12:30 -07:00
Ian Macalinao 9426918c4b
ts: Export more TypeScript types (#753) 2021-09-19 16:11:24 -07:00
Armani Ferrante d8f947fc9c
v0.16.1 (#751) 2021-09-17 12:33:32 -05:00
Armani Ferrante 780094a648
v0.16.0 (#746) 2021-09-16 19:19:15 -05:00
Ian Macalinao 90df0b1976
ts: Improve TypeScript types (#739) 2021-09-16 15:42:11 -05:00
tomland123 a1f4fac09d
ts: Expose ProgramError (#737) 2021-09-14 18:06:49 -05:00
Armani Ferrante 0faed88600
spl, ts: Pin serum-dex and lint (#735) 2021-09-14 12:24:18 -05:00
Pierre bf5cf80c11
ts: Use env variable for local wallet (#718) 2021-09-12 10:07:42 -07:00
Armani Ferrante b1ef7431ec
lang, spl: Program and Signer types (#705) 2021-09-11 14:43:12 -07:00
hana e2bd41b967
ts: Support empty account structs (#712) 2021-09-11 14:39:12 -07:00
xjcaa 8af34c4d08
ts: Make account unsubscribe async (#707) 2021-09-11 09:18:16 -07:00
Pierre 4451779036
ts: Add array to ts IdlType (#697) 2021-09-08 09:04:12 -07:00
Armani Ferrante 23656de877
v0.15.0 (#688) 2021-09-07 18:30:04 -07:00
Armani Ferrante 5017a1afee
v0.14.0 (#655) 2021-09-02 11:31:50 -07:00
xjcaa 7e7e866bb2
ts: Fix event listener and add multiple event test (#631) 2021-08-23 11:56:23 -07:00
Armani Ferrante 715200d053
ts: Add deprecated annotation to associated functions (#627) 2021-08-22 18:22:40 -07:00
Armani Ferrante 3be29425ac
ts: Add associated client code (#626) 2021-08-20 11:39:07 -07:00
xjcaa 84a2b8200c
ts: Fix typo (#621) 2021-08-18 10:35:29 -07:00
dependabot[bot] 48e3f450ca
ts: Bump path-parse from 1.0.6 to 1.0.7 (#620) 2021-08-17 18:33:14 -07:00
Armani Ferrante 6e55078ff3
lang, ts, examples: Remove associated keyword (#612) 2021-08-15 16:35:53 -07:00
Armani Ferrante 8e4870d370
v0.13.2 (#599) 2021-08-11 01:13:38 -07:00
Armani Ferrante 496f2b258c
v0.13.1 (#597) 2021-08-10 22:33:28 -07:00
Armani Ferrante af7d246c0c
v0.13.0 (#587) 2021-08-08 19:38:50 -07:00
Armani Ferrante 73dc612b7c
ts: Export EventParser (#591) 2021-08-08 18:50:34 -07:00
Kirill Fomichev ceb80b0a04
lang: Dynamically fetch rent sysvar for when using `init` (#588) 2021-08-08 13:20:26 -07:00
Armani Ferrante 3248481288
cli: Anchor registry publishing (#570) 2021-08-08 02:11:48 -07:00
Armani Ferrante ec6888a3b9
v0.12.0 (#572) 2021-08-04 12:29:38 -07:00
Armani Ferrante 4e7790eacf
ts: Fix accounts iterable (#573) 2021-08-03 16:47:11 -07:00
Armani Ferrante 21cc98517a
ts: Fix undefined iterable (#571) 2021-08-03 16:13:31 -07:00
Kirill Fomichev ad075ceb56
ts: Use accounts with types in InstructionCoder (#568) 2021-08-03 13:54:20 -07:00
aac a4a8b6f769
ts: More efficient event subscriptions (#502) 2021-07-29 22:30:00 -07:00
Kirill Fomichev 8dc7bed4ef
ts: Use hex by default for decoding Instruction (#547) 2021-07-24 10:59:12 -07:00
Armani Ferrante 2c80042ef5
ts, travis: Run prettier (#525) 2021-07-17 17:56:42 -07:00
aac ab49478259
ts: Check if execution context stack is empty in event parser (#524) 2021-07-16 09:56:49 -07:00
Armani Ferrante c5b61848c0
v0.11.1 (#507) 2021-07-09 19:05:57 -07:00
Standaa dac6b17866
ts: Fix event listener not firing when creating associated accounts (#397) 2021-07-09 11:46:22 -07:00
Chris Heaney 5866c886dd
ts: Add Event import (#471) 2021-07-04 11:07:53 -07:00
Armani Ferrante bbc40ba1c0
v0.11.0 (#458) 2021-07-03 12:41:55 -07:00
Kirill Fomichev 2d974604ae
lang: Remove belongs_to in favor of has_one (#459) 2021-07-03 11:58:23 -07:00
Armani Ferrante 915e6dd398
lang, ts: Fallback functions (#457) 2021-07-02 17:33:48 -07:00
Armani Ferrante 6ad68ed368
lang, ts: Add deprecated state address feature flag (#446) 2021-07-02 16:53:22 -07:00
Armani Ferrante b1dabe8c12
ts: Export AccountsCoder (#439) 2021-06-29 08:35:33 -07:00
John Rees a7f6af2cc6
ts: Import node modules if not browser (#436) 2021-06-28 13:31:41 -07:00
Armani Ferrante c7de475177
v0.10.0 (#433) 2021-06-27 17:34:40 -07:00
Armani Ferrante f067624add
Token PDAs and CLI scripts (#400) 2021-06-27 13:17:05 -07:00
aac e5b3f0aa06
ts: Fix uncaught base64 log error (#423) 2021-06-26 19:49:22 -07:00
Rad 619015d2ed
ts: Refactor workspace loading (#407) 2021-06-17 22:20:40 -07:00
dependabot[bot] f9c0822710
ts: Bump glob-parent from 5.1.1 to 5.1.2 (#394) 2021-06-15 22:06:53 -07:00
dependabot[bot] f7a79fc0d5
ts: Bump ws from 7.4.2 to 7.4.6 (#395) 2021-06-15 22:06:31 -07:00
dependabot[bot] 4b1c96e355
build(deps): Bump lodash from 4.17.20 to 4.17.21 in /ts (#393) 2021-06-15 22:06:01 -07:00
dependabot[bot] 66ac60b1a4
build(deps): Bump trim-newlines from 3.0.0 to 3.0.1 in /ts (#392) 2021-06-15 22:04:28 -07:00
Armani Ferrante 796d917f42
v0.9.0 (#388) 2021-06-15 18:43:21 -07:00
John Rees e11b4ae790
ts: Enable the use of workspaces in electron projects (#380) 2021-06-12 16:02:50 -07:00
Armani Ferrante 899e9e53d1
ts: Add ignore for nested account (#377) 2021-06-10 21:48:27 -07:00
Armani Ferrante 50b000542c
ts: Scope fields when formatting nested instruction accounts (#376) 2021-06-10 21:39:50 -07:00
Armani Ferrante 2bcd44ded3
v0.8.0 (#375) 2021-06-10 20:01:25 -07:00
Armani Ferrante 278d87e402
ts: Add instruction decode api (#372) 2021-06-10 19:25:02 -07:00
Armani Ferrante df51a27a48
lang, ts: Account close constraint (#371) 2021-06-09 15:40:43 -07:00
Armani Ferrante ba99c9c920
lang: Framework defined error codes (#354) 2021-06-09 13:02:50 -07:00
Jake Burden 39d0c62a2c
docs: Add minimum node version v11 (#370) 2021-06-09 08:34:45 -07:00
Jesse Y. Cho d16cbe3a71
ts: Fix a typo in docstring (#358) 2021-06-07 01:53:38 +08:00
Armani Ferrante a8fd1e0abb
v0.7.0 (#348) 2021-05-31 12:25:05 -07:00
John Rees d187dc5be9
docs: Fix a couple of typos in ts comments (#345) 2021-05-31 10:43:54 -07:00
Armani Ferrante 062b9257c3
ts: Remove deprecated Transaction.setSigners api (#332) 2021-05-27 13:03:08 -07:00
Armani Ferrante 631cb97b83
ts: Move default provider functions (#331) 2021-05-27 11:29:46 -07:00
Armani Ferrante 617d10aef2
ts: Add bytes to utils namespace (#330) 2021-05-26 23:55:21 -07:00
Armani Ferrante 2f780e0d27
ts: Reorganize program namespaces into well typed elements (#322) 2021-05-25 20:04:05 -07:00
Armani Ferrante e1229362bc
lang, ts: Namespace state discriminator (#320) 2021-05-25 14:50:12 -07:00
Armani Ferrante 21fc2d15f4
lang, ts: Consistent domain delimiters (#321) 2021-05-25 11:26:12 -07:00
Armani Ferrante 5b807d7804
ts: Make workspace metadata optional (#310) 2021-05-23 17:06:39 -07:00
Armani Ferrante 6da6ae22f8
v0.6.0 (#309) 2021-05-23 14:45:34 -07:00
Armani Ferrante 78d773a6de
ts, cli: Overrideable workspace program addresses (#308) 2021-05-23 13:57:55 -07:00
Armani Ferrante 8fa867fbd6
ts: Pubkeys as base58 strings (#304) 2021-05-23 09:58:15 -07:00
armaniferrante fb00331142
ts: v0.6.0-beta.3 2021-05-20 13:16:53 -07:00
Armani Ferrante 3a9d05991e
ts: Provide event names when decoding log strs (#297) 2021-05-20 13:14:46 -07:00
Armani Ferrante 24b723e1e1
ts: Event decode api updates (#292) 2021-05-20 02:28:27 -07:00
Armani Ferrante 364f957c9a
ts: Use Signer instead of Keypair (#296) 2021-05-20 02:26:32 -07:00
Armani Ferrante b652f5f940
ts: Fix local provider config (#286) 2021-05-19 13:26:09 -07:00
John Rees 95c248406b
ts: Move all @types to devDependencies (#284) 2021-05-16 11:20:44 -07:00
Armani Ferrante dfe41f8995
ts: v0.6.0-beta.1 (#285) 2021-05-16 11:16:24 -07:00
Armani Ferrante a73c39bbef
ts: i8, i16, and i32 coding (#282) 2021-05-15 15:21:16 -07:00
John Rees ead60e2fc4
ts: Replace deprecated web3.Account with web3.Keypair (#274) 2021-05-15 14:43:25 -07:00
Armani Ferrante e4a1b3cb52
ts: Assign namespaces correctly (#272) 2021-05-10 15:14:56 -07:00
Armani Ferrante 01cacfe0a2
ts: Setup typedoc (#271) 2021-05-10 13:12:20 -07:00