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
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 c864cd5d4f019e6bd5f93641e01bd82fc74041d4.
* 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
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
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
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
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
Paul
42663eda25
ci: ci should error if tests have typescript errors ( #1801 )
2022-04-17 15:54:28 -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
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
Paul
4b4b8007fb
update lockfiles ( #1662 )
2022-03-21 00:47:56 -04:00
Paul
9afdb17ac2
ts: add error log parsing to ts client ( #1640 )
2022-03-20 20:29:12 -04:00
Kirill Fomichev
45a5d20a79
ci: add git diff for checking lock file changes ( #1654 )
2022-03-20 15:42:50 -04:00
Matthew Callens
b376fd4615
lang: add additional `require_x` comparison macros ( #1622 )
2022-03-16 14:45:09 -04:00
Paul
1f56a62bab
lang: add check that declared id == program id ( #1451 )
2022-02-15 18:16:06 -05:00
Armani Ferrante
84e0852584
ts: `Coder` as interface and SPL token coder ( #1259 )
2022-01-09 21:10:25 -05:00
Tom Linton
713d43668b
examples, tests: Setup prettier ( #1152 )
2021-12-15 18:11:41 -05:00
0xCryptoSheik
a7e80079da
fix: translateAddress should not rely on PublicKey constructor nam ( #1138 )
2021-12-15 02:20:26 +01:00
Paul
3321a3f9c9
lang: Add ProgramData account ( #1095 )
2021-12-05 14:14:16 -05:00
Tom Linton
468fe79473
cli, examples, tests: Remove global JavaScript dependencies in favour of local ( #990 )
2021-11-11 22:38:35 +00:00