solana/sdk/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
..
nonce Store FeeCalculator with blockhash in nonce accounts (#8650) 2020-03-05 07:40:26 -07:00
sysvar SDK: Allow `RecentBlockhashes` to hold the entire `BlockhashQueue` (#8632) 2020-03-05 11:03:21 -08:00
account.rs Remove hash field from account (#9915) 2020-05-12 23:39:46 +08:00
account_info.rs Expose executable and rent_epoch in AccountInfo (#8619) 2020-03-04 10:52:09 -08:00
account_utils.rs Cleanup SDK use syntax (#8004) 2020-01-28 16:11:22 -08:00
bpf_loader.rs
client.rs CLI: Error message cleanup (#8804) 2020-03-12 23:20:49 -07:00
clock.rs Introduce eager rent collection (#9527) 2020-05-13 16:22:14 +09:00
commitment_config.rs Add commitment Root variant, and add fleshed out --commitment arg to Cli (#9806) 2020-04-29 21:55:33 -07:00
entrypoint.rs Expose executable and rent_epoch in AccountInfo (#8619) 2020-03-04 10:52:09 -08:00
entrypoint_native.rs Programs can only sign their accounts 2020-05-11 09:06:05 -07:00
epoch_schedule.rs Determine vote_state ahead of time (#8303) 2020-02-24 19:27:04 -08:00
fee_calculator.rs Don't use move semantics if not needed (#8793) 2020-03-11 14:37:23 -07:00
genesis_config.rs Make default programs static (#9717) 2020-04-27 21:05:12 -07:00
hard_forks.rs Move shred_version module to sdk/ 2020-02-24 14:46:12 -07:00
hash.rs Introduce eager rent collection (#9527) 2020-05-13 16:22:14 +09:00
incinerator.rs Add incinerator sysvar (#9815) 2020-04-30 22:04:08 -07:00
inflation.rs Fix Rpc inconsistencies (#7826) 2020-01-15 15:33:53 -07:00
instruction.rs thiserror, docs, remove general Failure case (#9741) 2020-04-29 18:12:51 -07:00
lib.rs Rpc: Add getCirculatingSupply endpoint, redux (#9953) 2020-05-09 12:05:29 -06:00
loader_instruction.rs Cleanup SDK use syntax (#8004) 2020-01-28 16:11:22 -08:00
log.rs Add account accessor functions (#7966) 2020-01-24 14:34:59 -08:00
message.rs Put empty accounts in the accounts list on load (#9840) 2020-05-01 17:23:33 -07:00
move_loader.rs Revert "Add native loader entry points (#9275)" Breaks genesis_config abi (#9377) 2020-04-08 14:36:18 -07:00
native_loader.rs Remove hash field from account (#9915) 2020-05-12 23:39:46 +08:00
native_token.rs Make sol-to-lamport const name more clear (#7641) 2019-12-30 11:28:41 -08:00
packet.rs Cleanup SDK use syntax (#8004) 2020-01-28 16:11:22 -08:00
poh_config.rs
program.rs Add Cross-program invocations (#9582) 2020-04-28 14:33:56 -07:00
program_error.rs Nit: ProgramError cleanup (#9273) 2020-04-02 17:46:51 -07:00
program_utils.rs Rename program_utils.rs (#8127) 2020-02-05 12:48:30 -08:00
pubkey.rs Input values are not sanitized after they are deserialized, making it far too easy for Leo to earn SOL (#9706) 2020-04-27 11:06:00 -07:00
rent.rs show rent model (#7410) 2019-12-10 14:50:55 -08:00
rpc_port.rs
sanitize.rs thiserror, docs, remove general Failure case (#9741) 2020-04-29 18:12:51 -07:00
short_vec.rs Cleanup SDK use syntax (#8004) 2020-01-28 16:11:22 -08:00
shred_version.rs Move shred_version module to sdk/ 2020-02-24 14:46:12 -07:00
signature.rs Update dalek version 2020-04-28 21:02:47 -06:00
signers.rs Clean up `use` to keep rust 1.43.0 from complaining (#9740) 2020-04-27 16:54:11 -07:00
slot_hashes.rs Fix slot_hashes documentation 2020-02-06 10:06:16 -07:00
slot_history.rs Add slot_history for slashing (#7589) 2019-12-23 12:23:45 -08:00
stake_history.rs Remove support for stake redelegation (#7995) 2020-01-29 17:59:14 -08:00
system_instruction.rs Cli: transfer ALL; check spend+fee in client (#10012) 2020-05-14 12:24:14 -06:00
system_program.rs Make default programs static (#9717) 2020-04-27 21:05:12 -07:00
system_transaction.rs One less alloc per transaction (#9705) 2020-04-24 13:03:46 -06:00
timing.rs Upgrade to Rust 1.41.1 2020-02-28 10:10:42 -07:00
transaction.rs Fuzzer test and fixes (#9853) 2020-05-02 08:07:52 -07:00
transport.rs CLI: Error message cleanup (#8804) 2020-03-12 23:20:49 -07:00