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 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
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
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
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
dependabot[bot]
a59aa5f6f3
build(deps): bump terser from 5.12.1 to 5.14.2 in /ts ( #2136 )
2022-08-16 19:16:39 -04:00
dependabot[bot]
7bdbb03cbd
build(deps): bump minimist from 1.2.5 to 1.2.6 in /ts ( #2135 )
2022-08-16 19:16:24 -04:00
acheron
9457180a0a
ts: fix fetching all accounts when using a custom coder ( #2107 )
2022-08-12 14:06:14 -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
Matthew Callens
e67c50f914
ts: convert `EventParser.parseLogs` to a generator function ( #2018 )
2022-07-01 23:29:19 -04:00
Matthew Callens
2ad00678b6
ts: add `accountsStrict` for non-resolvable accounts input ( #2019 )
2022-07-01 18:26:09 -04:00
Italo Casas
a1bb494631
docs meta tags and registry url ( #2010 )
2022-06-28 18:01:14 -04:00
Sohrab
55e0c5d9dd
fix: align links to coral-xyz/anchor github repo ( #1988 )
2022-06-19 22:16:16 -04:00
Matthew Callens
179711bacc
ts: verbose error for missing `ANCHOR_WALLET` in `NodeWallet.local()` ( #1958 )
2022-06-10 09:54:06 -04:00
Anoushk Kharangate
8f7572e8af
ts: add alternative to rpc deprecated comments ( #1832 )
2022-06-09 12:16:07 -04:00
Daniel Marin
a5dbc7b850
ts: setup associated token program idl ( #1939 )
2022-06-01 14:51:44 -04:00
Vladimir Guguiev
d83fcbf7bc
ts: Add program.coder.types for encoding/decoding user-defined types ( #1931 )
2022-05-29 22:39:45 +02:00
dboures
f9c42f104b
ts: remove .rollup.cache when publishing npm package ( #1919 )
2022-05-26 17:17:57 +02:00
Daniel Marin
707ebf26e7
feat: Setup a coder for SystemProgram ( #1920 )
2022-05-26 13:03:44 +02:00
Sohrab
f866d073db
fix(ts/idl): export all IDL types ( #1918 )
2022-05-25 14:15:18 +02:00
Krešimir Klas
d3e9b5f05d
ts: add docs field to IdlAccoutDef and IdlTypeDef types ( #1915 )
2022-05-22 10:07:17 +02:00
Charlie You
90bbc8b6be
ts: Add tx signature to EventCallback ( #1851 )
2022-05-17 11:24:16 -04:00
Armani Ferrante
ef178e5217
token metadata and accounts resolver update ( #1896 )
2022-05-15 18:28:11 -04:00
Aximili
8ddc9f25a6
ts: Fix browser detection ( #1233 )
2022-05-04 11:06:09 -04:00
Armani Ferrante
ee14a884f7
ts: provider publicKey optional ( #1867 )
2022-05-03 10:45:42 -04:00
Victor Pontis
e6155dbc7d
Fix typo in instruction.ts ( #1862 )
2022-05-02 18:05:32 -04:00
Tommy Johnson
0011e22b91
add wallet publickey to Provider ( #1845 )
2022-04-28 18:23:20 -04:00
ebrightfield
ed15922f1a
Add docs field to idl ( #1561 )
2022-04-21 16:37:41 -04:00
Ian Macalinao
b18b7f7393
Add superstruct as a direct dependency ( #1802 )
2022-04-20 16:37:55 -04:00
Armani Ferrante
0b4c7b0c73
v0.24.2 ( #1788 )
2022-04-13 19:44:18 -04:00
Armani Ferrante
d491f0ba1d
v0.24.1 ( #1779 )
2022-04-12 18:50:33 -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
537d470954
ts: make `Provider` an interface, add `AnchorProvider` class, and update provider functions ( #1707 )
2022-04-11 15:48:58 -04:00
Krešimir Klas
12f6541486
ts: export error types ( #1756 )
2022-04-11 11:25:59 -04:00
DFL Zeke
7d611ac46f
ts: fix program upgrade event crashes existing listeners ( #1757 )
2022-04-11 09:38:43 -04:00
Armani Ferrante
032525c212
ts: use modern gma api ( #1753 )
2022-04-10 16:05:52 -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
Armani Ferrante
a89d2468d0
Revert "ts: Add data type to clients in `AccountNamespace` ( #1358 )" ( #1739 )
2022-04-06 15:39:41 -04:00
Harshal Sheth
423223d5bf
ts: Add data type to clients in `AccountNamespace` ( #1358 )
2022-04-06 13:16:20 -04:00
Tom Linton
8fb942efd5
ts: Add views ( #1695 )
2022-04-03 19:15:06 -04:00
matias-la
3e0f641c66
ts: remove find^0.3.0 unused dependency ( #1709 )
2022-03-30 22:35:13 -04:00
Pierre
237dbbe42e
Add coption to DecodeType ( #1699 )
2022-03-30 21:43:29 -04:00
Tom Linton
1cb7429fe2
lang: Allow CPI return values ( #1598 )
2022-03-24 14:40:38 -04:00
Krešimir Klas
946fa23538
ts: fix type for accounts field in Idl ( #1542 )
2022-03-22 21:43:51 -04:00
Paul
4b4b8007fb
update lockfiles ( #1662 )
2022-03-21 00:47:56 -04:00
Armani Ferrante
e66c0466b6
fix typedoc version ( #1661 )
2022-03-20 23:51:28 -04:00
Armani Ferrante
77b1afcf2f
v0.23.0 ( #1660 )
2022-03-20 23:30:55 -04:00
Paul
9afdb17ac2
ts: add error log parsing to ts client ( #1640 )
2022-03-20 20:29:12 -04:00
robert-balcerowicz
1c7139a9e3
ts: Use return value of `wallet.signTransaction` in `provider.ts` ( #1527 )
2022-03-20 14:11:41 -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
Matthew Callens
b376fd4615
lang: add additional `require_x` comparison macros ( #1622 )
2022-03-16 14:45:09 -04:00
Paul
3b0006b3ce
use sol_log_data for logging events ( #1608 )
2022-03-16 14:28:19 -04:00
Paul
721fe6693c
lang: add support for logging expected and actual values and pubkeys ( #1572 )
2022-03-15 11:42:17 -04:00
Armani Ferrante
b149fc522a
ts: add provider parameter to spl token client ( #1597 )
2022-03-10 22:43:33 -05:00
Matthew Callens
eee75ab07a
ts: fix methods builder `.accounts` requiring global programs ( #1548 )
2022-03-03 22:42:45 -05:00
Matthew Callens
80be42803d
ts: fix methods namespace typing loss and deprecate non-methods namespaces ( #1539 )
2022-03-01 19:26:32 -05:00
Matthew Callens
a78c9c0341
lang: add sysvar custom error and failing test case ( #1535 )
2022-03-01 11:33:18 -05:00
Totoro
9c49e7642d
ts: fix formatIdlData for option defined type ( #1439 )
2022-02-28 12:15:54 -05:00
Armani Ferrante
b733610d87
v0.22.1 ( #1528 )
2022-02-28 11:35:59 -05:00
Armani Ferrante
24ccaea903
v0.22.0 ( #1484 )
2022-02-20 20:32:38 -05:00
Paul
40596824bf
error redesign ( #1462 )
2022-02-20 17:28:24 -05:00
Pavel Kuzovkin
90bcea1cbe
lang, ts: float types support ( #1425 )
2022-02-17 14:23:21 -05:00
Paul
1f56a62bab
lang: add check that declared id == program id ( #1451 )
2022-02-15 18:16:06 -05:00
tuphan-dn
40379eb21f
ts: update SPL IDL ( #1450 )
2022-02-14 21:28:39 -05:00
Daniel Marin
3838bdeaf0
ts: allow nullable types for option fields ( #1428 )
2022-02-10 09:46:44 -05:00
Krešimir Klas
580167a1b0
ts: add metadata field to Idl type ( #1422 )
2022-02-09 16:51:39 -05:00