Commit Graph

911 Commits

Author SHA1 Message Date
Paul 470e902f48
lang: Add support for multiple test suites with separate local validators (#1681) 2022-03-30 17:17:54 -04:00
Paul 7803acb995
cli: update cli templates (#1698) 2022-03-28 16:59:53 -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
Paul a2e760c50c
cli-fix: anchor test with --skip-deploy should fail if validator exists already (#1675) 2022-03-24 19:16:25 -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
Matthew Callens 23efadf08f
tests: update assertions to use chai and more strict (#1672) 2022-03-24 11:44:33 -04:00
Tom Linton 7ea97cb298
ci: Remove nightly clippy (#1674) 2022-03-24 00:50:50 -04:00
Italo Casas e9995112f6
avm improvements (#1670) 2022-03-23 14:17:20 -04:00
Matthew Callens 4e4ca55c57
spl: re-export `spl-token` crate (#1665) 2022-03-22 23:33:34 -04:00
Krešimir Klas 946fa23538
ts: fix type for accounts field in Idl (#1542) 2022-03-22 21:43:51 -04:00
Italo Casas 811a4cb318
Remove serum-common dependency from cli (#1667) 2022-03-21 19:48:01 -04:00
anant asthana d2233d6163
Added better error messaging when workspace.member or workspace.exclude doesn't exist. (#1524) 2022-03-21 18:09:46 -04:00
Paul 78714eaf95
docs: move ts error changes into breaking section of the changelog (#1664) 2022-03-21 12:47:12 -04:00
Paul 4b4b8007fb
update lockfiles (#1662) 2022-03-21 00:47:56 -04:00
Armani Ferrante e66c0466b6
fix typedoc version (#1661) 2022-03-20 23:51:28 -04:00
Armani Ferrante 77b1afcf2f
v0.23.0 (#1660) 2022-03-20 23:30:55 -04:00
Paul 9afdb17ac2
ts: add error log parsing to ts client (#1640) 2022-03-20 20:29:12 -04:00
Kirill Fomichev 45a5d20a79
ci: add git diff for checking lock file changes (#1654) 2022-03-20 15:42:50 -04:00
skrrb 58af625736
Handle arrays with const as size in endpoint function args (#1631) 2022-03-20 15:15:04 -04:00
robert-balcerowicz 1c7139a9e3
ts: Use return value of `wallet.signTransaction` in `provider.ts` (#1527) 2022-03-20 14:11:41 -04:00
Paul f0b4c385f3
tests: fix seemingly ok but actually broken tests (#1656) 2022-03-20 11:38:55 -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
Tom Linton d42d147e6a
cli: Fix npm install command in fallback (#1643) 2022-03-18 13:19:01 -04:00
Sven Dowideit e567e14154
remove avm use prompt, and insist on user installing a version if it's not yet installed (#1565) 2022-03-17 13:28:03 -04:00
Paul 565e9567b5
tests: increase validator-clone startup time (#1635) 2022-03-16 20:14:25 -04:00
Paul 0cb2896627
tests: fix flaky validator-clone test by increasing startup_wait (#1634) 2022-03-16 19:34:33 -04:00
Paul 94b0fec714
fix anchor-lang import in safety-check, add custom-coder to ci, and fix spl-token coder (#1604) 2022-03-16 18:27:57 -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 3face237fb
cli: make ts idl equal json idl (#1609) 2022-03-16 14:38:07 -04:00
Paul acb4e7119b
cli: better errors for config.rs file in cli (#1603) 2022-03-16 14:28:58 -04:00
Paul 3b0006b3ce
use sol_log_data for logging events (#1608) 2022-03-16 14:28:19 -04:00
Paul b2b1a16b77
contributing: add reminder to sign commits (#1587) 2022-03-16 14:19:34 -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
Matthew Callens 2a039f2e45
cli: initialize a new git repository on `anchor init` (#1605) 2022-03-14 11:43:05 -04:00
SchwarzBier 97a8dfe71d
Bump up rust to 2021 edition (#1430) 2022-03-12 17:39:21 -05:00
skrrb 3c994fcdef
cli: also clone program data account (#1495) 2022-03-12 17:36:35 -05:00
NIKHIL B N 00488b512c
Add support for `anchor idl fetch` to work outside anchor workspace (#1509) 2022-03-12 17:25:27 -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