solana/clap-v3-utils/src
samkim-crypto ec36369e47
[clap-v3-utils] Deprecate input validators and add parsers to replace them (#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 <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>
2023-09-28 07:03:41 -07:00
..
input_parsers [clap-v3-utils] Deprecate input validators and add parsers to replace them (#33276) 2023-09-28 07:03:41 -07:00
keygen [clap-v3-utils] Add replace deprecated `value_of` and `is_present` with `get_one` and `contains_id` (#33184) 2023-09-12 21:27:38 -07:00
fee_payer.rs
input_validators.rs [clap-v3-utils] Deprecate input validators and add parsers to replace them (#33276) 2023-09-28 07:03:41 -07:00
keypair.rs [clap-v3-utils] Add replace deprecated `value_of` and `is_present` with `get_one` and `contains_id` (#33184) 2023-09-12 21:27:38 -07:00
lib.rs [clap-v3-utils, keygen] Refactor mnemonics, derivation path, and argument parsing clap logic in keygen (#30977) 2023-05-13 14:30:03 +09:00
memo.rs
nonce.rs [clap-utils] Remove `--blockhash` arg as a strict requirement when passing `--nonce` (#30864) 2023-03-24 09:48:16 +09:00
offline.rs [clap-v3-utils] Deprecate input validators and add parsers to replace them (#33276) 2023-09-28 07:03:41 -07:00