Commit Graph

58 Commits

Author SHA1 Message Date
Kirill Fomichev 40ea715beb
lang, cli, spl: Update solana toolchain to v1.9.13 (#1653)
Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com>
2022-03-26 20:28:55 -04:00
Paul d871f39793
lang: add system program cpi wrapper functions (#1629) 2022-03-16 16:09:58 -04:00
Paul 170a763625
lang: adjust error code so `#[error_code]` works with just importing `anchor_lang::error_code` (#1610) 2022-03-16 14:53:43 -04:00
Matthew Callens b376fd4615
lang: add additional `require_x` comparison macros (#1622) 2022-03-16 14:45:09 -04:00
Paul 721fe6693c
lang: add support for logging expected and actual values and pubkeys (#1572) 2022-03-15 11:42:17 -04:00
Paul 54c07be511
lang: impl Key for Pubkey (#1601) 2022-03-12 15:59:30 -05:00
Matthew Callens ad8aec247b
lang: new internal writer to use bpf mem syscalls (#1589) 2022-03-12 15:58:41 -05:00
Paul 40596824bf
error redesign (#1462) 2022-02-20 17:28:24 -05:00
Paul 2390a4f167
lang: fix error mod exports (#1426) 2022-02-10 15:54:12 -05:00
Blas Rodriguez Irizar 33c5dab909
lang: hide __private module from docs (#1386) 2022-02-03 13:09:54 -05:00
Armani Ferrante 16a7dc5dc1
lang: store calculated bump seeds in context (#1367) 2022-01-27 16:55:13 -05:00
Paul 0dfed11eaa
lang: rename loader_account.rs to account_loader.rs (#1279) 2022-01-10 14:39:24 -05:00
Paul 8739db4e58
lang: mut types using blanket implementations (#1127) 2022-01-09 22:48:21 -05:00
Paul e3d733c996
docs: fix require macro (#1269) 2022-01-08 16:29:00 -05:00
Paul 49ad086edc
docs: more require macro docs (#1268) 2022-01-08 15:24:58 -05:00
Paul a830644203
lang: export accounts module, re-export its types in the prelude (#1208) 2022-01-06 15:26:43 -05:00
Paul 4013ec9337
lang, docs: ErrorCode docs (#1204) 2021-12-30 20:46:49 -05:00
Paul b5827c1b24
lang: add default impls for AccountSerialize and AccountDeserialize (#1156) 2021-12-27 10:36:29 -05:00
Paul a8280b786c
lang: move accounts into their own module (#1139) 2021-12-15 14:02:27 -05:00
Paul 423ddde30a
lang: Always execute constraints for init_if_needed (#1096) 2021-12-08 16:50:08 -05:00
Paul 3321a3f9c9
lang: Add ProgramData account (#1095) 2021-12-05 14:14:16 -05:00
Tom Linton 6bc59350de
lang: Add constant attribute (#956) 2021-12-03 18:49:38 -05:00
Paul 926c0246e3
lang: Add deprecated attribute to Loader (#1078) 2021-11-29 22:40:20 +00:00
Kirill Fomichev 3688683931
lang: Add `deprecated` attribute to `ProgramAccount` (#1014) 2021-11-14 06:46:18 -08:00
Matthew Callens 20726d06bd
lang: Add `SystemAccount<'info>` Account Type (#954) 2021-10-30 11:45:06 -05:00
NorbertBodziony 1c5c6a8aba
lang: Support for AccountLoader (#792) 2021-10-08 09:24:25 -07:00
Kirill Fomichev b99f017334
lang: Add Id trait to prelude (#748) 2021-09-17 09:45:50 -05:00
Armani Ferrante c004b0f99c
lang, examples: UncheckedAccount and Cfo updates (#745) 2021-09-16 17:49:24 -05:00
Armani Ferrante b1ef7431ec
lang, spl: Program and Signer types (#705) 2021-09-11 14:43:12 -07:00
Armani Ferrante c76db691cd
lang: Deprecate account wrappers (#700) 2021-09-09 17:26:54 -07:00
Armani Ferrante 3958533750
Static owner and program ID checks (#686) 2021-09-07 13:06:15 -07:00
Michael Huang ea292e39b5
lang: Include declare_id proc_macro in anchor prelude (#672) 2021-09-03 11:18:26 -07:00
Kirill Fomichev c67dea4379
lang: Optimize `trait Key` implementation (#652) 2021-08-31 00:27:26 -07:00
Armani Ferrante 75c20856e4
lang: Consistent init constraints (#641) 2021-08-29 14:25:38 -07:00
Armani Ferrante 6e55078ff3
lang, ts, examples: Remove associated keyword (#612) 2021-08-15 16:35:53 -07:00
Armani Ferrante 615764b9c8
examples, spl: Permissioned markets via proxy middleware (#519) 2021-07-18 11:39:56 -07:00
Armani Ferrante 5018e98a9c
examples: Permissioned markets (#483) 2021-07-09 18:42:05 -07:00
Armani Ferrante f067624add
Token PDAs and CLI scripts (#400) 2021-06-27 13:17:05 -07:00
bonedaddy 3c295f958a
lang: Impl ToAccountMetas for AccountMeta and make state mod pub (#406) 2021-06-18 15:50:58 -07:00
Armani Ferrante a6ebaabac4
lang: Initialize program derived addresses with instruction data (#386) 2021-06-15 17:15:51 -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
Armani Ferrante d796cee091
client, lang: Add client support for state instructions (#248) 2021-05-06 14:48:22 -07:00
guanqun a108354536
lang, cli: Fix typos (#229) 2021-04-29 10:24:43 -07:00
Armani Ferrante a8aa84a3d1
lang: Zero copy state structs (#206) 2021-04-18 09:54:18 -07:00
Armani Ferrante b6afb30474
lang: Zero copy deserialization (#202) 2021-04-17 12:07:48 -07:00
Armani Ferrante b498b99f96
lang: Associated program account attributes (#186) 2021-04-13 11:47:54 -07:00
Armani Ferrante 3d661cdc66
lang: Rename StateCpiContext to CpiStateContext 2021-04-12 13:37:58 +08:00
Armani Ferrante c7c322a306
State struct cpi code generation (#43) 2021-04-11 17:23:43 -07:00
Armani Ferrante 81e03c5e37
lang: Cleanup private apis and documentation (#169) 2021-04-10 17:47:14 -07:00