Christian Kamm
b52f236146
Implement Discriminator trait for generated instructions
...
Access to the discriminators is useful when doing instruction
introspection where you may want to determine the type of other
instructions for your program.
2022-08-05 20:24:53 +02:00
microwavedcola1
d102903441
close idl account
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-07-26 11:52:48 +02:00
Christian Kamm
1153380487
Support for AccountLoaderDynamic
2022-07-25 07:58:57 +02:00
Armani Ferrante
6baed77eb5
v0.25.0 ( #2031 )
2022-07-05 16:32:55 -04: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
9b61bbc626
bump solana-program version ( #2027 )
2022-07-04 23:58:31 -04:00
Matthew Callens
f76112a41a
add account name to discriminator mismatch errors ( #2020 )
2022-07-01 18:25:18 -04:00
Jesse Eisses
df9627e952
update docs on format of method dispatch identifier ( #2017 )
2022-06-30 09:36:38 -04:00
Sohrab
55e0c5d9dd
fix: align links to coral-xyz/anchor github repo ( #1988 )
2022-06-19 22:16:16 -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
Krešimir Klas
37c5ff4c6d
lang: strip Box when parsing idl types ( #1947 )
2022-06-04 20:34:47 -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
guibescos
0916361f5e
Feature/error equality ( #1544 )
2022-04-20 19:12:50 -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
765fee0c6e
lang: Make parser fail if 'seeds' constraint is used with 'associated token' constraints ( #1803 )
2022-04-20 16:51:41 -04:00
Paul
b769e6038c
lang: forbid pubkey mint on token init ( #1804 )
2022-04-20 16:51:10 -04:00
Sohrab
55e55a2e2f
fix(lang): align to new book url convention ( #1813 )
2022-04-20 09:09:57 -04:00
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