Commit Graph

284 Commits

Author SHA1 Message Date
Armani Ferrante 0b4c7b0c73
v0.24.2 (#1788) 2022-04-13 19:44:18 -04:00
Paul 1adb6a2c47
lang: fix missing skip serialize for idl instruction (#1782) 2022-04-12 19:35:57 -04:00
Armani Ferrante d491f0ba1d
v0.24.1 (#1779) 2022-04-12 18:50:33 -04:00
Armani Ferrante b0f263214d
v0.24.0 (#1769) 2022-04-12 10:52:06 -04:00
Paul 6bd9879dd6
lang: codegen improvements (#1766) 2022-04-11 21:28:21 -04:00
Paul b28deb30c0
docs: link to space reference (#1764) 2022-04-11 17:34:13 -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 3d0560db2c
Revert "lang: Make Anchor use fallback function instead of panicking if ix data.len() is < `8` (#1721)" (#1748) 2022-04-08 15:31:07 -04:00
Paul 778e328753
lang: deserialize programdata address on demand/lazily (#1723) 2022-04-08 13:48:40 -04:00
Kevin Aud e056cca519
Minor clean up in IDL accounts (#1144) 2022-04-04 18:37:24 -04:00
Samuel Moelius 27c3513dfc
Add `accounts.is_empty()` check (#1697) 2022-04-04 13:37:02 -04:00
Paul adb90c33d7
lang: Make Anchor use fallback function instead of panicking if ix data.len() is < `8` (#1721) 2022-04-02 22:27:39 -04:00
Paul 5194de04b1
add docs for emit! macro (#1692) 2022-03-27 13:22:17 -04:00
Kirill Fomichev 40ea715beb
lang, cli, spl: Update solana toolchain to v1.9.13 (#1653)
Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com>
2022-03-26 20:28:55 -04:00
Tom Linton 1cb7429fe2
lang: Allow CPI return values (#1598) 2022-03-24 14:40:38 -04:00
Samuel Moelius 0f7675c31c
Add discriminator length checks instead of panicking in `(Account)Loader` (#1678) 2022-03-24 12:05:39 -04:00
Armani Ferrante 77b1afcf2f
v0.23.0 (#1660) 2022-03-20 23:30:55 -04:00
skrrb 58af625736
Handle arrays with const as size in endpoint function args (#1631) 2022-03-20 15:15:04 -04:00
Paul deaa334a54
lang: update `emit!` docs (#1655) 2022-03-20 10:42:02 -04:00
Paul bb25cd6a6f
lang: fix owner compile error caused by missing type annotation (#1648) 2022-03-19 11:50:23 -04:00
Paul 7f8ca97aa8
add `.with_pubkeys` and `.with_values` to `syn/../constraints.rs` for better logging (#1627) 2022-03-16 18:23:28 -04:00
Paul d871f39793
lang: add system program cpi wrapper functions (#1629) 2022-03-16 16:09:58 -04:00
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