Skip to content

Commit

Permalink
[clap-v3-utils] Deprecate input validators and add parsers to replace…
Browse files Browse the repository at this point in the history
… them (solana-labs#33276)

* 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 <[email protected]>

* Update clap-v3-utils/src/input_parsers/mod.rs

Co-authored-by: Trent Nelson <[email protected]>

* 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 <[email protected]>
  • Loading branch information
samkim-crypto and t-nelson authored Sep 28, 2023
1 parent 25c27d4 commit ec36369
Show file tree
Hide file tree
Showing 5 changed files with 658 additions and 171 deletions.
Loading

0 comments on commit ec36369

Please sign in to comment.