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