Sammy Harris
d055c89ec3
Chore: Use reusable workflows for GitHub actions ( #2345 )
...
* reusable workflows
* fix name
* fix syntax
* fix syntax again
* update install solana
* rename stuff
* fix naming
* Update test names once more
2023-01-03 16:25:32 +00:00
Henry-E
e910d44b67
update cli version and add retry cli download on error ( #2335 )
2022-12-23 10:53:05 +00:00
Jean Marchand (Exotic Markets)
38bbb21c33
lang: remove the state and interface attributes ( #2285 )
2022-12-22 16:33:44 +00:00
Henry-E
4bef8c40ef
Switch to using @coral-xyz/anchor packages ( #2318 )
2022-12-16 13:21:50 +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
Sammy Harris
484628070c
Feat: Optional Positional Accounts ( #2101 )
...
* optional accounts initial implementation
* cargo fmt
* panic if Account related traits are run on none
* Allow empty accounts to deserialize to None for optional accounts
* implement constraints for optional accounts
* optional accounts to idl gen
* accountstruct helper method
* implemented to_account_metas and infos
* add test program
* Rename optional to is_optional
* added more traits
* added TryKey error
* fix has_one
* update prelude
* is_optional
* add is_optional helper method
* Add TryAccountInfos trait
* improve constraint parser
* initial work on TryToAccountInfo
* Rename to TryToAccountInfo
* finished implementing tryToAccountInfo
* Using program method
* Formatting
* Fix program function call
* Remove function return borrow
* Fix access to program field
* finished implementing tryToAccountInfo
* add exit try_to_account_infos
* descriptive ID path
* try_to_account_info
* fix close constraint
* update test files
* completed typescript optional accounts implementation
* fix try accounts for init
* update tests
* fix to_account_metas
* update tests
* fix linting
* remove types/node
* update yarn.lock maybe?
* update optional test
* update optional test
* update optional rust cli test
* fix linting and tests
* fix tests
* update try_accounts to pass in accs during constraint gen
* Add default impl for TryToAccountInfos
* Removed TryToAccountInfos trait
* Formatting
* remove unneccesary traits and improve constraint gen drastically
* fix exit generation
* clippy
* improve cross check error message
* improve comments
* more comments
* update constraints hopefully good now?
* add new errors to ts client
* add new errors to ts client
* update optional test
* update anchor ts client
* update misc crate
* linting
* temporarily comment out optional rs tests
* update ts
* remove local test files
* linting
* optional client tests
* fix other lints to make the test pass
* remove comments
* remove misc-optional for now
* update optional program
* update optional program and client tests again
* update optional program and client tests again again
* added initialize tests that should pass
* undo unrelated anchor.toml change
* update close on optional program and improve tests
* update optional program again.
* update optional program and optional tests
* fix has one error message
* fix client example tests
* update lockfile
* update lockfile
* regenerate lockfile
* reset lockfile
* reset ts yarn lockfile
* update no caching tests
* update exit codegen to use generate_optional_check
* remove `try_to_account_infos`
* update parser to ignore method calls in constraints
* refactor and improve optional checks in constraints
* add misc-optional program and tests
* enable cpi for optional tests
* Revert "enable cpi for optional tests"
This reverts commit c864cd5d4f
.
* simplify misc tests
* update version
* fix rust version and resolve merge conflicts
* prevent Option on composite accounts
* hopefully fixed ts stuff?
* hopefully fixed ts stuff?
* testing
* hopefully done?
* update misc test
* fix optional tests
* fix ts
* fix ts again!
* linting urg
* allow-missing-optionals feature
* fix client tests
* add bnjs types to tests
Co-authored-by: febo <febo@kent.ac.uk>
Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-12 15:32:59 +00:00
Henry-E
d88a09dbb7
missing tests for cli subsuites ( #2307 )
...
Co-authored-by: henrye <henry@notanemail>
2022-12-08 11:08:51 +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
acheron
bbeffd58f7
Use @coral-xyz/borsh package ( #2299 )
2022-12-05 10:47:36 +00:00
Jean Marchand (Exotic Markets)
ca7c3f0aca
Bump actions version ( #2283 )
2022-11-25 15:14:53 +00:00
Henry-E
afbbbb0330
Trying to stop `zero-copy` test failing ( #2274 )
...
* trying out different solutions to zero copy issue (none work yet)
* using a newer version of the CLI should fix the issue
* re update solana client version
* add cargo.lock for some reason
* comment out broken test, get help later
* clippy doesn't like the new option
Co-authored-by: henrye <henry@notanemail>
2022-11-22 15:40:07 +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
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
d653226f40
chore: Speed up tests ( #2233 )
2022-10-18 14:26:09 -04:00
Sammy Harris
e866d45af9
update github runners ( #2232 )
2022-10-18 12:13:55 -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
Matthew Callens
586094156b
ci: disable breaking nonRentExempt test ( #2147 )
2022-08-23 16:38:31 -04:00
acheron
5a025b949e
ts: Add SPL Anchor packages ( #2143 )
2022-08-22 21:57:56 -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
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
Tom Linton
b885c7b68c
tests: Add CLI IDL command tests ( #1808 )
2022-04-20 17:38:45 -04:00
Paul
42663eda25
ci: ci should error if tests have typescript errors ( #1801 )
2022-04-17 15:54:28 -04:00
Paul
d07853e9ef
fix anchor-init ci and bpf-upgradeable-state package.json ( #1781 )
2022-04-12 19:29:52 -04:00
Paul
b665f28b16
update anchor ts dep paths ( #1778 )
2022-04-12 18:16:04 -04:00
Paul
e69879e3e8
ci: fix no cashing tests ( #1775 )
2022-04-12 16:55:00 -04:00
Paul
28cf541cdf
ci: add manually triggerable ci test that uses no caching ( #1773 )
2022-04-12 15:48:30 -04:00
Paul
fb149f96a1
update yarn lockfile, fix cli template, and fix ci ( #1770 )
2022-04-12 15:02:06 -04:00
Paul
3dc5940149
ci: add missing comment explaining singlethreaded avm testing ( #1762 )
2022-04-11 11:14:47 -04:00
Paul
7aa38d926f
avm: fix current_version test flakiness ( #1755 )
2022-04-11 09:14:06 -04:00
Tom Linton
4c9866f1bc
avm: Remove avm from workspaces ( #1502 )
2022-04-10 15:13:01 -04:00
Paul
ce884066e0
cli: add prettier to new project js/ts template ( #1741 )
2022-04-07 09:14:38 -04:00
Paul
4ebcc5fb7e
issue template ( #1716 )
2022-03-31 15:06:28 -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
Tom Linton
7ea97cb298
ci: Remove nightly clippy ( #1674 )
2022-03-24 00:50:50 -04:00
Kirill Fomichev
45a5d20a79
ci: add git diff for checking lock file changes ( #1654 )
2022-03-20 15:42:50 -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
skrrb
3c994fcdef
cli: also clone program data account ( #1495 )
2022-03-12 17:36:35 -05:00
Paul
9010921a45
ci: add anchor init template test ( #1525 )
2022-02-26 18:42:57 -05:00
Paul
90fe5e95b0
ci: add timeout for jobs ( #1489 )
2022-02-21 10:49:51 -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