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
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
Deep Mehta
e8618a588f
replace getRecentBlockhash to getLatestBlockhash ( #2205 )
2022-11-14 16:59:36 +00:00
omahs
43ab991852
Fix: typos ( #2236 )
...
Fix: typos
2022-11-14 16:57:41 +00:00
Noah Prince
feff131ab0
fix: Nested pda types and account resolution for pdas ( #2259 )
2022-11-13 21:45:41 -05:00
Henry-E
7a0a37e0f8
Update solana to version 1.13.3 ( #2239 )
...
* upgrade solana version to 1.13.3
* get everything to compile correctly
* update to using struct constructor to avoid deprecated field usage
* update deprecated functions
* more fixes to pass tests
* update auction-house submodule commit
* update the swap submodule
Co-authored-by: henrye <henry@notanemail>
2022-10-29 15:23:13 +01: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 d6e43c1ed6a176caa60dfdabe406ec125c3d34cf)
* 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
Totoro
8e66d5bb5f
Add support for idl enum tuples, enchance types ( #2185 )
2022-10-18 10:13:23 -04:00
Sammy Harris
3da28dbc5f
fix: ignore non Accounts in safety checks ( #2201 )
2022-10-13 23:08:02 -04:00
Sammy Harris
5647510615
chore: bump @solana/web3.js in anchor-ts ( #2227 )
2022-10-13 23:06:51 -04: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
fd467df932
feat: Derive has_one's from other programs, recursively search custom resolvers ( #2208 )
2022-10-08 00:33:18 -04:00
Noah Prince
436791b039
feat: Recursively derive seeds and add custom account resolver ( #2194 )
2022-09-21 16:32:24 -04:00
Totoro
5ae52cae13
fix IDL types parsing ( #2176 )
2022-09-12 08:04:11 -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
acheron
5a025b949e
ts: Add SPL Anchor packages ( #2143 )
2022-08-22 21:57:56 -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
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
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
Daniel Marin
707ebf26e7
feat: Setup a coder for SystemProgram ( #1920 )
2022-05-26 13:03:44 +02:00
ebrightfield
ed15922f1a
Add docs field to idl ( #1561 )
2022-04-21 16:37:41 -04:00
Tom Linton
b885c7b68c
tests: Add CLI IDL command tests ( #1808 )
2022-04-20 17:38:45 -04:00
Paul
9a9dc95305
tests: fix anchor-lang dependency paths ( #1809 )
2022-04-19 14:59:17 -04:00
Paul
42663eda25
ci: ci should error if tests have typescript errors ( #1801 )
2022-04-17 15:54:28 -04:00
Armani Ferrante
0b4c7b0c73
v0.24.2 ( #1788 )
2022-04-13 19:44:18 -04:00
Paul
d07853e9ef
fix anchor-init ci and bpf-upgradeable-state package.json ( #1781 )
2022-04-12 19:29:52 -04:00
Armani Ferrante
d491f0ba1d
v0.24.1 ( #1779 )
2022-04-12 18:50:33 -04:00
Paul
b665f28b16
update anchor ts dep paths ( #1778 )
2022-04-12 18:16:04 -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
6bd9879dd6
lang: codegen improvements ( #1766 )
2022-04-11 21:28:21 -04:00
Anan
f5dffe6490
lang: allow `token::...` and `mint::...` to be used as checks without init ( #1505 )
...
Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com>
2022-04-11 17:25:07 -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
Paul
016a1d3da5
update forgotten solana versions ( #1751 )
2022-04-10 14:26:03 -04:00
Paul
7dea38712e
tests: fix safety check Anchor.toml wallet field ( #1752 )
2022-04-10 14:23:31 -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
dependabot[bot]
e007759d88
build(deps): bump minimist from 1.2.5 to 1.2.6 in /tests ( #1718 )
2022-04-04 13:05:15 -04:00
Tom Linton
8fb942efd5
ts: Add views ( #1695 )
2022-04-03 19:15:06 -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
Tom Linton
1cb7429fe2
lang: Allow CPI return values ( #1598 )
2022-03-24 14:40:38 -04:00