Commit Graph

63 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
ebrightfield ed15922f1a
Add docs field to idl (#1561) 2022-04-21 16:37:41 -04:00
Paul d0a13e6535
lang: fix missing account name info when deser fails when using 'init' or 'zero' (#1800) 2022-04-20 16:59:00 -04:00
Paul 6bd9879dd6
lang: codegen improvements (#1766) 2022-04-11 21:28:21 -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
Tom Linton 1cb7429fe2
lang: Allow CPI return values (#1598) 2022-03-24 14:40:38 -04:00
Paul c8d8cacd22
lang: remove default space calc (#1519) 2022-03-07 11:23:47 -05:00
Ian Macalinao de08fec0b9
lang: add more docs to macros to allow missing_doc (#1498) 2022-02-21 17:29:03 -05:00
Armani Ferrante d8d720067d
lang, ts: automatic client side pda derivation (#1331) 2022-01-24 14:44:24 -05:00
Alan O'Donnell e04f144e12
lang: add seeds::program constraint for PDAs (#1197) 2022-01-11 10:51:22 -05:00
Paul 0dfed11eaa
lang: rename loader_account.rs to account_loader.rs (#1279) 2022-01-10 14:39:24 -05:00
Paul 01ff03b09b
lang: give better errors for init when programs are missing (#1257) 2022-01-07 11:09:10 -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 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