Commit Graph

348 Commits

Author SHA1 Message Date
Henry-E 862575a649
new clippy lints for rust 1.63 (#2207) 2022-10-06 14:26:22 -04:00
Pierre bd54c2b128
fix: return err on test result err (#2068) 2022-07-19 12:08:21 -04:00
Matthew Callens fc3789520e
fix new clippy warnings for cicd (#2075) 2022-07-19 12:07:20 -04:00
Tom Linton c6b99ff34f
cli: Strip workspace dir prefix from solana args (#2046) 2022-07-08 09:21:56 -04:00
Armani Ferrante 6baed77eb5
v0.25.0 (#2031) 2022-07-05 16:32:55 -04:00
Armani Ferrante 9b61bbc626
bump solana-program version (#2027) 2022-07-04 23:58:31 -04:00
Drew Nutter 24ab7d3e84
add skip-lint to Anchor.toml (#2026) 2022-07-04 12:12:50 -04:00
Kevin Rodríguez 8a6a9e1c75
ts: fix Module needs an import assertion of type json (#2023) 2022-07-03 10:43:32 -04:00
Italo Casas a1bb494631
docs meta tags and registry url (#2010) 2022-06-28 18:01:14 -04:00
Sohrab 55e0c5d9dd
fix: align links to coral-xyz/anchor github repo (#1988) 2022-06-19 22:16:16 -04:00
Tom Linton c14668d6ef
cli: Improve Anchor workspace name validation (#1949) 2022-06-06 20:21:10 -04:00
sushi-shi 58db41bb35
cli: Allow passing arguments to a script (#1914) 2022-05-29 23:24:45 +02:00
Italo Casas a298bcd650
cli: add --skip-build flag to publish command (#1841) 2022-05-03 09:48:51 -04:00
Blas Rodriguez Irizar cb4549fdf3
cli: add short alias for build and test commands (#1823) 2022-04-22 17:04:05 -04:00
ebrightfield ed15922f1a
Add docs field to idl (#1561) 2022-04-21 16:37:41 -04:00
Paul 269200b3b8
cli: improve cli metadata missing error (#1819) 2022-04-20 19:07:14 -04:00
Paul fe255bba2b
cli: add custom release profile to improve CU efficiency (#1807) 2022-04-20 17:49:12 -04:00
Tom Linton b885c7b68c
tests: Add CLI IDL command tests (#1808) 2022-04-20 17:38:45 -04:00
Paul 700ed262c9
cli: add option to specify program keypair when using 'anchor deploy' (#1786) 2022-04-20 16:37:14 -04:00
Paul 509ef94f79
cli: move overflow-checks into workspace Cargo.toml so that it will not be ignored by compiler (#1806) 2022-04-20 16:36:10 -04:00
Armani Ferrante aa2b766434
cli: publish metadata (#1817) 2022-04-20 11:56:34 -04:00
Armani Ferrante 45d3d3fe31
cli: add to publish script (#1815) 2022-04-20 11:38:57 -04:00
Armani Ferrante 0b4c7b0c73
v0.24.2 (#1788) 2022-04-13 19:44:18 -04:00
Armani Ferrante d491f0ba1d
v0.24.1 (#1779) 2022-04-12 18:50:33 -04:00
Paul 53ead6077c
cli: fix failing 'anchor build' if 'Test.toml' included a relative pa… (#1772) 2022-04-12 15:27:03 -04:00
Paul fb149f96a1
update yarn lockfile, fix cli template, and fix ci (#1770) 2022-04-12 15:02:06 -04:00
Armani Ferrante b0f263214d
v0.24.0 (#1769) 2022-04-12 10:52:06 -04:00
cavemanloverboy f0c09f2f3e
cli: integer arithmetic safe by default w/o checked (#1758) 2022-04-10 22:45:47 -04:00
Paul 248ef79006
cli: improve filepath canonicalization error (#1745) 2022-04-07 11:57:29 -04:00
Paul ce884066e0
cli: add prettier to new project js/ts template (#1741) 2022-04-07 09:14:38 -04:00
Kevin Aud e056cca519
Minor clean up in IDL accounts (#1144) 2022-04-04 18:37:24 -04:00
Paul 9e070870f4
cli: update js/ts templates to use new `.methods` syntax (#1732)
Co-authored-by: Nikhil B N <nikhilbn365@gmail.com>
2022-04-04 14:50:45 -04:00
sweetim 938f89d81b
added bn.js types fixed #1711 (#1712) 2022-04-04 13:24:10 -04:00
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
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
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
Armani Ferrante 77b1afcf2f
v0.23.0 (#1660) 2022-03-20 23:30:55 -04:00
Tom Linton d42d147e6a
cli: Fix npm install command in fallback (#1643) 2022-03-18 13:19:01 -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 f0a664c837
update versions (#1607) 2022-03-16 15:55:15 -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
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
skrrb 07c7cc1ce5
cli: add anchor clean (#1479) 2022-03-11 10:46:52 -05:00
Armani Ferrante b733610d87
v0.22.1 (#1528) 2022-02-28 11:35:59 -05:00
Shridhar Sukhani 55ebb7c80e
Add "@types/chai" devDependency to package.json in ts template (#1512) 2022-02-23 11:05:41 +01:00
Armani Ferrante 99403bff7e
cli: fix template (#1486) 2022-02-21 10:09:12 -05:00
Armani Ferrante 24ccaea903
v0.22.0 (#1484) 2022-02-20 20:32:38 -05:00
Paul c0b2fd7555
cli: add --skip-lint option (#1482) 2022-02-20 19:43:19 -05:00
Tom Linton 8aa7b2289e
cli: Make templates conform to default prettier rules (#1466) 2022-02-17 19:25:16 -05:00
Tom Linton 5ff9947ba2
lang: Error on undocumented unsafe account types (#1452) 2022-02-17 17:45:33 -05:00
Armani Ferrante ef1a58d665
v0.21.0 (#1403) 2022-02-07 20:10:49 -05:00
Blas Rodriguez Irizar ba131265f8
cli, spl: fix compilation for tests with --all-features (#1389) 2022-02-03 19:15:23 -05:00
Tom Linton 5e2821fd85
cli: Expose --account flag for solana-test-validator in Anchor.toml (#1366) 2022-01-31 19:52:08 -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 e6333e3554
cli: clap 3.0.x (#1370) 2022-01-27 19:32:58 -05:00
Armani Ferrante d8d720067d
lang, ts: automatic client side pda derivation (#1331) 2022-01-24 14:44:24 -05:00
Kirill Fomichev c21921af1b
cli: change error message on startup_wait (#1327) 2022-01-16 11:01:47 -05:00
Armani Ferrante e121e4e09d
ts: builder api (#1324) 2022-01-15 17:09:53 -05:00
Kirill Fomichev bb08a79dd4
cli: unblock os/cpu for npm-package (#1282) 2022-01-10 09:17:01 -05:00
Armani Ferrante a81ff88d76
v0.20.1 (#1274) 2022-01-09 16:50:10 -05:00
Leofis G e2b928161e
cli: correct docker message (#1243) 2022-01-07 11:00:57 -05:00
Armani Ferrante 9c47c0a6cd
v0.20.0 (#1251) 2022-01-06 18:09:43 -05:00
Paul b3720a0b84
lang, ts: fix init_if_needed missing ATA address check (#1221) 2022-01-01 21:47:13 -05:00
Paul 1749a7bd53
cli: Add `anchor expand` command (#1160) 2021-12-27 13:34:45 -05:00
Paul 8aab5b4634
lang: fix clippy (#1164) 2021-12-18 18:25:04 -05:00
Kirill Fomichev efd37219d2
ci: run clippy for nightly (#1150) 2021-12-15 18:03:44 -05:00
Paul 96f79993dd
ci: update solana cli (#1133) 2021-12-13 11:23:36 -05:00
Armani Ferrante 3afd1a22e4
v0.19.0 (#1116) 2021-12-08 17:33:36 -05:00
Tom Linton 8467491a56
cli: Fix program deploy path for camelcased directory names (#939) 2021-12-03 19:17:56 -05:00
Jon Cinque d0eb4fc8fb
cli: Add ability to verify non-upgradeable programs (#1079) 2021-11-29 18:04:09 -08:00
Tom Linton 1c5f503a75
cli: Add version name from programs Cargo.toml to IDL (#1061) 2021-11-27 09:06:01 -08:00
Jon Cinque 384f143f77
cli: Do verifiable builds from any image (#1054) 2021-11-24 20:09:48 +00:00
Paul 8a30d87064
lang: Log instruction names (#1057) 2021-11-24 10:46:17 -08:00
Tom Linton af9d9d2aa7
Revert "cli: Add quotes to Command args (#1046)" (#1056) 2021-11-23 18:12:28 -08:00
Kirill Fomichev 92c6d4c3f7
cli: Add quotes to Command args (#1046) 2021-11-21 07:22:26 -08:00
Paul 11764a1fa5
cli: Add cargo args handling to verifiable builds (#1035) 2021-11-17 18:38:26 -08:00
FlorianMilcendeau 7a7db5bc0a
cli: Add `types` setting to Anchor.toml workspace (#1032) 2021-11-17 15:04:14 -08:00
Aadhi ab3e1294d9
fix: Check if name in keyword (#1020) 2021-11-15 16:54:51 -08:00
Kirill Fomichev 3688683931
lang: Add `deprecated` attribute to `ProgramAccount` (#1014) 2021-11-14 06:46:18 -08:00
Tom Linton 1319dc65d6
v0.18.2 (#1011) 2021-11-13 18:58:10 -08:00
Tom Linton 468fe79473
cli, examples, tests: Remove global JavaScript dependencies in favour of local (#990) 2021-11-11 22:38:35 +00:00
Kirill Fomichev ac3fbe8d38
cli: Add `idl-ts` option to build command (#940) 2021-11-10 06:40:28 +00:00
Tom Linton e22eb4c3d7
cli: Improve error if global anchor not found (#996) 2021-11-10 05:40:37 +00:00
Kirill Fomichev a22b94921e
cli: Add fields os/cpu to npm cli package (#976) 2021-11-04 16:38:04 +00:00
Kirill Fomichev 13eadea2d5
cli: Output ts in idl parse (#941) 2021-11-02 17:00:13 -07:00
Luke Mahan 2f05903c75
cli: Typo fix (#932) 2021-10-25 16:28:04 -07:00
Kirill Fomichev d10413fc70
cli: Fix dns in NODE_OPTIONS (#928) 2021-10-25 09:47:59 -07:00
Armani Ferrante 229e335da8
v0.18.0 (#921) 2021-10-24 19:18:32 -07:00
Armani Ferrante 6ab714a5a5
Bump solana-program v1.8.0 (#886) 2021-10-24 17:42:52 -07:00
Kirill Fomichev 95d46976d4
cli: Add NODE_OPTIONS env variable with DNS fix (#915) 2021-10-23 13:50:47 -07:00
Armani Ferrante c7d165fc12
client: Fix clap dep (#893) 2021-10-17 20:06:48 -07:00
Haroon Isse d99eca60ec
cli: Make typescript the default for anchor init (#889) 2021-10-17 17:53:32 -07:00
Tom Linton 1d148785ed
cli: Fix for npm globals unknown command (#892) 2021-10-17 17:52:32 -07:00
Alan O'Donnell d3f78bb735
cli: Make sure program_paths only includes directories. (#887) 2021-10-15 13:01:05 -07:00
Armani Ferrante 635a18c7ff
cli: Generate ts idl in addition to type (#860) 2021-10-09 18:19:33 -07:00
Tom Linton de8cb49dd1
cli: Error if program in genesis configuration doesn't exist (#841) 2021-10-07 13:11:26 -07:00
bonedaddy 6a9e6a2b20
cli: Enable configurable startup wait (#842) 2021-10-06 09:14:19 -07:00
Tom Linton 54a6e9cf37
cli: Add solana-test-validator control to Anchor.toml (#834) 2021-10-05 13:12:55 -07:00
Armani Ferrante 8566b909cf
cli: Fix ts filepath for verifiable build (#836) 2021-10-05 10:30:38 -07:00
ChewingGlass 0a660d26c4
ts, cli: Program clients generic over IDL types (#795) 2021-10-04 23:16:13 -07:00
Armani Ferrante 6eead5669e
v0.17.0 (#828) 2021-10-03 16:54:00 -07:00
Chris Heaney 15eca29ca8
cli: Add localnet command (#820) 2021-10-02 14:46:57 -07:00
Maximilian Schneider 11064f9048
cli: Add more descriptive error message (#821) 2021-10-02 13:27:08 -07:00
Armani Ferrante 8b7b5aaddd
cli: Fix clippy (#816) 2021-10-01 08:47:57 -07:00
Alan O'Donnell 5ba8252ccc
cli: Kill test validator if it starts too slowly. (#809) 2021-09-28 10:30:19 -07:00
Armani Ferrante 3d21d33cd5
v0.16.2 (#807) 2021-09-27 16:40:44 -07:00
Vladimir Guguiev 48385b4a4f
cli: Support `cargo_args` on `test`, `verify` and `publish` commands (#804) 2021-09-27 08:45:28 -07:00
Armani Ferrante 0de09e71a2
cli: Fix clippy (#803) 2021-09-26 18:37:40 -07:00
Pierre df97fd8d56
cli: Add "slop" when anchor build (#719) 2021-09-26 17:15:31 -07:00
Marcin Żółkiewski 63eabc5b61
cli: Set ANCHOR_WALLET for migrate ts (#802) 2021-09-26 11:26:56 -07:00
Armani Ferrante f4fee46ea5
cli: Build publish tarball for more reliable error checks (#794) 2021-09-25 09:51:56 -07:00
Armani Ferrante 2c827bc839
lang, spl, cli: Add associated_token keyword (#790) 2021-09-23 17:06:38 -07:00
David 2a5e16357b
cli: Properly build anchor.Wallet for shell template script (#778) 2021-09-22 13:28:45 -07:00
Aadhi Nana Murali b0b9efc30d
clI: Added 'detach' flag to anchor test (#770) 2021-09-22 12:24:27 -07:00
Siong bde45c2985
cli : Use ANCHOR_WALLET for migrate command (#779) 2021-09-22 11:52:53 -07:00
Vecheslav Druzhbin beace2c000
cli: Run command considers config (#755) 2021-09-18 10:27:01 -05:00
Armani Ferrante d8f947fc9c
v0.16.1 (#751) 2021-09-17 12:33:32 -05:00
Armani Ferrante 780094a648
v0.16.0 (#746) 2021-09-16 19:19:15 -05:00
Pierre bf5cf80c11
ts: Use env variable for local wallet (#718) 2021-09-12 10:07:42 -07:00
Armani Ferrante 374009bd9f
cli: Fix clippy (#713) 2021-09-11 15:42:50 -07:00
Siong adb0c56770
cli: Snake case program names when initializing workspace (#711) 2021-09-11 12:59:53 -07:00
Armani Ferrante 23656de877
v0.15.0 (#688) 2021-09-07 18:30:04 -07:00
Armani Ferrante 3ee33132f5
cli: Add default program id to init template (#689) 2021-09-07 17:57:01 -07:00
Armani Ferrante 3958533750
Static owner and program ID checks (#686) 2021-09-07 13:06:15 -07:00
Armani Ferrante 5017a1afee
v0.14.0 (#655) 2021-09-02 11:31:50 -07:00
Kirill Fomichev 697f585b5b
Update solana to 1.7.11 (#653) 2021-08-31 14:52:41 -07:00
Tom Linton b01e1e5d4b
cli: Remove anchor launch (#634) 2021-08-23 14:38:21 -07:00
Julian McCarthy 5532aca6ec
cli: Add package.json in anchor init (#623) 2021-08-18 23:50:00 -07:00
Armani Ferrante 8e4870d370
v0.13.2 (#599) 2021-08-11 01:13:38 -07:00
Armani Ferrante 5312ca314f
cli: Fix init command (#598) 2021-08-11 00:40:51 -07:00
Armani Ferrante 496f2b258c
v0.13.1 (#597) 2021-08-10 22:33:28 -07:00
Armani Ferrante bd68e28f15
cli: Fix Cargo.lock in workspace subdirectories when publishing (#593) 2021-08-10 21:36:56 -07:00
aac 544d66ee9b
cli: Add program logs for genesis programs in tests (#594) 2021-08-10 02:39:02 -07:00
Armani Ferrante af7d246c0c
v0.13.0 (#587) 2021-08-08 19:38:50 -07:00
Armani Ferrante 4bf710c771
cli: Remove solana installer file after build (#590) 2021-08-08 18:47:11 -07:00
Armani Ferrante 3248481288
cli: Anchor registry publishing (#570) 2021-08-08 02:11:48 -07:00
Armani Ferrante ec6888a3b9
v0.12.0 (#572) 2021-08-04 12:29:38 -07:00
Armani Ferrante 1bea1bcbfc
Prune ix and solana version pinning (#569) 2021-08-03 12:50:43 -07:00
Kirill Fomichev 690c41315d
cli: Allow custom test commands (#550) 2021-07-29 14:38:24 -07:00
Kirill Fomichev ba6e15d557
cli: Do not serialize empty workspace (#559) 2021-07-28 14:04:36 -07:00
Kirill Fomichev 03042590a9
cli: Allow custom program addresses for test (#554) 2021-07-28 14:04:14 -07:00
Kirill Fomichev b8dae74836
cli: Add keys include/exclude in programs section (#546) 2021-07-25 17:25:40 -07:00
Armani Ferrante c5b61848c0
v0.11.1 (#507) 2021-07-09 19:05:57 -07:00