Commit Graph

36 Commits

Author SHA1 Message Date
Christian Kamm b3707b1faa Revert "Support for AccountLoaderDynamic"
This reverts commit 1153380487.
2022-12-29 11:46:20 +01:00
Christian Kamm 1153380487 Support for AccountLoaderDynamic 2022-07-25 07:58:57 +02:00
Matthew Callens c47fb2877e
lang: adjust `realloc` implementation to safeguard max increase and idempotency (#1986) 2022-07-05 15:54:40 -04:00
Armani Ferrante 1ec9af7e21
Revert "lang: add `realloc` constraint group (#1943)" (#1984)
This reverts commit 7fe39c61ad.
2022-06-17 17:16:10 -04:00
Matthew Callens 7fe39c61ad
lang: add `realloc` constraint group (#1943) 2022-06-04 20:25:28 -04:00
Krešimir Klas 3b0d73ed7a
syn: remove unused instruction_constraints field from Field (#1946) 2022-06-04 09:42:52 -04:00
Paul 765fee0c6e
lang: Make parser fail if 'seeds' constraint is used with 'associated token' constraints (#1803) 2022-04-20 16:51:41 -04:00
Anan f5dffe6490
lang: allow `token::...` and `mint::...` to be used as checks without init (#1505)
Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com>
2022-04-11 17:25:07 -04:00
Paul c8d8cacd22
lang: remove default space calc (#1519) 2022-03-07 11:23:47 -05:00
Armani Ferrante 598c7b0790
lang: error if bump target is given on init (#1380) 2022-02-07 13:26:05 -05:00
Paul 17c9463592
Lang: feature flag for init_if_needed (#1258)
Co-authored-by: Armani Ferrante <armaniferrante@gmail.com>
2022-01-30 21:59:25 +01:00
Armani Ferrante 16a7dc5dc1
lang: store calculated bump seeds in context (#1367) 2022-01-27 16:55:13 -05:00
Alan O'Donnell e04f144e12
lang: add seeds::program constraint for PDAs (#1197) 2022-01-11 10:51:22 -05:00
Paul 423ddde30a
lang: Always execute constraints for init_if_needed (#1096) 2021-12-08 16:50:08 -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
Sandra 2a4fa8c94b
lang: Remove deprecated account (#907) 2021-10-20 19:28:36 -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
Armani Ferrante c004b0f99c
lang, examples: UncheckedAccount and Cfo updates (#745) 2021-09-16 17:49:24 -05: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 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
Kirill Fomichev 2d974604ae
lang: Remove belongs_to in favor of has_one (#459) 2021-07-03 11:58:23 -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 6b5ed789fc
lang, spl, cli: Refactor to preserve span information (#341) 2021-05-30 12:59:33 -07:00