Commit Graph

186 Commits

Author SHA1 Message Date
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
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
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
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
SolanaMonkeyBusiness c188846a4b
ts: Add postInstructions (#1007) 2021-11-14 06:45:03 -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
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 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
Daniel Marin 73f046e0a5
ts: Extend filters for `all` method (#788) 2021-09-25 07:22:12 -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
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
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
Armani Ferrante 6e55078ff3
lang, ts, examples: Remove associated keyword (#612) 2021-08-15 16:35:53 -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 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
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
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 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
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 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
Jesse Y. Cho d16cbe3a71
ts: Fix a typo in docstring (#358) 2021-06-07 01:53:38 +08: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 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
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
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