Commit Graph

337 Commits

Author SHA1 Message Date
Christian Kamm a97d04ab06
Cli: Don't regenerate idl in read_all_programs() (#2332) 2022-12-23 13:28:35 +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 7236c8bb69
Add headings to changelog (#2333) 2022-12-21 11:24:33 +00:00
riordanp 8856aee7df
Allow passing env vars to verifiable build container (#2325) 2022-12-21 11:22:34 +00:00
Henry-E 4bef8c40ef
Switch to using @coral-xyz/anchor packages (#2318) 2022-12-16 13:21:50 +00:00
acheron ba5b55d7f0
Fix 0.26.0 CHANGELOG PR links (#2316) 2022-12-15 18:59:33 +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
Henry-E b00fe70d1b
add optional accounts to changelog (#2314)
* add optional accounts to changelog

* Update CHANGELOG.md
2022-12-14 20:15:57 +00:00
Henry-E f79f9dab74
Use less heap intensive error mapping (#2313)
* less heap intensive error mapping

* add changelog

* try returning the error

* dumb match statements instead

* missing commas

Co-authored-by: henrye <henry@notanemail>
2022-12-14 17:03:57 +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
Henry-E 03eff348db
only add public enums to the IDL (#2310)
Co-authored-by: henrye <henry@notanemail>
2022-12-12 16:10:47 +00:00
Petr Kozorezov 7527033c7b
Add 'ticks-per-slot' option passing to test validator (#1875)
* add 'ticks-per-slot' option passing to test validator

* add 'ticks-per-slot' option passing to test validator

* add 'ticks-per-slot' option passing to test validator

* cargo fmt and changelog

Co-authored-by: henrye <henry@notanemail>
2022-12-12 16:10:14 +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
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
Tommy Johnson c798821947
add geyser_plugin_config support for anchor localnet (#2016)
* add geyser_plugin_config support for anchor localnet

* run cargo fmt

* remove duplicate code that came from #2150

Co-authored-by: Tommy Johnson <tommy@psyoptions.io>
2022-12-06 21:15:48 +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
skrrb fb714b9343
fix anchor keys list command (#2063)
* fix anchor keys list command

* changelog

Co-authored-by: henrye <henry@notanemail>
2022-12-05 15:50:31 +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
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
cyphersnake a73bd728fb
lang: Add `Owner` & `Discriminator` implementation for ix structures (#2085)
lang: Add into `Discriminator` trait constant `DISCRIMINATOR`

So that during match instructions or other entities there is no explicit instruction call of `discriminator()`

lang: Add `Owner` impl to instructions

Co-authored-by: Mikhail Gorbachev <m.gorbachev@joinsprouttherapy.com>
2022-11-24 16:19:39 +00:00
Jean Marchand (Exotic Markets) b8cda8a717
cli: Allow custom cluster config (#2271)
* cli: Allow custom cluster config

* Update changelog

* Downgrade the code

* Fix rust fmt

Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-11-22 16:33:44 +00:00
Henry-E 5291a7b6ff
Update rust to v1.62 (#2272)
* update rust from v1.56 to v1.65

* remove unnecessary borrows to appease clippy

* stop clippy complaining for now

* use 1.64 instead because of CI stuff

* update CHANGLEOG

* just seeing if the cli version is affecting the available rust version

* ok, back to 1.62

Co-authored-by: henrye <henry@notanemail>
2022-11-22 16:13:45 +00:00
Jean Marchand (Exotic Markets) 8ce18c36db
spl: Update instructions and remove rent from constraints (#2265)
* Update spl instructions and remove the rent sys_var from constraints

* Fix initialize mint

* Update changelog and fix examples

* Remove oversights
2022-11-19 12:59:14 +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
Jean Marchand b107cbe94f
lang: Fix parsing for bytes literals in the IDL (#2261)
* lang: Fix parsing of some constants

* Fix lint + changelog
2022-11-16 15:59:09 +00:00
Sammy Harris fa1249836e
Feat: Update AccountsClose to be safe to call manually (#2209)
* fix other lints to make the test pass

(cherry picked from commit d6e43c1ed6a176caa60dfdabe406ec125c3d34cf)

* update close to make it safe to call manually

* fix test script

* re-add safety warnings for deprecated account types

* update close checking logic

* readd logic for deprecated methods

* add additional checks to account_loader in exit
2022-10-21 17:06:54 +01: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 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 436791b039
feat: Recursively derive seeds and add custom account resolver (#2194) 2022-09-21 16:32:24 -04:00
Matthew Callens f155996c3c
add wrappers for mpl `sign_metadata` and `remove_creator_verification` (#2175)
* add wrappers for mpl creator verification ix

* update changelog
2022-09-10 16:32:29 -04:00
Matthew Callens 4c24c5d7b1
add `update_primary_sale_happened_via_token` ix wrapper for `metadata` (#2173)
* add update_primary_sale_happened_via_token ix wrapper

* update changelog
2022-09-10 15:57:27 -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
surfertas 0c70d183ef
add freeze and thaw delegated account instructions (#2164) 2022-09-06 10:30:50 -04:00
Pierre 8ee4600785
feat: Use new canonical close account pattern (#2169) 2022-09-06 09:33:17 -04:00
acheron 5a025b949e
ts: Add SPL Anchor packages (#2143) 2022-08-22 21:57:56 -04:00
Sammy Harris 290b2aa43e
feat: constants declared in impl blocks in seeds (#2128) 2022-08-14 12:42:16 -04:00
Sammy Harris 3a0deba901
fix: IDL gen byte string lit parsing (#2125) 2022-08-13 22:57:59 -04:00
Kevin Rodríguez d3ee9b529a
spl: adding metadata account type (#2014) 2022-08-13 14:44:38 -04:00
Matthew Callens 000e74ed48
spl: add create metadata v3 and set collection size ix (#2119)
* add create metadata v3 and set collection size ix

* update changelog
2022-08-12 12:11:43 -04:00
Sammy Harris 68362aca58
feat: Adds transaction function to RequestBuilder (#1985) 2022-07-30 14:53:10 -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
Armani Ferrante 9b61bbc626
bump solana-program version (#2027) 2022-07-04 23:58:31 -04:00
Matthew Callens 85847445b3
fix changelog entry to be breaking (#2022) 2022-07-02 11:17:02 -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