Commit Graph

987 Commits

Author SHA1 Message Date
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
CherryMan b5ea2a4201
client: derive cluster ws url like web3.js (#1362) 2022-03-11 12:59:10 -05:00
skrrb 07c7cc1ce5
cli: add anchor clean (#1479) 2022-03-11 10:46:52 -05:00
Jean Marchand c02eed6599
lang: fix seed examples in Accounts proc macro docs (#1596) 2022-03-11 10:39:28 -05:00
Armani Ferrante b149fc522a
ts: add provider parameter to spl token client (#1597) 2022-03-10 22:43:33 -05:00
mgild 552789a072
Update governance.rs: Fixup anchor return types (#1582) 2022-03-10 15:30:49 -05:00
Tom Linton 5c5fa7927f
Check error in safety checks test failure (#1571) 2022-03-08 16:00:25 -05:00
Paul 6dd0574cca
fix changelog (#1568) 2022-03-07 14:23:13 -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
Matthew Callens eee75ab07a
ts: fix methods builder `.accounts` requiring global programs (#1548) 2022-03-03 22:42:45 -05:00
Rohan Kapur 4e8bb08cc4
spl: Add support for the spl_token revoke (#1493) 2022-03-03 15:46:17 -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 80be42803d
ts: fix methods namespace typing loss and deprecate non-methods namespaces (#1539) 2022-03-01 19:26:32 -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
Totoro 9c49e7642d
ts: fix formatIdlData for option defined type (#1439) 2022-02-28 12:15:54 -05:00
Armani Ferrante b733610d87
v0.22.1 (#1528) 2022-02-28 11:35:59 -05:00
Paul 9010921a45
ci: add anchor init template test (#1525) 2022-02-26 18:42:57 -05:00
tanliwei 2fc0319f3c
Update link to Account type in docs (#1514) 2022-02-23 11:07:53 +01:00
Shridhar Sukhani 55ebb7c80e
Add "@types/chai" devDependency to package.json in ts template (#1512) 2022-02-23 11:05:41 +01:00
Paul 04b8247736
docs: update readme and changelog (#1510) 2022-02-22 20:33:46 -05:00
Paul 4afdf56cfa
docs: fix changelog error migration guide (#1508) 2022-02-22 17:38:53 -05:00
Paul febb0d07ba
spl: atoken error redesign (#1507) 2022-02-22 17:38:16 -05:00
Ian Macalinao de08fec0b9
lang: add more docs to macros to allow missing_doc (#1498) 2022-02-21 17:29:03 -05:00