Greg Fitzgerald
eab4fe50a3
Use types for CLI value names ( #8878 )
...
* Use types for CLI value names
* keygen too
* More cleanup
* nonce keypair -> pubkey
2020-03-16 09:24:59 -06:00
Tyera Eulberg
5c2cf04e10
Enable any signer in various cli subcommands ( #8844 )
...
automerge
2020-03-13 16:06:33 -07:00
Sunny Gleason
96a61cc4e4
Cli: add subcommand to withdraw from vote account ( #8550 )
...
* feat: cli command for vote account withdraw
* Rework names
* Update to flexible signer, and make consistent with other cli apis
* Add integration test
* Clean up default help msg
Co-authored-by: Michael Vines <mvines@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-03-13 14:30:04 -06:00
Trent Nelson
fbf2dd1672
CLI: Error message cleanup ( #8804 )
...
automerge
2020-03-12 23:20:49 -07:00
Jack May
6eb4973780
Don't use move semantics if not needed ( #8793 )
2020-03-11 14:37:23 -07:00
Trent Nelson
0422af2aae
CLI: Plumb nonce-stored fees ( #8750 )
...
automerge
2020-03-11 11:14:15 -07:00
Michael Vines
775ce3a03f
Permit fee-payer/split-stake accounts to be the same when using --seed
2020-03-10 16:12:02 -07:00
Greg Fitzgerald
97b6c41d42
Fix typos in error messages ( #8726 )
...
automerge
2020-03-09 10:12:42 -07:00
Tyera Eulberg
8dc4724340
Allow stake lockup fields to be updated independently ( #8568 )
...
* Make Lockup fields optional for SetLockup instruction
* Use LockupArgs in cli
* Include lockup timestamp in stake-account print
2020-03-02 12:28:43 -08:00
Tyera Eulberg
12a9b5f35e
CLI: collect and deduplicate signers ( #8398 )
...
* Rename (keypair util is not a thing)
* Add method to generate_unique_signers
* Cli: refactor signer handling and remote-wallet init
* Fixup unit tests
* Fixup intergation tests
* Update keypair path print statement
* Remove &None
* Use deterministic key in test
* Retain storage-account as index
* Make signer index-handling less brittle
* Cache pubkey on RemoteKeypair::new
* Make signer_of consistent + return pubkey
* Remove &matches double references
* Nonce authorities need special handling
2020-02-24 17:03:30 -07:00
Trent Nelson
9dcb965959
Reinstate `create-stale-account` w/ seed test ( #8401 )
...
automerge
2020-02-22 08:54:29 -08:00
Tyera Eulberg
4ddbf8d509
CLI: dynamic signing reboot ( #8384 )
...
* Add keypair_util_from_path helper
* Cli: impl config.keypair as a trait object
* SDK: Add Debug and PartialEq for dyn Signer
* ClapUtils: Arg parsing from pubkey+signers to Presigner
* Impl Signers for &dyn Signer collections
* CLI: Add helper for getting signers from args
* CLI: Replace SigningAuthority with Signer trait-objs
* CLI: Drop disused signers command field
* CLI: Drop redundant tests
* Add clap validator that handles all current signer types
* clap_utils: Factor Presigner resolution to helper
* SDK: `From` for boxing Signer implementors to trait objects
* SDK: Derive `Clone` for `Presigner`
* Remove panic
* Cli: dedup signers in transfer for remote-wallet ergonomics
* Update docs vis-a-vis ASK changes
* Cli: update transaction types to use new dynamic-signer methods
* CLI: Fix tests No. 1
what to do about write_keypair outstanding
* Work around `CliConfig`'s signer not necessarily being a `Keypair`
* CLI: Fix tests No. 2
* Remove unused arg
* Remove unused methods
* Move offline arg constants upstream
* Make cli signing fallible
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2020-02-21 14:55:53 -07:00
Tyera Eulberg
ab361a8073
Rename KeypairUtil to Signer ( #8360 )
...
automerge
2020-02-20 13:28:55 -08:00
Tyera Eulberg
b997d3eb4e
Cli: Remove units from various subcommands ( #8301 )
...
* Cli: Remove unit arg from various subcommands
* Update book usage page
* Update scripts and docs
2020-02-15 12:53:52 -07:00
Trent Nelson
cb7117beac
CLI: Offline-ify remaining stake ops ( #8257 )
...
automerge
2020-02-12 22:00:28 -08:00
Tyera Eulberg
6309c97697
Add CliCommand::StakeSetLockup ( #8248 )
...
automerge
2020-02-12 15:36:29 -08:00
Trent Nelson
1528959327
CLI: Add fee-payer parame to stake-split subcommand ( #8201 )
...
automerge
2020-02-10 23:23:54 -08:00
Trent Nelson
fc15f74c3c
CLI: Harden offline signing and tests ( #8052 )
...
* CLI: Don't sanity-check stake account when offline
* Add test helper returning vote pubkey with validator
* Delegate to the BSL. No need to force
* Be sure our offline ops are truly offline
* Specify our authorities correctly
* checks
2020-02-10 18:59:05 -07:00
Trent Nelson
5b070ad014
CLI: Support offline fee payers ( #8009 )
...
* CLI: Support offline fee-payer
* Add some knobs to test genesis/validator helpers
* Add tests
2020-02-07 09:14:26 -07:00
Tyera Eulberg
3db159f616
CLI cosmetic: make config get and verbose prints consistent ( #8119 )
...
* CLI cosmetic: make config get and verbose prints consistent
* Make print format consistent across cli
2020-02-05 11:14:44 -07:00
Michael Vines
4f85481a2b
Add split-stake command
2020-02-03 11:14:08 -07:00
Trent Nelson
dc2888c9a3
CLI: De-replicode SigningAuthority instatiation ( #8076 )
...
automerge
2020-01-31 16:30:37 -08:00
Trent Nelson
9739be9ecf
CLI: Fix stake-account auth withdrawer output ( #8071 )
...
automerge
2020-01-31 14:25:05 -08:00
Michael Vines
7d96510d17
Fix stake-account subcommand name
2020-01-31 12:09:41 -07:00
Trent Nelson
966d077431
CLI: Disallow blockhash/fee-calc lookups when offline ( #7981 )
...
* CLI: Add BlockhashSpec to tighten control over --blockhash
* Use BlockhashSpec
* Add a matches-free constructor
* More descriptive naming
2020-01-30 09:21:32 -07:00
Trent Nelson
14a72b0fc0
CLI: --sign-only and --signer require --blockhash ( #7982 )
2020-01-26 10:06:21 -07:00
Trent Nelson
c13ab9f14e
CLI: Consolidate offline arg declarations ( #7979 )
...
automerge
2020-01-26 00:27:24 -08:00
Jack May
c95e5346a4
Boot the mut ( #7926 )
2020-01-22 17:54:06 -08:00
Rob Walker
1e2b55c0d7
Remove RedeemVoteCredits ( #7916 )
...
* Move redeem_vote_credits into runtime
* Move redeem_vote_credits into runtime
* Remove RedeemVoteCredits
* chugga for less indentation
* resurrect NoCreditsToRedeem
* fixup
2020-01-22 16:53:42 -08:00
Trent Nelson
3a0d13aa77
CLI: Cleanup authority arg usage inconsistencies ( #7922 )
...
automerge
2020-01-22 11:19:07 -08:00
Trent Nelson
d854e90c23
CLI: Support offline authorities ( #7905 )
2020-01-22 10:10:22 -07:00
Michael Vines
356f246a74
Remove get-/show- prefix from cli commands
2020-01-21 08:43:07 -07:00
Michael Vines
a32de96ab1
Add show-stakes subcommand
2020-01-17 14:14:01 -07:00
Trent Nelson
0de35fdd1f
CLI: Support offline and nonced stake subcommands ( #7831 )
...
* Support durable nonce for staker-authorize-*
* CLI: Factor out sign-only reply parsing to helper
* Support offline signing for staker-authorize-*
2020-01-17 10:30:56 -07:00
Trent Nelson
8ffccfbaff
CLI: Plumb stake authorities throughout ( #7822 )
...
automerge
2020-01-15 13:32:06 -08:00
Justin Starry
bcd072c5e8
Clarify account creation error messages in CLI ( #7719 )
...
* Clarify account creation error messages in CLI
* feedback
* Fix rebase
2020-01-10 12:25:07 +08:00
Rob Walker
6775e83420
Add create with seed to cli ( #7713 )
...
* Add create with seed to cli
* nonce and vote, too
2020-01-09 15:22:48 -08:00
Michael Vines
4b3bc587ab
Add input validation for --creation-time/--lockup-date args ( #7646 )
...
automerge
2019-12-30 21:57:47 -08:00
Justin Starry
44e45aa090
Support nonced transactions in the CLI ( #7624 )
...
* Support nonced transactions in the CLI
* Update nonce.rs
2019-12-27 14:35:49 -06:00
Rob Walker
a7040896f0
Update to rust 1.40.0 ( #7572 )
...
* Update to rust 1.40.0
* fixups
2019-12-19 23:27:54 -08:00
Rob Walker
3f405d8908
Add unix_timestap to stake lockups ( #7569 )
2019-12-19 14:37:47 -08:00
Rob Walker
f05860672c
Add create-address-with-seed to solana-cli ( #7472 )
...
* Add create account with seed to cli
* clippy
* fixup
2019-12-14 04:38:24 -08:00
Tyera Eulberg
11521dca08
Use is_amount clap validator ( #7400 )
...
* Fix up is_amount to handle floats for SOL; expand amount_of test
* Use required_lamports_from and is_amount across CLI
* Remove obsolete test (now handled by clap)
2019-12-10 11:29:17 -07:00
Michael Vines
7879fa5095
Better space out show-stake-history columns
2019-12-10 09:19:58 -07:00
Jack May
19ecce1e32
Fix offline stakes payer ( #7385 )
2019-12-09 23:11:04 -08:00
Jack May
bd099e2f4d
Fix spelling ( #7186 )
2019-12-02 10:56:01 -08:00
Jack May
88cb0c6ae3
Add offline signing support to CLI ( #7104 )
2019-11-25 21:09:57 -08:00
Rob Walker
ef64f00cbb
Revert "Revert "add genesis stake placeholders ( #6969 )" ( #7109 )" ( #7124 )
...
This reverts commit 702f7cc51d
.
2019-11-25 15:11:55 -08:00
Rob Walker
acbe89a159
shrink stakes ( #7122 )
2019-11-25 13:14:32 -08:00
anatoly yakovenko
702f7cc51d
Revert "add genesis stake placeholders ( #6969 )" ( #7109 )
...
* Revert "add genesis stake placeholders (#6969 )"
This reverts commit 8a879faac7
.
* fixup! Revert "add genesis stake placeholders (#6969 )"
* fixup! fixup! Revert "add genesis stake placeholders (#6969 )"
* fixup! fixup! fixup! Revert "add genesis stake placeholders (#6969 )"
* fixup! fixup! fixup! fixup! Revert "add genesis stake placeholders (#6969 )"
* fmt
2019-11-23 23:15:21 -07:00
Justin Starry
b8cd0a1bc0
Allow secure keypair input for `solana-archiver` and `solana` cli tools ( #7106 )
...
* Add seed phrase keypair recover to archiver
* Add seed phrase keypair to cli with ASK keyword
* cli main tweaks
2019-11-23 11:55:43 -05:00
Ryo Onodera
c8166aed97
Correctly indicate genesis activation_epoch ( #7091 )
...
* Correctly indicate genesis activation_epoch
* Drop the '(Genesis)'
2019-11-22 15:35:02 +09:00
Rob Walker
8a879faac7
add genesis stake placeholders ( #6969 )
...
* add investor stake placeholders
fixups
fixups
review comments, fixups
make more data-looky for easier management
rent may be zero
rework with more tables, derived keys
fixups
rebase-fix
fixups
fixups
* genesis is now too big to boot in 10 seconds
2019-11-21 12:05:31 -08:00
Jack May
d184d3a732
Merge native programs parts into one unit ( #7047 )
2019-11-20 10:12:43 -08:00
Ryo Onodera
d84f367317
Extract duplicate clap helpers into clap-utils ( #6812 )
2019-11-12 09:42:08 +09:00
Michael Vines
efdfc5c327
Remove TODOs ( #6843 )
2019-11-08 16:43:18 -07:00
Parth
5bd05fba09
require `to` account signature ( #6658 )
...
* require to signature
* fixing invocation to create_account
* fix create_account references
* address review comment
* whacking bugs in tests
* fixing stake program tests
2019-11-08 15:57:35 +05:30
Rob Walker
b64b54f48f
unfork dalek ed25519 ( #6776 )
2019-11-07 17:08:10 -08:00
Parth
dc3988eff8
CLI changes required for `to` account signing ( #6678 )
...
* CLI changes draft
* use tempfile
* remove un-necessary error handling
* use keypair instead of pubkey
2019-11-06 20:17:34 +05:30
Rob Walker
efe260f12e
sysvar trait ( #6667 )
...
* sysvar trait
* get the new guy in on it
2019-11-04 12:31:24 -08:00
Rob Walker
bc88180058
stake split ( #6402 )
...
* stake split
* stake split
2019-10-31 11:07:27 -07:00
Justin Starry
0cfa3d3de7
Return error if stake history deser fails in cli ( #6559 )
2019-10-25 16:44:09 -05:00
Justin Starry
71ff269780
Add show-stake-history command to cli ( #6541 )
2019-10-25 12:20:08 -04:00
Tyera Eulberg
8319fa05d0
solana-cli: selectively require keypair ( #6477 )
...
* Make parse_command consistent
* Strip pubkey out of parse_stake_create_account
* Move validator-info args into module
* Strip pubkey out of parse_validator_info_command
* Strip pubkey out of parse_vote_create_account
* Strip pubkey out of balance parsing
* Strip pubkey out of parse pay
* Only verify keypair existence if command requires it
* Use struct instead of tuple
2019-10-21 17:08:09 -06:00
Tyera Eulberg
785c2574cd
Check that transaction fee-payer is a debitable account ( #6454 )
...
automerge
2019-10-18 20:39:05 -07:00
Tyera Eulberg
79987e788e
Remove vote pubkey from deactivate_stake ( #6257 )
...
* Remove vote pubkey from deactivate_stake
* Fix test
* Update docs
2019-10-07 16:07:01 -06:00
Tyera Eulberg
9c9754fa0f
Cli refactor: rename wallet to cli ( #6243 )
...
* Rename Wallet structs to Cli
* Rename wallet to cli more broadly
* Update to cli/config.yml, and update docs
2019-10-04 16:13:21 -06:00
Michael Vines
f9f5bc2eb5
More clippy
2019-10-02 21:21:07 -07:00
Rob Walker
214c041bf7
cli code review ( #6183 )
2019-10-01 10:34:45 -07:00
Parth
2c8c2029d8
cli: enforce rent-exemption balance for stake, vote and program accounts in cli ( #6118 )
...
* require minimum balance for stake, vote and program accounts
2019-10-01 01:14:49 +05:30
Rob Walker
4f4618441c
split wallet staking commands ( #6168 )
...
* split wallet staking commands
* elide real home
* unit->UNIT for usage
* unit->UNIT, don't try to run SUBCOMMANDS: ;)
* more fixup
* fixups
* actually check
* shellcheck
* preserve #6158 after rebase
* fixup
* test
* too hard
* remove test
2019-09-29 21:18:15 -07:00