Commit Graph

262 Commits

Author SHA1 Message Date
Paul f0a664c837
update versions (#1607) 2022-03-16 15:55:15 -04:00
Paul 170a763625
lang: adjust error code so `#[error_code]` works with just importing `anchor_lang::error_code` (#1610) 2022-03-16 14:53:43 -04:00
Matthew Callens b376fd4615
lang: add additional `require_x` comparison macros (#1622) 2022-03-16 14:45:09 -04:00
Paul 3b0006b3ce
use sol_log_data for logging events (#1608) 2022-03-16 14:28:19 -04:00
Paul 721fe6693c
lang: add support for logging expected and actual values and pubkeys (#1572) 2022-03-15 11:42:17 -04:00
Matthew Callens 905968d5ab
docs: fix bytemuck links in `#[account]` page (#1616) 2022-03-14 23:04:48 -04:00
Matthew Callens 041414f52a
docs: update doc comments for `Program` and `#[account]` (#1606) 2022-03-14 12:01:04 -04:00
SchwarzBier 97a8dfe71d
Bump up rust to 2021 edition (#1430) 2022-03-12 17:39:21 -05:00
Paul 54c07be511
lang: impl Key for Pubkey (#1601) 2022-03-12 15:59:30 -05:00
Matthew Callens ad8aec247b
lang: new internal writer to use bpf mem syscalls (#1589) 2022-03-12 15:58:41 -05:00
Tom Linton 2529b06c02
lang: Handle const array size casting and add const array size support for events (#1485) 2022-03-11 18:05:19 -05:00
migui3230 69a2d44513
print composite field type if the parser cannot resolve it (#1506) 2022-03-11 17:56:35 -05:00
Jean Marchand c02eed6599
lang: fix seed examples in Accounts proc macro docs (#1596) 2022-03-11 10:39:28 -05:00
Paul c8d8cacd22
lang: remove default space calc (#1519) 2022-03-07 11:23:47 -05:00
sanny 68c5faed2b
lang: update to AccountLoader in doc comments (#1554) 2022-03-05 22:17:10 -05:00
Ian Macalinao 8ffb22d936
lang: Fix doc strings not working with double quotes (#1537) 2022-03-01 23:03:30 -05:00
Matthew Callens a78c9c0341
lang: add sysvar custom error and failing test case (#1535) 2022-03-01 11:33:18 -05:00
Tom Linton 61de9f21e7
lang: Fix detection of Accounts derive (#1530) 2022-02-28 20:01:05 -05:00
Armani Ferrante b733610d87
v0.22.1 (#1528) 2022-02-28 11:35:59 -05:00
Ian Macalinao de08fec0b9
lang: add more docs to macros to allow missing_doc (#1498) 2022-02-21 17:29:03 -05:00
geoff golder 905d26bb09
lang: fix clobbered module names on IDL parsing (#1343) 2022-02-21 17:23:01 -05:00
Paul 48138894b1
docs: add warning about manually closing accounts (#1490) 2022-02-21 10:47:19 -05:00
Armani Ferrante 24ccaea903
v0.22.0 (#1484) 2022-02-20 20:32:38 -05:00
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