Commit Graph

45 Commits

Author SHA1 Message Date
Armani Ferrante 3601add947
update 2022-01-26 14:21:08 -05:00
Armani Ferrante 4b9a65344a
update 2022-01-26 11:52:25 -05:00
Armani Ferrante f98b3a7138
update 2022-01-26 10:54:06 -05:00
udbhav1 77043131c2
lang: add owner and lamports methods to account types (#1267) 2022-01-11 11:32:49 -05:00
Alan O'Donnell e04f144e12
lang: add seeds::program constraint for PDAs (#1197) 2022-01-11 10:51:22 -05:00
Paul 4d4cba5add
lang: add rent exempt check for init_if_needed when init is not needed (#1250) 2022-01-06 15:31:36 -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 e026e9e874
lang: fix missing ATA owner check (#1240) 2022-01-05 11:09:57 -05:00
Pierre 35c8200010
lang: Cleanup constraints as commanded (#1239) 2022-01-05 10:08:49 -05:00
Paul b3720a0b84
lang, ts: fix init_if_needed missing ATA address check (#1221) 2022-01-01 21:47:13 -05:00
Kirill Fomichev efd37219d2
ci: run clippy for nightly (#1150) 2021-12-15 18:03:44 -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
Kirill Fomichev 6a19cc48ef
lang: Remove not required `to_account_info()` call (#914) 2021-10-23 09:16:40 -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
Alan O'Donnell d774b456bf
lang: Support empty seeds constraint token (#853) 2021-10-09 12:21:15 -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
Armani Ferrante e7d16d3ec8
lang: Remove cpi feature flag for account signer check (#849) 2021-10-07 12:21:55 -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 42ed126163
lang: Allow seeds to have a trailing comma (#777) 2021-09-22 07:42:39 -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 f4f60d7fab
lang: Move program check to try_from (#660) 2021-09-01 14:53:39 -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
Kirill Fomichev ceb80b0a04
lang: Dynamically fetch rent sysvar for when using `init` (#588) 2021-08-08 13:20:26 -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
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
Kirill Fomichev 609c836d63
lang: Optimize associated constraint check (#425) 2021-06-27 10:03:26 -07:00
Kirill Fomichev e14fec0c46
lang: Add deprecation warning for constraint (#429) 2021-06-27 09:50:54 -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