These options are now disallowed on the command line for
solana-validator and solana-ledger-tool, which effectively means no more
snapshots will be created with this types in normal usecases. However,
support for reading the deprecated types is still in place.
* transaction-status: Remove `convert_pubkey`
Ran `git g -l convert_pubkey | xargs sed -i'' -re 's/convert_pubkey\(([^)]+)\)/\1/g'`
* Remove convert_compiled_instruction
Ran `git g -l convert_compiled_instruction | xargs sed -i'' -re 's/convert_compiled_instruction\(([^)]+)\)/\1/g'`
* Cleanup + clippy
* Remove instruction conversions in new extensions
* Run clippy --fix
* token: Update to 4.0.0
* token-2022: Bump and support new account and instruction types
* Update token-2022 in fetch_spl / program-test
* Fixup downstream uses
* Mint and destination were flipped in 0.9.0
* Don't use `convert_pubkey`
* Bump spl dependencies to versions which avoid recompilations
* add tests for validating `Pubkey` and `Hash`
* add pubkey signature parser
* add parsers for straightforward validators
* add parser for token amounts
* add parser for derivation and seeds
* resolve warnings from deprecations in clap-v3-utils
* remove some deprecated functions from `solana_keygen`
* refactor signer related input parsers into a submodule
* fix deprecation notice for utl
* refactor parsers in `input_validators` to `input_parsers`
* cargo fmt
* Apply suggestions from code review
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update clap-v3-utils/src/input_parsers/mod.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* mionr fixes to build
* add deprecation notice for old `input_parsers::signer` functions
* update `UiTokenAmount` to `Amount`
* refactor to-be-deprecated functions back to `input_parsers/mod.rs
* fmt
---------
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* hash_dedup vec algo
* reviews
* reviews
* more reviews
* simplify working_set init with add_next_item
* refactor to remove special case "new" from add_item.
The new change is that, even the new item is the new min, it will still be added to working_set.
This change will make init working_set code simpler and the loop loop check simpler.
Since the item is inserted in at the end of the vector, the cost of push into and pop from the working will be O(1), shouldn't affect performance much.
* comments
* refactor unnamed tuple in working set to SlotGroupPointer type
* use SlotGroupPointer in ItemLocation
* Add Copy traits to avoid explicty call of clone on SlotGroupPointer
* consume next in add_next_item fn (credit to jeff).
note that the old code is still correct, since before call to
add_next_item, we will have already overwritten `next` to correct value.
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
* docs: add direct link to StackExchange from the On-Chain Programs docs
* Update link to Discord.
Co-authored-by: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com>
---------
Co-authored-by: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com>
#### Problem
The TieredStorageFormat field in the TieredStorage is only used in the write path.
#### Summary of Changes
This PR simplifies the handling of TieredStorageFormat by removing its field from
TieredStorage struct but passing via write_accounts().
* fix stake deactivation in the same epoch after redelegation bug
add tests
refactor common code into fn
avoid early return
add feature gate for the new stake redelegate behavior
move stake tests out of cli
add stake-program-test crate
reimplemnt stake test with program-test
remove stake-program-test crate
reviews
add setup.rs
remove clippy
reveiws
* reviews
* review comments
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
* Separate simple-vote transaction cost from non-vote transaction cost
* remove is_simple_vote flag from transaction UsageCostDetails
* update test and comment
* set static usage cost for SimpleVote transaction