acheron
cf7abd4fd4
Upgrade Solana to 1.18.17 ( #3039 )
2024-06-20 15:52:49 +02:00
Loris Leiva
cd826271c2
ts: Extract Anchor error codes into their own package ( #2983 )
2024-05-29 22:24:32 +02:00
Bhargava Sai Macha
e3ced784ad
Add support for token extensions ( #2789 )
2024-04-11 22:49:13 +02:00
acheron
cbf9b0a090
Unpin `nightly` version ( #2893 )
2024-04-07 13:47:50 +02:00
acheron
800d6557b9
ci: Add `declare-program` tests ( #2873 )
2024-03-30 17:04:43 +01:00
acheron
c66b323293
Upgrade Solana to 1.18.8 ( #2867 )
2024-03-28 05:52:24 +01:00
acheron
ddcb3b8260
ts: Make `opts` parameter of `AnchorProvider` constructor optional ( #2843 )
2024-03-14 23:59:39 +01:00
acheron
d9a9f19394
Fix IDL ( #2824 )
...
* Rewrite IDL type spec
* Rewrite IDL generation
* Partially rewrite the TS package with the new IDL, improved account resolution and types
2024-03-10 14:22:23 +01:00
acheron
1fc92ab1e3
lang: Fix `use of unstable library feature 'build_hasher_simple_hash_one'` ( #2756 )
2023-12-31 18:05:33 +01:00
acheron
51ae380574
ci: Remove manual downgrade of `index_list` to make `solana-program-test` compile ( #2739 )
2023-12-19 23:59:58 +01:00
Joe C
13fc0bb915
lang: Add `#[interface]` attribute for overriding the default discriminator ( #2728 )
2023-12-17 23:57:57 +01:00
acheron
8f3bb8a556
cli: Make `cargo build-sbf` the default build command ( #2694 )
2023-11-07 00:53:26 +01:00
acheron
fc3905a099
ci: Re-enable `anchor init` test ( #2673 )
2023-10-18 11:22:54 +02:00
acheron
fc9fd6d24b
v0.29.0 ( #2672 )
2023-10-16 18:35:17 +02:00
acheron
8717364f81
Remove the maximum version constraint from Solana crates ( #2667 )
2023-10-13 23:58:51 +02:00
acheron
267c4ceab7
tests: Remove `auction-house` submodule and host it natively ( #2654 )
2023-10-09 13:50:40 +02:00
acheron
5e7fb44518
Upgrade Solana to `1.17.0` ( #2645 )
2023-10-07 23:53:37 +02:00
acheron
51578bcbc5
spl: Fix compilation error and warnings ( #2647 )
2023-10-05 19:19:07 +02:00
acheron
f18fd971fb
Update Node to `18.18.0` LTS ( #2643 )
2023-10-03 11:49:03 +02:00
Sean Young
3e8bc76d72
Update to solang v0.3.2 and add simple test ( #2636 )
2023-09-26 22:55:41 +02:00
acheron
c306463432
tests: Refactor IDL tests ( #2573 )
2023-07-17 22:47:55 +02:00
Krešimir Klas
6ef6b79a6c
IDL generation through compilation ( #2011 )
...
Co-authored-by: acheron <acheroncrypto@gmail.com>
2023-07-08 19:59:30 +02:00
acheron
c2a36f9e42
ci: Enable `anchor init` test ( #2529 )
2023-06-12 20:09:14 +02:00
acheron
e1afcbf71e
v0.28.0 ( #2527 )
2023-06-09 18:00:35 +02:00
acheron
1c6f86e5f7
Upgrade Solana to 1.16.0 ( #2512 )
2023-06-04 13:09:39 +02:00
acheron
67eb7520b5
tests: Fix zero-copy tests ( #2498 )
2023-05-20 20:34:38 +02:00
acheron
5910dd3e2f
Add benchmarking for compute units usage ( #2466 )
2023-04-24 10:33:11 +02:00
Elliot Kennedy
670b4f5005
Add `token_program` constraint to token, mint, and associated token accounts ( #2460 )
2023-04-19 10:43:24 +02:00
Henry-E
5623c7c8ed
update discord links ( #2424 )
2023-03-06 11:19:08 +00:00
Henry-E
45fa9bd3ba
Update Solana-program and rust-version ( #2420 )
2023-03-02 17:23:16 +00:00
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