Commit Graph

363 Commits

Author SHA1 Message Date
Matthew Callens 5e13431aca
spl: update mpl metadata crate and add more wrappers (#2430)
* update mpl metadata crate and add more wrappers

* update changelog
2023-03-09 14:36:31 -05:00
Henry-E 16da5e9ce7
Update CHANGELOG.md (#2429) 2023-03-09 14:43:42 +00:00
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
Jon Cinque 06c42327d4
cli: Add arch option to use `build-sbf` or `build-bpf` (#2398) 2023-03-03 16:21:36 +00:00
Henry-E 45fa9bd3ba
Update Solana-program and rust-version (#2420) 2023-03-02 17:23:16 +00:00
Kyle Espinola 6f4f32a9c5
feat: add master edition account deserialization to spl metadata (#2393) 2023-02-27 17:29:13 +00:00
Matthew Callens 9044b9b8cd
spl: add spl token approve checked wrapper (#2401)
* add spl token approve checked wrapper

* update changelog
2023-02-21 02:49:07 -05:00
Marquelle Nesbitt 37cc99c2b6
Make the return type of `AccountClient.fetchMultiple` consistent (#2390) 2023-02-07 20:28:43 +00:00
Henry-E cfdaac11e6
changes from previous PR (#2391)
Co-authored-by: henrye <henry@notanemail>
2023-02-07 10:49:24 +00:00
nojob1 5099044bf4
add --skip-build option for verify command (#2387) 2023-02-07 10:49:07 +00:00
Jean Marchand (Exotic Markets) eef9888c82
lang: remove ConstraintLiteral (#2379) 2023-02-06 17:41:38 +00:00
Jean Marchand (Exotic Markets) c76641f861
lang: remove deprecated accounts (#2375) 2023-02-06 16:46:09 +00:00
Ruven Salamon 010b400669
cli: fixes bug where the wrong exit status is reported (#2370) 2023-02-06 12:29:06 +00:00
cavemanloverboy cd63049c40
add async_rpc method (#2322) 2023-02-06 12:19:43 +00:00
cavemanloverboy 020b6448e0
Multithreaded Client (#2321) 2023-02-06 12:13:54 +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
Christian Kamm ed2769ef28
Make zero copy safe by default, add `account(zero_copy(unsafe))` feature. (#2330) 2023-01-26 14:46:57 +00:00
Henry-E 2a05075760
Update IDL program (#2365) 2023-01-26 11:32:30 +00:00
Jean Marchand (Exotic Markets) a0ef4ed7a4
lang: add the InitSpace macro (#2346) 2023-01-26 11:22:48 +00:00
Jean Marchand (Exotic Markets) 5f9b5905dc
ts: remove duplicate functions (#2357) 2023-01-24 10:39:31 +00:00
Christian Kamm e3fe24f925
Simulate: Don't attempt to sign transaction (#2331) 2023-01-17 09:57:47 +00:00
Christian Kamm 27bb695685
Idl: Limit account size to 60kb, allow closing idl accounts (#2329) 2023-01-05 13:25:21 +00:00
Henry-E 11642929ac
Spl token transfer checked (#2353) 2023-01-05 10:02:36 +00:00
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