Commit Graph

239 Commits

Author SHA1 Message Date
Paul 40596824bf
error redesign (#1462) 2022-02-20 17:28:24 -05:00
Tom Linton 5ff9947ba2
lang: Error on undocumented unsafe account types (#1452) 2022-02-17 17:45:33 -05:00
Pavel Kuzovkin 90bcea1cbe
lang, ts: float types support (#1425) 2022-02-17 14:23:21 -05:00
Armani Ferrante f39ea73a65
lang: cargo fmt (#1459) 2022-02-16 22:07:56 -05:00
Paul 2d9209ba33
improve error code reference (#1454) 2022-02-16 16:11:12 +01:00
Paul 1f56a62bab
lang: add check that declared id == program id (#1451) 2022-02-15 18:16:06 -05:00
Paul 2390a4f167
lang: fix error mod exports (#1426) 2022-02-10 15:54:12 -05:00
Paul debd79d18d
docs: add 10 kibibyte limit to `init` and `zero` constraints reference (#1420) 2022-02-09 19:10:09 +01:00
man0s 83121c26eb
Add check for mutability of init payer (#1271) 2022-02-08 18:34:18 +01:00
Armani Ferrante ef1a58d665
v0.21.0 (#1403) 2022-02-07 20:10:49 -05:00
Armani Ferrante a14a829a89
lang: clarify owner check (#1404) 2022-02-07 14:52:29 -05:00
Armani Ferrante 598c7b0790
lang: error if bump target is given on init (#1380) 2022-02-07 13:26:05 -05:00
Blas Rodriguez Irizar 33c5dab909
lang: hide __private module from docs (#1386) 2022-02-03 13:09:54 -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
Armani Ferrante d8d720067d
lang, ts: automatic client side pda derivation (#1331) 2022-01-24 14:44:24 -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 0dfed11eaa
lang: rename loader_account.rs to account_loader.rs (#1279) 2022-01-10 14:39:24 -05:00
Blaž Hrastnik 787527fdff
lang: Allow zero_size accounts to be larger than account schema (#1158) 2022-01-10 12:30:34 -05:00
suscd 4c7cf72dd9
lang: make `entry` function public (#1276) 2022-01-09 23:49:21 -05:00
Paul 8739db4e58
lang: mut types using blanket implementations (#1127) 2022-01-09 22:48:21 -05:00
Armani Ferrante a81ff88d76
v0.20.1 (#1274) 2022-01-09 16:50:10 -05:00
Armani Ferrante d7e72b33d1
lang: repr override for zero copy (#1273) 2022-01-09 16:19:41 -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 4da6a49c73
docs: add missing programs to constraints reference (#1265) 2022-01-08 15:01:28 -05:00
Paul 01ff03b09b
lang: give better errors for init when programs are missing (#1257) 2022-01-07 11:09:10 -05:00
Armani Ferrante 9c47c0a6cd
v0.20.0 (#1251) 2022-01-06 18:09:43 -05:00
Paul 3ddad6cbb6
lang: rest of accounts docs reference (#1231) 2022-01-06 16:30:44 -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 bb20eee8f6
lang/docs: Context and CpiContext docs (#1247) 2022-01-06 10:05:11 -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 5edaf7af84
lang, docs: improved constraints reference (#1210) 2022-01-03 14:16:52 -05:00
Paul b3720a0b84
lang, ts: fix init_if_needed missing ATA address check (#1221) 2022-01-01 21:47:13 -05:00
Paul 4013ec9337
lang, docs: ErrorCode docs (#1204) 2021-12-30 20:46:49 -05:00
Paul a7eccb6e82
lang: improved Account reference (#1207) 2021-12-29 10:18:34 -05:00
Paul 22c2c30ef4
lang: use phantomdata in account type instead of '_account: T' (#1155) 2021-12-27 13:01:46 -05:00
Paul 3e475a26e2
lang: remove ProgramAccount and Loader from 'deriveAccounts' docs (#1167) 2021-12-27 10:38:20 -05:00
Paul 51366441d2
lang: implement AsRef<T> for Account<'a, T> (#1173) 2021-12-27 10:37:47 -05:00
Paul b5827c1b24
lang: add default impls for AccountSerialize and AccountDeserialize (#1156) 2021-12-27 10:36:29 -05:00
Tom Linton 51aeb08ae1
lang: Handle arrays with const as length (#968) 2021-12-22 23:13:46 -05:00
y2kappa fa3d190d42
lang: #[repr(C)] for zero_copy accounts (#1106) 2021-12-22 21:11:50 -05:00
Paul d43d965cfb
lang: fix constraint typo (#1166) 2021-12-21 22:13:51 +03:00
Paul 790fda9258
lang: add `set_inner` function to `Account<'a, T>` (#1177) 2021-12-20 15:16:26 -05:00
Paul 8aab5b4634
lang: fix clippy (#1164) 2021-12-18 18:25:04 -05:00
man0s 561f7cdaa8
Change AccoutNotProgramOwned error to AccountOwnedByWrongProgram (#1154) 2021-12-17 13:34:43 +01:00
Kirill Fomichev efd37219d2
ci: run clippy for nightly (#1150) 2021-12-15 18:03:44 -05:00