Henry-E
347c225a27
v0.26.0 ( #2315 )
...
* v0.26.0
* update packages
* typedocs
Co-authored-by: henrye <henry@notanemail>
2022-12-15 16:12:22 +00:00
Henry-E
b00fe70d1b
add optional accounts to changelog ( #2314 )
...
* add optional accounts to changelog
* Update CHANGELOG.md
2022-12-14 20:15:57 +00:00
Henry-E
f79f9dab74
Use less heap intensive error mapping ( #2313 )
...
* less heap intensive error mapping
* add changelog
* try returning the error
* dumb match statements instead
* missing commas
Co-authored-by: henrye <henry@notanemail>
2022-12-14 17:03:57 +00:00
Jean Marchand (Exotic Markets)
fad05805d8
spl: change serum-dex to openbook-dex ( #2308 )
...
* Change serum-dex by openbook-dex
* Change serum-dex by openbook-dex in tests
* Fix swap
* Fix cfo
* Downgrade openbook
* Disable cfo and update changelog
* Revert lock file
* minor grammar
* update the pubkey to open dex
* Remove @solana/web3.js from ts package.json
Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
Co-authored-by: henrye <henry@notanemail>
2022-12-12 16:12:33 +00:00
Adithya Narayan
b662ff1460
cli: `anchor account` subcommand to read program account ( #1923 )
...
* Setup account subcommand skeleton
* Move IDL deserialization code to syn module
* Change HashMap to serde_json
* Add enum deserialization
* Add account subcommand to docs
* Fix lint
* Add validation for account type
* Fix solana-sdk dependency version
* Fix clippy warnings
* Move IDL deserialization code to cli module
* Remove debug print
* Add integration tests
* Update documentation with example
* Fix clippy warnings
* Fix leftover merge conflict
* run prettier
Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
Co-authored-by: henrye <henry@notanemail>
2022-12-12 16:11:26 +00:00
Henry-E
03eff348db
only add public enums to the IDL ( #2310 )
...
Co-authored-by: henrye <henry@notanemail>
2022-12-12 16:10:47 +00:00
Petr Kozorezov
7527033c7b
Add 'ticks-per-slot' option passing to test validator ( #1875 )
...
* add 'ticks-per-slot' option passing to test validator
* add 'ticks-per-slot' option passing to test validator
* add 'ticks-per-slot' option passing to test validator
* cargo fmt and changelog
Co-authored-by: henrye <henry@notanemail>
2022-12-12 16:10:14 +00:00
Henry-E
09b829d1a3
Identity com bugfix/robust fetch nullable ( #2301 )
...
* ts: Fixed `.fetchNullable()` to be robust towards accounts only holding a balance
* update changelog to new PR id
* prettier
Co-authored-by: Martin Riedel <web@riedel-it.de>
Co-authored-by: henrye <henry@notanemail>
2022-12-07 10:54:45 +00:00
Henry-E
7d7747cc90
Build borsh package first, then build anchor package ( #2306 )
...
* Add build borsh package to yarn build anchor package
* update changelog with rsh stuff; clean up full stops
* make it even clearer in the changelog
* missing full stop
Co-authored-by: henrye <henry@notanemail>
2022-12-07 10:46:29 +00:00
skrrb
6814ce646e
cli: run a subset of the test suites ( #1864 )
...
* cli: run subset of tests with --run
* changelog
* test
* fix run test path
* test: added missing package.json
* cli: run subset of tests with --run
* changelog
* test
* fix run test path
* test: added missing package.json
Co-authored-by: Armani Ferrante <armaniferrante@gmail.com>
Co-authored-by: henrye <henry@notanemail>
2022-12-06 21:42:10 +00:00
Tommy Johnson
c798821947
add geyser_plugin_config support for anchor localnet ( #2016 )
...
* add geyser_plugin_config support for anchor localnet
* run cargo fmt
* remove duplicate code that came from #2150
Co-authored-by: Tommy Johnson <tommy@psyoptions.io>
2022-12-06 21:15:48 +00:00
Henry-E
1bb1969d60
fix breaking change on null or undefined wallet ( #2303 )
...
Co-authored-by: henrye <henry@notanemail>
2022-12-06 12:05:12 +00:00
Nicholas Clarke
66e45327b9
Add optional flag to parseLogs to throw an error on decoding failure ( #2043 )
...
* Add optional flag to parseLogs to throw an error on decoding failure
* update changelog
Co-authored-by: henrye <henry@notanemail>
2022-12-05 15:50:46 +00:00
skrrb
fb714b9343
fix anchor keys list command ( #2063 )
...
* fix anchor keys list command
* changelog
Co-authored-by: henrye <henry@notanemail>
2022-12-05 15:50:31 +00:00
surfertas
50724df110
allow ability to pass in feePayer to Provider methods [WIP] ( #2186 )
...
* allow ability to pass in feePayer to Provider methods
* align comments
* prettier
* check if feePayer set, handle if not
* remove unnecessary spaces in comments
* update changelog
* strict equality check
* use null check
* use logical or
* use logical or
Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-05 12:45:27 +00:00
Henry-E
19e00e5d8f
Don't allow the payer to be initialized as a program account ( #2284 )
...
* don't allow people to initialize the payer as a program account
* update changelog
* accidentally commented out part of another test
Co-authored-by: henrye <henry@notanemail>
2022-11-25 15:12:58 +00:00
cyphersnake
a73bd728fb
lang: Add `Owner` & `Discriminator` implementation for ix structures ( #2085 )
...
lang: Add into `Discriminator` trait constant `DISCRIMINATOR`
So that during match instructions or other entities there is no explicit instruction call of `discriminator()`
lang: Add `Owner` impl to instructions
Co-authored-by: Mikhail Gorbachev <m.gorbachev@joinsprouttherapy.com>
2022-11-24 16:19:39 +00:00
Jean Marchand (Exotic Markets)
b8cda8a717
cli: Allow custom cluster config ( #2271 )
...
* cli: Allow custom cluster config
* Update changelog
* Downgrade the code
* Fix rust fmt
Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-11-22 16:33:44 +00:00
Henry-E
5291a7b6ff
Update rust to v1.62 ( #2272 )
...
* update rust from v1.56 to v1.65
* remove unnecessary borrows to appease clippy
* stop clippy complaining for now
* use 1.64 instead because of CI stuff
* update CHANGLEOG
* just seeing if the cli version is affecting the available rust version
* ok, back to 1.62
Co-authored-by: henrye <henry@notanemail>
2022-11-22 16:13:45 +00:00
Jean Marchand (Exotic Markets)
8ce18c36db
spl: Update instructions and remove rent from constraints ( #2265 )
...
* Update spl instructions and remove the rent sys_var from constraints
* Fix initialize mint
* Update changelog and fix examples
* Remove oversights
2022-11-19 12:59:14 +00:00
acheron
af115999c6
ts: Remove SPL coders from Anchor package ( #2155 )
...
* ts: Remove SPL coders from Anchor package
* Replace old SPL custom coder tests
* Build and link new SPL packages before tests and decode token account for AccountStore
* Fix Github actions ts setup
* Fix u64 buffer length
* Update submodules
* Update CHANGELOG
* Checkout correct submodule commits
* Add filler program to generate idls in order for anchor test to pass
2022-11-17 14:17:22 +00:00
filipzeta
5c474c6dfb
Bugfix multiple event listeners with the same name ( #2165 )
...
* Bugfix multiple event listeners with the same name
* Changelog
* changelog
2022-11-16 16:33:01 +00:00
Jean Marchand
b107cbe94f
lang: Fix parsing for bytes literals in the IDL ( #2261 )
...
* lang: Fix parsing of some constants
* Fix lint + changelog
2022-11-16 15:59:09 +00:00
Sammy Harris
fa1249836e
Feat: Update AccountsClose to be safe to call manually ( #2209 )
...
* fix other lints to make the test pass
(cherry picked from commit d6e43c1ed6
)
* update close to make it safe to call manually
* fix test script
* re-add safety warnings for deprecated account types
* update close checking logic
* readd logic for deprecated methods
* add additional checks to account_loader in exit
2022-10-21 17:06:54 +01:00
Henry-E
d83efcdc3a
update solana web3 package to 1.64.0 ( #2223 )
...
* update solana web3 package to 1.64.0
* fix some missing packages; update changelog
* fix weird prettier thing messing with changelog
* also upgrade the yarn.lock in tests
2022-10-13 11:20:32 +01:00
Noah Prince
6f3877f36c
feat: Update seeds inference to allow nested user defined structs as part of the seeds ( #2198 )
2022-09-23 22:14:57 -04:00
Noah Prince
436791b039
feat: Recursively derive seeds and add custom account resolver ( #2194 )
2022-09-21 16:32:24 -04:00
Matthew Callens
f155996c3c
add wrappers for mpl `sign_metadata` and `remove_creator_verification` ( #2175 )
...
* add wrappers for mpl creator verification ix
* update changelog
2022-09-10 16:32:29 -04:00
Matthew Callens
4c24c5d7b1
add `update_primary_sale_happened_via_token` ix wrapper for `metadata` ( #2173 )
...
* add update_primary_sale_happened_via_token ix wrapper
* update changelog
2022-09-10 15:57:27 -04:00
Noah Prince
e69e50daaf
feat: Add has_one relations inference so you don't need to pass accounts that are referenced by a has_one ( #2160 )
2022-09-10 12:52:59 -04:00
surfertas
0c70d183ef
add freeze and thaw delegated account instructions ( #2164 )
2022-09-06 10:30:50 -04:00
Pierre
8ee4600785
feat: Use new canonical close account pattern ( #2169 )
2022-09-06 09:33:17 -04:00
acheron
5a025b949e
ts: Add SPL Anchor packages ( #2143 )
2022-08-22 21:57:56 -04:00
Sammy Harris
290b2aa43e
feat: constants declared in impl blocks in seeds ( #2128 )
2022-08-14 12:42:16 -04:00
Sammy Harris
3a0deba901
fix: IDL gen byte string lit parsing ( #2125 )
2022-08-13 22:57:59 -04:00
Kevin Rodríguez
d3ee9b529a
spl: adding metadata account type ( #2014 )
2022-08-13 14:44:38 -04:00
Matthew Callens
000e74ed48
spl: add create metadata v3 and set collection size ix ( #2119 )
...
* add create metadata v3 and set collection size ix
* update changelog
2022-08-12 12:11:43 -04:00
Sammy Harris
68362aca58
feat: Adds transaction function to RequestBuilder ( #1985 )
2022-07-30 14:53:10 -04: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
85847445b3
fix changelog entry to be breaking ( #2022 )
2022-07-02 11:17:02 -04:00
Matthew Callens
e67c50f914
ts: convert `EventParser.parseLogs` to a generator function ( #2018 )
2022-07-01 23:29:19 -04:00
Matthew Callens
2ad00678b6
ts: add `accountsStrict` for non-resolvable accounts input ( #2019 )
2022-07-01 18:26:09 -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
cavemanloverboy
6984260330
Minor fix ( #1976 )
2022-06-16 09:47:44 -04:00
Matthew Callens
179711bacc
ts: verbose error for missing `ANCHOR_WALLET` in `NodeWallet.local()` ( #1958 )
2022-06-10 09:54:06 -04:00
Matthew Callens
7fe39c61ad
lang: add `realloc` constraint group ( #1943 )
2022-06-04 20:25:28 -04:00
Daniel Marin
a5dbc7b850
ts: setup associated token program idl ( #1939 )
2022-06-01 14:51:44 -04:00
sushi-shi
58db41bb35
cli: Allow passing arguments to a script ( #1914 )
2022-05-29 23:24:45 +02:00
Vladimir Guguiev
d83fcbf7bc
ts: Add program.coder.types for encoding/decoding user-defined types ( #1931 )
2022-05-29 22:39:45 +02:00
Sammy
b993854767
client: Add send w/ spinner and options ( #1926 )
2022-05-29 22:31:38 +02:00
Daniel Marin
707ebf26e7
feat: Setup a coder for SystemProgram ( #1920 )
2022-05-26 13:03:44 +02:00
Charlie You
90bbc8b6be
ts: Add tx signature to EventCallback ( #1851 )
2022-05-17 11:24:16 -04:00
Armani Ferrante
59c2dbb712
update CHANGELOG.md ( #1869 )
2022-05-04 11:08:36 -04:00
Italo Casas
a298bcd650
cli: add --skip-build flag to publish command ( #1841 )
2022-05-03 09:48:51 -04:00
Tommy Johnson
0011e22b91
add wallet publickey to Provider ( #1845 )
2022-04-28 18:23:20 -04:00
Pierre
282c394666
feat: add sync native to anchor_spl::token ( #1833 )
2022-04-25 13:39:35 -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
guibescos
0916361f5e
Feature/error equality ( #1544 )
2022-04-20 19:12:50 -04:00
Paul
9a48f40e3d
spl: add more derives for `TokenAccount` and `Mint` ( #1818 )
2022-04-20 17:50:30 -04:00
Paul
fe255bba2b
cli: add custom release profile to improve CU efficiency ( #1807 )
2022-04-20 17:49:12 -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
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
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
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
Paul
537d470954
ts: make `Provider` an interface, add `AnchorProvider` class, and update provider functions ( #1707 )
2022-04-11 15:48:58 -04:00
Paul
4d9bd6adc6
spl: change "to" to "from" in token::burn ( #1729 )
...
Co-authored-by: Thomas Moussajee <thomas.moussajee@gmail.com>
2022-04-11 13:00:04 -04:00
Krešimir Klas
12f6541486
ts: export error types ( #1756 )
2022-04-11 11:25:59 -04:00
DFL Zeke
7d611ac46f
ts: fix program upgrade event crashes existing listeners ( #1757 )
2022-04-11 09:38:43 -04:00
Paul
016a1d3da5
update forgotten solana versions ( #1751 )
2022-04-10 14:26:03 -04:00
Matthew Callens
d1ddf8ee24
ts: add `pubkeys` method builder function to view all instruction account addresses ( #1733 )
...
Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com>
2022-04-10 13:19:56 -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
Paul
ce884066e0
cli: add prettier to new project js/ts template ( #1741 )
2022-04-07 09:14:38 -04:00
Anan
999fc6aaf4
Fix amv->avm spelling mistake ( #1734 )
2022-04-05 17:01:09 -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
Armani Ferrante
5652668062
add changelog entry ( #1724 )
2022-04-03 19:20:04 -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
470e902f48
lang: Add support for multiple test suites with separate local validators ( #1681 )
2022-03-30 17:17:54 -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
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
Paul
78714eaf95
docs: move ts error changes into breaking section of the changelog ( #1664 )
2022-03-21 12:47:12 -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
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
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
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
d871f39793
lang: add system program cpi wrapper functions ( #1629 )
2022-03-16 16:09:58 -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
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
2a039f2e45
cli: initialize a new git repository on `anchor init` ( #1605 )
2022-03-14 11:43:05 -04: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
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
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
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
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
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
Armani Ferrante
b733610d87
v0.22.1 ( #1528 )
2022-02-28 11:35:59 -05:00
Paul
4afdf56cfa
docs: fix changelog error migration guide ( #1508 )
2022-02-22 17:38:53 -05:00
Evan Conrad
4fd20c7bf9
changelog: add additional upgrade guide for 0.22.0 ( #1497 )
2022-02-21 14:50:57 -05:00
Armani Ferrante
a604f8595c
makefile and changelog misc updates ( #1491 )
2022-02-21 11:05:17 -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
Paul
40596824bf
error redesign ( #1462 )
2022-02-20 17:28:24 -05:00
Tom Linton
5ff9947ba2
lang: Error on undocumented unsafe account types ( #1452 )
2022-02-17 17:45:33 -05:00
Pavel Kuzovkin
90bcea1cbe
lang, ts: float types support ( #1425 )
2022-02-17 14:23:21 -05:00
Paul
1f56a62bab
lang: add check that declared id == program id ( #1451 )
2022-02-15 18:16:06 -05:00
Paul
d5e7e2a7c3
docs: update changelog for #1426 ( #1432 )
2022-02-11 11:35:09 +01:00
Daniel Marin
3838bdeaf0
ts: allow nullable types for option fields ( #1428 )
2022-02-10 09:46:44 -05:00
man0s
83121c26eb
Add check for mutability of init payer ( #1271 )
2022-02-08 18:34:18 +01:00
Armani Ferrante
1164ebdcfc
fix changelog version ( #1409 )
2022-02-08 12:22:17 -05:00
Armani Ferrante
ef1a58d665
v0.21.0 ( #1403 )
2022-02-07 20:10:49 -05:00
Armani Ferrante
598c7b0790
lang: error if bump target is given on init ( #1380 )
2022-02-07 13:26:05 -05:00
Eoin Murphy
9fea72e701
ts: fill in some gaps for ts IDL types ( #1393 )
2022-02-04 13:11:17 -05:00
Tom Linton
75469f423c
cli: anchor version manager (avm) ( #1385 )
2022-02-03 19:13:40 -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
Matthew Callens
714f5e6b75
ts: fix `Wallet` class declaration ( #1363 )
2022-01-31 18:31:21 -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
46722953c1
ts: verified build utility ( #1371 )
2022-01-29 16:46:12 -05:00
Armani Ferrante
16a7dc5dc1
lang: store calculated bump seeds in context ( #1367 )
2022-01-27 16:55:13 -05:00
Armani Ferrante
e121e4e09d
ts: builder api ( #1324 )
2022-01-15 17:09:53 -05:00
xjcaa
f34287e399
ts: remove event error log ( #1313 )
2022-01-14 11:02:15 -05:00
Alan O'Donnell
e04f144e12
lang: add seeds::program constraint for PDAs ( #1197 )
2022-01-11 10:51:22 -05:00
Paul
0dfed11eaa
lang: rename loader_account.rs to account_loader.rs ( #1279 )
2022-01-10 14:39:24 -05:00
Armani Ferrante
4422902e86
changelog: move breaking section into unreleased ( #1287 )
2022-01-10 12:57:43 -05:00
Armani Ferrante
84e0852584
ts: `Coder` as interface and SPL token coder ( #1259 )
2022-01-09 21:10:25 -05:00
Armani Ferrante
a81ff88d76
v0.20.1 ( #1274 )
2022-01-09 16:50:10 -05:00
Paul
01ff03b09b
lang: give better errors for init when programs are missing ( #1257 )
2022-01-07 11:09:10 -05:00
Armani Ferrante
9c47c0a6cd
v0.20.0 ( #1251 )
2022-01-06 18:09:43 -05:00
Paul
4d4cba5add
lang: add rent exempt check for init_if_needed when init is not needed ( #1250 )
2022-01-06 15:31:36 -05:00
Paul
a830644203
lang: export accounts module, re-export its types in the prelude ( #1208 )
2022-01-06 15:26:43 -05:00
Paul
e026e9e874
lang: fix missing ATA owner check ( #1240 )
2022-01-05 11:09:57 -05:00
Dominic Lee
6f4fe1dd11
ts: add missing types for conditional exports ( #1137 )
2022-01-03 11:51:27 +01: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
51366441d2
lang: implement AsRef<T> for Account<'a, T> ( #1173 )
2021-12-27 10:37:47 -05:00
Paul
b5827c1b24
lang: add default impls for AccountSerialize and AccountDeserialize ( #1156 )
2021-12-27 10:36:29 -05:00
Tom Linton
51aeb08ae1
lang: Handle arrays with const as length ( #968 )
2021-12-22 23:13:46 -05:00
y2kappa
fa3d190d42
lang: #[repr(C)] for zero_copy accounts ( #1106 )
2021-12-22 21:11:50 -05:00
Paul
790fda9258
lang: add `set_inner` function to `Account<'a, T>` ( #1177 )
2021-12-20 15:16:26 -05:00
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