Commit Graph

45 Commits

Author SHA1 Message Date
Paul 3321a3f9c9
lang: Add ProgramData account (#1095) 2021-12-05 14:14:16 -05:00
Matthew Callens 20726d06bd
lang: Add `SystemAccount<'info>` Account Type (#954) 2021-10-30 11:45:06 -05:00
Kirill Fomichev 58c00770cb
lang: Add custom error for `signer`, `mut`, `has_one`, `owner` and `address` constraints (#913) 2021-10-23 16:40:51 -07:00
Armani Ferrante 95bb9b3183
lang: Add init_with_needed keyword (#906) 2021-10-21 16:05:16 -07:00
Kirill Fomichev d41fb4feb5
lang: Add custom error for raw constraint (#905) 2021-10-21 15:51:20 -07:00
NorbertBodziony 1c5c6a8aba
lang: Support for AccountLoader (#792) 2021-10-08 09:24:25 -07:00
Alan O'Donnell 9d33e13465
lang: Remove mandatory init when using associated_token constraints (#843) 2021-10-07 13:57:47 -07:00
Alan O'Donnell dbb5f48b24
lang: Add mint::freeze_authority attribute for init mint (#835) 2021-10-05 11:36:17 -07:00
Armani Ferrante 2c827bc839
lang, spl, cli: Add associated_token keyword (#790) 2021-09-23 17:06:38 -07:00
Alan O'Donnell 5bd0309f66
lang: Use Expr for init payer. (#772) 2021-09-21 12:14:15 -07: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 526de235d1
lang: `#[account(owner)]` uses pubkey instead of account target (#691) 2021-09-09 14:32:11 -07:00
Armani Ferrante 3958533750
Static owner and program ID checks (#686) 2021-09-07 13:06:15 -07:00
Armani Ferrante 6085eda9df
lang: Sends lamports to payer on init (#648) 2021-08-31 14:43:04 -07:00
Armani Ferrante 75c20856e4
lang: Consistent init constraints (#641) 2021-08-29 14:25:38 -07:00
Armani Ferrante 2604a442fd
lang: Add zero attribute (#513) 2021-08-25 10:27:27 -07:00
Armani Ferrante 6e55078ff3
lang, ts, examples: Remove associated keyword (#612) 2021-08-15 16:35:53 -07:00
Henry-E fef207dc83
lang, examples: Add mint initialization constraints (#562) 2021-08-14 18:18:28 -07:00
Armani Ferrante 5018e98a9c
examples: Permissioned markets (#483) 2021-07-09 18:42:05 -07:00
Brett Etter d612ffddc2
lang: Added generic support to Accounts (#496) 2021-07-08 13:14:39 -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
Kirill Fomichev 1aa019cb0f
Apply clippy rules (#431) 2021-06-27 17:09:46 -07:00
Armani Ferrante f067624add
Token PDAs and CLI scripts (#400) 2021-06-27 13:17:05 -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 6b5ed789fc
lang, spl, cli: Refactor to preserve span information (#341) 2021-05-30 12:59:33 -07:00
Armani Ferrante 68c601ab22
lang: Add associated init constraint (#318) 2021-05-24 22:31:48 -07:00
Han Yang 74424fed7b
lang: Fix Recentblockhashes spelling (#302) 2021-05-21 22:22:54 -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 512604b85e
lang: Allow multiple with targets for associated accounts (#197) 2021-04-14 17:29:52 -07:00
Armani Ferrante b498b99f96
lang: Associated program account attributes (#186) 2021-04-13 11:47:54 -07:00
Armani Ferrante a94e24aea4
lang: Add owner constraint (#178) 2021-04-12 12:54:35 +08:00
Armani Ferrante c7c322a306
State struct cpi code generation (#43) 2021-04-11 17:23:43 -07:00
Armani Ferrante d6d41eee59
lang: Add executable account constraint (#140) 2021-04-03 15:13:12 -07:00
Armani Ferrante 08f5a0e243
Clippy fixes 2021-02-16 13:57:09 +08:00
Armani Ferrante 4980d8ab3f
lang/syn: Rename rpc -> ix 2021-02-11 14:59:29 +08:00
Armani Ferrante a780002683
lang/syn: Allow state structs with no ctor or impl block 2021-02-10 21:28:59 +08:00
Armani Ferrante 1f31770c83
Program interfaces 2021-02-08 12:54:52 +08:00
Armani Ferrante 48b27e6943
Migrate to sighash based method dispatch (#64) 2021-02-06 16:28:33 +08:00
Armani Ferrante 170e6f18d4
lang: Hash at compile time (#63) 2021-02-05 19:17:40 +08:00
Armani Ferrante f0297012c6
Create lang dir 2021-01-30 05:23:23 -08:00