Henry-E
3b45144787
v0.27.0 ( #2428 )
2023-03-08 13:28:23 +00:00
Henry-E
30083bd83c
Simple versioned transaction support ( #2427 )
2023-03-07 15:08:29 +00:00
Henry-E
1dc16d6642
Revert "Simple Versioned Transaction Support ( #2407 )" ( #2426 )
...
This reverts commit 064dde4b1a
.
2023-03-06 12:22:58 +00:00
Henry-E
064dde4b1a
Simple Versioned Transaction Support ( #2407 )
2023-03-06 12:07:24 +00:00
Marquelle Nesbitt
37cc99c2b6
Make the return type of `AccountClient.fetchMultiple` consistent ( #2390 )
2023-02-07 20:28:43 +00:00
nojob1
cb680809f0
make idl enum fields which are snake case have proper typing to camel case ( #2378 )
2023-02-01 11:56:12 +00:00
Jean Marchand (Exotic Markets)
5f9b5905dc
ts: remove duplicate functions ( #2357 )
2023-01-24 10:39:31 +00:00
Andrey Frolov
79a066661c
inroduce idl account getter ( #2367 )
2023-01-23 12:25:28 +00:00
Christian Kamm
e3fe24f925
Simulate: Don't attempt to sign transaction ( #2331 )
2023-01-17 09:57:47 +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
Henry-E
9f3d66ff8c
post release clean up ( #2317 )
...
Co-authored-by: henrye <henry@notanemail>
2022-12-15 18:44:12 +00:00
Henry-E
347c225a27
v0.26.0 ( #2315 )
...
* v0.26.0
* update packages
* typedocs
Co-authored-by: henrye <henry@notanemail>
2022-12-15 16:12:22 +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
09b829d1a3
Identity com bugfix/robust fetch nullable ( #2301 )
...
* ts: Fixed `.fetchNullable()` to be robust towards accounts only holding a balance
* update changelog to new PR id
* prettier
Co-authored-by: Martin Riedel <web@riedel-it.de>
Co-authored-by: henrye <henry@notanemail>
2022-12-07 10:54:45 +00:00
Henry-E
7d7747cc90
Build borsh package first, then build anchor package ( #2306 )
...
* Add build borsh package to yarn build anchor package
* update changelog with rsh stuff; clean up full stops
* make it even clearer in the changelog
* missing full stop
Co-authored-by: henrye <henry@notanemail>
2022-12-07 10:46:29 +00:00
Nicolas Bayle
57434279fd
Don't use wallet object for account.createInstruction function 2112 ( #2116 )
...
* Don't use wallet object for account.createInstruction function 2112
* added publicKey type check
* yarn test pass
* Don't use wallet object for account.createInstruction function 2112
* added publicKey type check
* yarn test pass
Co-authored-by: henrye <henry@notanemail>
2022-12-06 12:14:01 +00:00
Henry-E
b6ad53f628
provider.sendAll fetches transaction error logs ( #2302 )
...
Just like provider.sendAndConfirm
Co-authored-by: Tristyn <tristynstimpson@gmail.com>
Co-authored-by: henrye <henry@notanemail>
2022-12-06 12:05:38 +00:00
Henry-E
1bb1969d60
fix breaking change on null or undefined wallet ( #2303 )
...
Co-authored-by: henrye <henry@notanemail>
2022-12-06 12:05:12 +00:00
Nicholas Clarke
66e45327b9
Add optional flag to parseLogs to throw an error on decoding failure ( #2043 )
...
* Add optional flag to parseLogs to throw an error on decoding failure
* update changelog
Co-authored-by: henrye <henry@notanemail>
2022-12-05 15:50:46 +00:00
Lucas Steuernagel
0ba2195ec7
Add support for 256-bit integers in the IDL ( #2260 )
...
* Add support for 256-bit integers in the IDL
Signed-off-by: Lucas Steuernagel <lucas.tnagel@gmail.com>
* Fix lint warnings
Signed-off-by: Lucas Steuernagel <lucas.tnagel@gmail.com>
2022-12-05 15:45:07 +00:00
surfertas
50724df110
allow ability to pass in feePayer to Provider methods [WIP] ( #2186 )
...
* allow ability to pass in feePayer to Provider methods
* align comments
* prettier
* check if feePayer set, handle if not
* remove unnecessary spaces in comments
* update changelog
* strict equality check
* use null check
* use logical or
* use logical or
Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-05 12:45:27 +00:00
acheron
bbeffd58f7
Use @coral-xyz/borsh package ( #2299 )
2022-12-05 10:47:36 +00:00
Matthew Callens
2768112cef
update borsh package scripts ( #2292 )
2022-11-28 13:00:54 -05:00
Matthew Callens
fa2f18a2c0
update borsh package builds and config ( #2291 )
2022-11-28 12:54:49 -05:00
Henry-E
35f4e26ef8
add borsh + u256 changes + update to v0.2.6 ( #2290 )
...
Co-authored-by: henrye <henry@notanemail>
2022-11-28 12:20:13 -05:00
Jac0xb
1ec2b7dfcd
Implement functions to return associated context when fetching accounts. ( #2237 )
2022-11-22 10:54:37 +00:00
Proph3t
d441a3e6de
fix: allow ts to work with account names that have multiple uppercase chars in a row ( #2253 )
2022-11-22 10:51:07 +00:00
Luis Perrone
fb6508addf
Remove terser for react-native support ( #2263 )
...
Co-authored-by: Luis Perrone <perronef5@users.noreply.github.com>
2022-11-21 10:43:01 +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
Deep Mehta
e8618a588f
replace getRecentBlockhash to getLatestBlockhash ( #2205 )
2022-11-14 16:59:36 +00:00
Noah Prince
feff131ab0
fix: Nested pda types and account resolution for pdas ( #2259 )
2022-11-13 21:45:41 -05:00
Noah Prince
91a2b7ec96
fix: 0 is falsey for arg filling ( #2258 )
2022-11-13 08:33:04 -05:00
Totoro
8e66d5bb5f
Add support for idl enum tuples, enchance types ( #2185 )
2022-10-18 10:13:23 -04:00
Sammy Harris
5647510615
chore: bump @solana/web3.js in anchor-ts ( #2227 )
2022-10-13 23:06:51 -04:00
Noah Prince
52a7e1e278
bug: use program id from account, not idl, when resolving relations ( #2221 )
2022-10-11 12:44:41 -04: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
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
d929589013
feat: Recursively derive const pubkeys and add custom resolver export ( #2196 )
2022-09-22 12:26:13 -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