Commit Graph

363 Commits

Author SHA1 Message Date
Drew Nutter 34c4e50917
client: use any Signer instead of only Keypair (#975) 2021-12-20 14:41:21 -05:00
Neco 483999e870
ts: remove deprecated commitment settings (#1128) 2021-12-20 10:51:02 +01:00
Paul af926876c5
ts: add optional commitment arg (#1171) 2021-12-19 11:28:39 -05:00
man0s 561f7cdaa8
Change AccoutNotProgramOwned error to AccountOwnedByWrongProgram (#1154) 2021-12-17 13:34:43 +01:00
0xCryptoSheik a7e80079da
fix: translateAddress should not rely on PublicKey constructor nam (#1138) 2021-12-15 02:20:26 +01:00
Paul 911620ee27
lang: programdata_address field for Program account (#1125) 2021-12-13 16:43:13 -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
Paul 423ddde30a
lang: Always execute constraints for init_if_needed (#1096) 2021-12-08 16:50:08 -05:00
Dominic Lee bef1bd8b80
ts: add getAccountInfo helper method to account namespace/client (#1084) 2021-12-08 15:05:52 +01:00
Paul 3321a3f9c9
lang: Add ProgramData account (#1095) 2021-12-05 14:14:16 -05:00
Paul 517838e494
ts: Better public key error msgs (#1098) 2021-12-04 15:01:50 -05:00
Armani Ferrante be4e946040
spl: Move permissioned market proxy (#962) 2021-11-30 12:44:15 -08:00
Paul 926c0246e3
lang: Add deprecated attribute to Loader (#1078) 2021-11-29 22:40:20 +00:00
Tom Linton 1c5f503a75
cli: Add version name from programs Cargo.toml to IDL (#1061) 2021-11-27 09:06:01 -08:00
Paul 8a30d87064
lang: Log instruction names (#1057) 2021-11-24 10:46:17 -08:00
Mikhail Gorbachev 2d44654a4b
lang: Add `AccountNotInitialized` error (#1024) 2021-11-18 07:42:07 -08:00
Kirill Fomichev 3688683931
lang: Add `deprecated` attribute to `ProgramAccount` (#1014) 2021-11-14 06:46:18 -08:00
SolanaMonkeyBusiness c188846a4b
ts: Add postInstructions (#1007) 2021-11-14 06:45:03 -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
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
Matthew Callens 20726d06bd
lang: Add `SystemAccount<'info>` Account Type (#954) 2021-10-30 11:45:06 -05: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 58c00770cb
lang: Add custom error for `signer`, `mut`, `has_one`, `owner` and `address` constraints (#913) 2021-10-23 16:40:51 -07:00
Armani Ferrante 95bb9b3183
lang: Add init_with_needed keyword (#906) 2021-10-21 16:05:16 -07:00
Kirill Fomichev d41fb4feb5
lang: Add custom error for raw constraint (#905) 2021-10-21 15:51:20 -07:00
NorbertBodziony 1c5c6a8aba
lang: Support for AccountLoader (#792) 2021-10-08 09:24:25 -07:00
Armani Ferrante e7d16d3ec8
lang: Remove cpi feature flag for account signer check (#849) 2021-10-07 12:21:55 -07:00
Tom Linton 54a6e9cf37
cli: Add solana-test-validator control to Anchor.toml (#834) 2021-10-05 13:12:55 -07:00
Alan O'Donnell dbb5f48b24
lang: Add mint::freeze_authority attribute for init mint (#835) 2021-10-05 11:36:17 -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
Armani Ferrante db193d8248
lang: Cpi AccountInfos (#824) 2021-10-03 12:57:14 -07:00
Armani Ferrante 3d21d33cd5
v0.16.2 (#807) 2021-09-27 16:40:44 -07:00
Pierre df97fd8d56
cli: Add "slop" when anchor build (#719) 2021-09-26 17:15:31 -07:00
Armani Ferrante 2c827bc839
lang, spl, cli: Add associated_token keyword (#790) 2021-09-23 17:06:38 -07:00
Aadhi Nana Murali b0b9efc30d
clI: Added 'detach' flag to anchor test (#770) 2021-09-22 12:24:27 -07: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
Armani Ferrante b1ef7431ec
lang, spl: Program and Signer types (#705) 2021-09-11 14:43:12 -07:00
Armani Ferrante 526de235d1
lang: `#[account(owner)]` uses pubkey instead of account target (#691) 2021-09-09 14:32:11 -07:00
Armani Ferrante 23656de877
v0.15.0 (#688) 2021-09-07 18:30:04 -07:00
Armani Ferrante 3958533750
Static owner and program ID checks (#686) 2021-09-07 13:06:15 -07:00
Kirill Fomichev 675c7cd81d
lang: Check that ProgramAccount writable on deref_mut (#681) 2021-09-06 17:07:39 -07:00
Armani Ferrante 5017a1afee
v0.14.0 (#655) 2021-09-02 11:31:50 -07:00
Armani Ferrante f4f60d7fab
lang: Move program check to try_from (#660) 2021-09-01 14:53:39 -07:00
Kirill Fomichev 697f585b5b
Update solana to 1.7.11 (#653) 2021-08-31 14:52:41 -07:00
Kirill Fomichev c67dea4379
lang: Optimize `trait Key` implementation (#652) 2021-08-31 00:27:26 -07:00
Armani Ferrante 75c20856e4
lang: Consistent init constraints (#641) 2021-08-29 14:25:38 -07:00
Tom Linton b01e1e5d4b
cli: Remove anchor launch (#634) 2021-08-23 14:38:21 -07:00
Armani Ferrante 6e55078ff3
lang, ts, examples: Remove associated keyword (#612) 2021-08-15 16:35:53 -07:00
Henry-E fef207dc83
lang, examples: Add mint initialization constraints (#562) 2021-08-14 18:18:28 -07:00
Kirill Fomichev a76662fb7a
lang: Ignore unnamed structs instead of panic (#605) 2021-08-13 18:09:20 -07:00
Armani Ferrante 8e4870d370
v0.13.2 (#599) 2021-08-11 01:13:38 -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
Kirill Fomichev ceb80b0a04
lang: Dynamically fetch rent sysvar for when using `init` (#588) 2021-08-08 13:20:26 -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
Kirill Fomichev 690c41315d
cli: Allow custom test commands (#550) 2021-07-29 14:38:24 -07:00
Kirill Fomichev 03042590a9
cli: Allow custom program addresses for test (#554) 2021-07-28 14:04:14 -07:00
Kirill Fomichev a753eb0f0b
changelog: Fix 0.11.1 (#557) 2021-07-28 10:21:20 -07:00
Kirill Fomichev b8dae74836
cli: Add keys include/exclude in programs section (#546) 2021-07-25 17:25:40 -07:00
Kirill Fomichev 8dc7bed4ef
ts: Use hex by default for decoding Instruction (#547) 2021-07-24 10:59:12 -07:00
Kirill Fomichev 5d0ae3a9f8
lang: Mutate instead returning new one in `CpiAccount::reload` (#527) 2021-07-19 12:16:58 -07:00
suscd f34d0730db
lang/syn: Parse entire crate for IDL (#517) 2021-07-16 14:36:32 -07:00
Armani Ferrante c5b61848c0
v0.11.1 (#507) 2021-07-09 19:05:57 -07:00
Armani Ferrante 5018e98a9c
examples: Permissioned markets (#483) 2021-07-09 18:42:05 -07:00
Standaa dac6b17866
ts: Fix event listener not firing when creating associated accounts (#397) 2021-07-09 11:46:22 -07:00
Brett Etter d612ffddc2
lang: Added generic support to Accounts (#496) 2021-07-08 13:14:39 -07:00
Armani Ferrante bbc40ba1c0
v0.11.0 (#458) 2021-07-03 12:41:55 -07:00
Kirill Fomichev 2d974604ae
lang: Remove belongs_to in favor of has_one (#459) 2021-07-03 11:58:23 -07:00
Armani Ferrante 915e6dd398
lang, ts: Fallback functions (#457) 2021-07-02 17:33:48 -07:00
Kirill Fomichev 94f08cd166
cli: Remove .spec from ts files (#441) 2021-06-30 11:00:37 -07:00
Armani Ferrante c7de475177
v0.10.0 (#433) 2021-06-27 17:34:40 -07:00
Kirill Fomichev dc6227fc86
cli: Use npx for local mocha/ts-mocha (#432) 2021-06-27 15:59:02 -07:00
Armani Ferrante f067624add
Token PDAs and CLI scripts (#400) 2021-06-27 13:17:05 -07:00
Armani Ferrante 796d917f42
v0.9.0 (#388) 2021-06-15 18:43:21 -07:00
Armani Ferrante a6ebaabac4
lang: Initialize program derived addresses with instruction data (#386) 2021-06-15 17:15:51 -07:00
Ian Macalinao 4ce26d5531
lang: Render event IDL fields as mixed case (#379) 2021-06-15 10:52:13 -07:00
Armani Ferrante 2bcd44ded3
v0.8.0 (#375) 2021-06-10 20:01:25 -07:00
Armani Ferrante 278d87e402
ts: Add instruction decode api (#372) 2021-06-10 19:25:02 -07:00
Armani Ferrante df51a27a48
lang, ts: Account close constraint (#371) 2021-06-09 15:40:43 -07:00
Armani Ferrante ba99c9c920
lang: Framework defined error codes (#354) 2021-06-09 13:02:50 -07:00
Armani Ferrante 6ed71d7e68
client: Cluster parses custom urls from str (#369) 2021-06-08 23:26:07 -07:00
Armani Ferrante f3fca35447
cli: Add --program-name option for build command (#362) 2021-06-07 18:13:53 -07:00
Armani Ferrante c23a5dfa29
lang: Implement ToAccountMetas for CpiContext (#351) 2021-05-31 16:41:21 -07:00
Armani Ferrante a8fd1e0abb
v0.7.0 (#348) 2021-05-31 12:25:05 -07:00
Armani Ferrante 6b5ed789fc
lang, spl, cli: Refactor to preserve span information (#341) 2021-05-30 12:59:33 -07:00
Armani Ferrante 2f780e0d27
ts: Reorganize program namespaces into well typed elements (#322) 2021-05-25 20:04:05 -07:00
Armani Ferrante e1229362bc
lang, ts: Namespace state discriminator (#320) 2021-05-25 14:50:12 -07:00
Armani Ferrante 21fc2d15f4
lang, ts: Consistent domain delimiters (#321) 2021-05-25 11:26:12 -07:00
Armani Ferrante 68c601ab22
lang: Add associated init constraint (#318) 2021-05-24 22:31:48 -07:00
Michael Huang dd64779273
spl: Implement token::set_authority (#307) 2021-05-24 17:07:20 -07:00
Armani Ferrante 1777ecaee4
cli: Global options to override Anchor.toml values (#313) 2021-05-24 16:04:17 -07:00
Armani Ferrante 5b807d7804
ts: Make workspace metadata optional (#310) 2021-05-23 17:06:39 -07:00
Armani Ferrante 6da6ae22f8
v0.6.0 (#309) 2021-05-23 14:45:34 -07:00
Armani Ferrante a9179600cd
cli: Add provider section to Anchor.toml (#305) 2021-05-23 10:00:24 -07:00
Armani Ferrante 8fa867fbd6
ts: Pubkeys as base58 strings (#304) 2021-05-23 09:58:15 -07:00
Armani Ferrante ccf18557f9
cli: Add shell command (#303) 2021-05-22 16:06:08 -07:00
nutchanon-pho 691a30ae06
cli: Add --skip-build flag to anchor test (#301) 2021-05-21 22:20:59 -07:00
Armani Ferrante 24b723e1e1
ts: Event decode api updates (#292) 2021-05-20 02:28:27 -07:00
Armani Ferrante 364f957c9a
ts: Use Signer instead of Keypair (#296) 2021-05-20 02:26:32 -07:00
John Rees ead60e2fc4
ts: Replace deprecated web3.Account with web3.Keypair (#274) 2021-05-15 14:43:25 -07:00
Armani Ferrante 9b446dbae1
ts: Add program simulate namespace (#266) 2021-05-08 21:31:55 -07:00
Michael Huang 425997a12d
Add yarn flag to the anchor test command (#267) 2021-05-08 17:00:35 -07:00
Armani Ferrante 791269d3e3
v0.5.0 (#257) 2021-05-07 12:11:18 -07:00
Stanisław Drozd d08ec0326e
lang: Add anchor-debug feature flag for logging (#253) 2021-05-07 11:47:21 -07:00
Armani Ferrante 851720eb0f
ts: Add support for u16 (#255) 2021-05-07 11:20:15 -07:00
Armani Ferrante d796cee091
client, lang: Add client support for state instructions (#248) 2021-05-06 14:48:22 -07:00
Armani Ferrante 531e796f77
V0.4.5 (#230) 2021-04-29 23:47:20 -07:00
armaniferrante bf092c0e83
changelog: Add dex client entry 2021-04-29 22:50:15 -07:00
Armani Ferrante 0de345f1a6
v0.4.4 (#205) 2021-04-18 17:42:01 -07:00
Armani Ferrante b6afb30474
lang: Zero copy deserialization (#202) 2021-04-17 12:07:48 -07:00
Armani Ferrante 512604b85e
lang: Allow multiple with targets for associated accounts (#197) 2021-04-14 17:29:52 -07:00
Armani Ferrante f1bb17d35d
v0.4.3 (#188) 2021-04-13 12:11:58 -07:00
Armani Ferrante b498b99f96
lang: Associated program account attributes (#186) 2021-04-13 11:47:54 -07:00
Armani Ferrante a94e24aea4
lang: Add owner constraint (#178) 2021-04-12 12:54:35 +08:00
Armani Ferrante 290e342ade
lang: Parse unused accounts into the IDL (#177) 2021-04-11 20:05:19 -07:00
Armani Ferrante c7c322a306
State struct cpi code generation (#43) 2021-04-11 17:23:43 -07:00
Armani Ferrante 808d0542a5
v0.4.2 (#170) 2021-04-10 18:10:19 -07:00
Armani Ferrante ae990e21d7
spl: Add token initialize_account instruction (#166) 2021-04-09 23:54:19 -07:00
Armani Ferrante 0e02301e42
cli: Fund configured wallet when testing (#164) 2021-04-09 10:33:59 -07:00
Armani Ferrante 430e10cb6a
v0.4.1 (#152) 2021-04-06 15:49:51 -07:00
Armani Ferrante dce5cfd1f8
cli, docker: Version verifiable builder with cli (#145) 2021-04-06 15:15:18 -07:00
Armani Ferrante 719602e836
v0.4.0 (#144) 2021-04-04 14:24:50 -07:00
Armani Ferrante 8289e47513
Update solana tooling to v1.6.3 (#139) 2021-04-04 00:55:56 -07:00
Armani Ferrante d6d41eee59
lang: Add executable account constraint (#140) 2021-04-03 15:13:12 -07:00
Standaa 7f2ef239ac
Feat/migrations typescript support (#132) 2021-03-30 23:14:15 -07:00
Armani Ferrante 07a65233a5
lang: Namespaceable account discriminators (#128) 2021-03-26 15:21:31 -07:00
Armani Ferrante 3cbc227491
Events (#89) 2021-03-24 20:19:29 -07:00
Armani Ferrante b7cafcda0e
lang: Add state size override (#121) 2021-03-24 10:35:51 -07:00
Armani Ferrante cf1feafb06
cli: Specify test files to run (#118) 2021-03-23 10:58:46 -07:00
armaniferrante 97027d9abc
v0.3.0 2021-03-12 14:48:29 -08:00
Armani Ferrante 4c5771d008
lang, cli: Idl write buffers (#107) 2021-03-12 12:43:26 -08:00
Armani Ferrante a7b092a611
docker, cli, lang: Deterministic and verifiable builds (#100) 2021-03-09 05:40:09 -08:00
Armani Ferrante 734c751882
ts: Export sighash coder 2021-03-05 20:15:21 +08:00
NorbertBodziony 7b69e0ba23
add TS support for tests (#94) 2021-03-01 17:25:59 +08:00
Armani Ferrante 4d562b0a82
cli: Flag to skip starting a local validator (#93) 2021-02-26 22:16:19 +08:00
Armani Ferrante b3803aec03
cli: Specify programs to embed into local validator genesis via Anchor.toml 2021-02-23 01:41:40 +08:00
Armani Ferrante 79b791ffa8
cli: Propagate mocha exit status on error 2021-02-19 23:24:22 +08:00
Armani Ferrante c28615be55
ts: Bump version v0.2.2-beta.1 2021-02-14 22:27:33 +08:00
Armani Ferrante 603a2c1859
v0.2.1 2021-02-11 22:49:25 +08:00
Armani Ferrante c67dabd1f9
Add support for u128 and i128 (#83) 2021-02-11 13:24:29 +08:00
Armani Ferrante 79fe508c07
changelog: Reformat parens 2021-02-11 00:22:42 +08:00
Armani Ferrante ed1b8abb13
changelog: Add commit hashes to some entries 2021-02-11 00:19:35 +08:00
Armani Ferrante 627c275e9c
ts: Add instruction method to state namespace 2021-02-11 00:12:29 +08:00
Armani Ferrante a780002683
lang/syn: Allow state structs with no ctor or impl block 2021-02-10 21:28:59 +08:00
Armani Ferrante 845df6d196
lang/attribute/access-control: Allow multiple modifiers 2021-02-10 12:00:19 +08:00
Armani Ferrante d92cb1516b
spl: Add shared memory api 2021-02-10 11:59:42 +08:00
Armani Ferrante ce5ca7ddab
cli: Stream program logs to file when testing 2021-02-10 01:04:18 +08:00
Armani Ferrante 733ec300b0
cli: Embed workspace programs into genesis when testing 2021-02-09 23:31:52 +08:00
Armani Ferrante 14ebb5aa9b
Publish 0.2.0 2021-02-08 15:32:20 +08:00
Armani Ferrante 1f31770c83
Program interfaces 2021-02-08 12:54:52 +08:00
Armani Ferrante 48b27e6943
Migrate to sighash based method dispatch (#64) 2021-02-06 16:28:33 +08:00
Armani Ferrante 0d0c27c74d
Add CHANGELOG.md (#52) 2021-01-31 07:48:08 -08:00