solana/client/src
Tyera Eulberg ed53a70b5c
Cli: transfer ALL; check spend+fee in client (#10012)
* lamports->SOL in user-facing error msg

* Check for sufficient balance for spend and fee

* Add ALL option to solana transfer

* Rework TransferAmount to check for sign_only in parse

* Refactor TransferAmount & fee-check handling to be more general

* Add addl checks mechanism

* Move checks out of cli.rs

* Rename to SpendAmount to be more general & move

* Impl ALL/spend helpers for create-nonce-account

* Impl spend helpers for create-vote-account

* Impl ALL/spend helpers for create-stake-account

* Impl spend helpers for ping

* Impl ALL/spend helpers for pay

* Impl spend helpers for validator-info

* Remove unused fns

* Remove retry_get_balance

* Add a couple unit tests

* Rework send_util fn signatures
2020-05-14 12:24:14 -06:00
..
client_error.rs Remove RpcClient code duplication (#9952) 2020-05-10 08:51:53 -07:00
generic_rpc_client_request.rs Remove RpcClient code duplication (#9952) 2020-05-10 08:51:53 -07:00
lib.rs Rpc: optionally filter getLargestAccounts by circulating/nonCirculating (#10007) 2020-05-12 21:05:05 -06:00
mock_rpc_client_request.rs Cli: transfer ALL; check spend+fee in client (#10012) 2020-05-14 12:24:14 -06:00
perf_utils.rs Use rooted bank by default in rpc bank selection (#6759) 2019-11-06 14:15:00 -07:00
pubsub_client.rs feat: implementation of live-slots command (#8129) 2020-02-06 14:16:30 -05:00
rpc_client.rs Cli: transfer ALL; check spend+fee in client (#10012) 2020-05-14 12:24:14 -06:00
rpc_client_request.rs Remove RpcClient code duplication (#9952) 2020-05-10 08:51:53 -07:00
rpc_config.rs Rpc: optionally filter getLargestAccounts by circulating/nonCirculating (#10007) 2020-05-12 21:05:05 -06:00
rpc_request.rs Rpc: optionally filter getLargestAccounts by circulating/nonCirculating (#10007) 2020-05-12 21:05:05 -06:00
rpc_response.rs Remove hash field from account (#9915) 2020-05-12 23:39:46 +08:00
thin_client.rs RpcClient now returns Signatures instead of Strings (#9129) 2020-03-27 15:46:00 -07:00