Michael Vines
6677996369
Add first-available-block command
2020-09-06 12:45:32 -07:00
Michael Vines
2332dd774f
Add --show-transactions flag to transaction-history command
2020-09-05 08:45:49 -07:00
Tyera Eulberg
39246f9dd7
Revert signature-notification format change ( #12032 )
...
* Use untagged RpcSignatureResult enum to avoid breaking downstream consumers of current signature subscriptions
* Clean up client duplication
* Clippy
2020-09-03 18:14:45 -06:00
Tyera Eulberg
6234909373
Fix use-deprecated-loader arg ( #11921 )
2020-08-31 08:41:00 +00:00
Michael Vines
b660704faa
Allow the sendTransaction preflight commitment level to be configured
2020-08-22 08:19:50 -07:00
Michael Vines
de736e00ad
Add (hidden) --use-deprecated-loader flag to `solana deploy`
2020-08-17 19:57:44 -07:00
Michael Vines
adc984a225
Rename Binary64 to Base64. Establish Base58 encoding
2020-08-17 17:26:29 -07:00
Michael Vines
757e147b3b
Rework UiAccountData encode/decode such that it works from Rust
2020-08-17 17:26:29 -07:00
Michael Vines
2ebc68a9e2
decode-transaction now supports binary64
2020-08-17 17:26:29 -07:00
Michael Vines
b5f3ced860
Add base64 (binary64) encoding for getConfirmedTransaction/getConfirmedBlock
2020-08-17 17:26:29 -07:00
Tyera Eulberg
6c5b8f324a
Rpc: Add until parameter for getConfirmedSignaturesForAddress2 ( #11644 )
...
* Refactor bigtable apis to accept start and end keys
* Make helper fn to deserialize cell data
* Refactor get_confirmed_signatures_for_address to use get_row_data range
* Add until param to get_confirmed_signatures_for_address
* Add until param to blockstore api
* Plumb until through client/cli
* Simplify client params
2020-08-15 10:42:17 -06:00
Tyera Eulberg
c0d6761f63
Fix solana CLI deploy ( #11520 )
...
* Refresh blockhash for program writes and finalize transactions
* Refactor to use current api, eliminating an rpc call
* Review comment
2020-08-11 02:42:29 -06:00
Tyera Eulberg
88ca04dbdb
Add config param to specify offset/length for single and program account info ( #11515 )
...
* Add config param to specify dataSlice for account info and program accounts
* Use match instead of if
2020-08-10 22:35:29 +00:00
Michael Vines
a4f5f3e978
account subcommand now requests binary64
2020-08-09 21:10:49 +00:00
Tyera Eulberg
a9f76862fb
Decode native-program and sysvar accounts ( #11463 )
...
* Pass pubkey in to account-decoder for sysvars
* Decode sysvar accounts
* Decode config accounts; move validator-info lower
* Decode stake accounts
* Review comments
* Stringify any account lamports and epochs that can be set to u64::MAX
2020-08-09 07:50:45 +00:00
sakridge
068d23f298
Add Binary64 option for account data ( #11474 )
...
* Add Binary64 option for account data
* Decode into binary64
* Reword docs
2020-08-08 22:40:13 -07:00
Greg Fitzgerald
edadd5d6d5
Remove Budget from CLI ( #11451 )
...
* Remove support for Budget
Also:
* Make "pay" command a deprecated alias for the "transfer" command
* chore: remove budget from web3.js
* Drop Budget depedency from core
Validators no longer ship with builtin Budget
2020-08-07 16:01:51 -06:00
Tyera Eulberg
b7c2681903
Token Accounts: return ui_amount, decimals with decoded account ( #11407 )
...
* Return ui_amount, decimals from token client methods
* Return ui_amount, decimals in RPC jsonParsed token accounts
* Fixup docs
* Return ui_amount, decimals in pubsub jsonParsed token accounts
* Remove unnecessary duplicate struct
* StringAmount rename
2020-08-07 11:37:39 -06:00
Michael Vines
9abb7db5f8
Upgrade help description
2020-08-05 23:04:16 -07:00
Michael Vines
02c0981ecf
Rename startAfter to before
2020-08-05 14:33:14 -07:00
Michael Vines
087fd32ce3
Reimplement transaction-history command with getConfirmedSignaturesForAddress2
2020-08-05 14:33:14 -07:00
Trent Nelson
e12ab9d0dd
Bump version to 1.4.0
2020-08-05 12:04:15 -06:00
Greg Fitzgerald
61d9d219f9
Withdraw authority no longer implies a custodian ( #11302 )
...
* Withdraw authority no longer implies a custodian
Before this change, if the withdraw authority and custodian had
the same public key, then a withdraw authority signature would
imply a custodian signature and lockup would be not be enforced.
After this change, the client's withdraw instruction must
explictly reference a custodian account in its optional sixth
account argument.
Likewise, the fee-payer no longer implies either a withdraw
authority or custodian.
* Fix test
The test was configuring the stake account with the fee-payer as
the withdraw authority, but then passing in a different key to
the withdraw instruction's withdraw authority parameter. It only
worked because the second transaction was signed by the fee-payer.
2020-07-31 13:37:53 -06:00
Trent Nelson
6f7e121b68
CLI: Add arg to adjust RPC timeout
2020-07-23 22:29:40 +00:00
Michael Vines
50c92e3a94
Add block-height subcommand
2020-07-22 13:26:05 -07:00
Michael Vines
2adfe3f199
Add block height to epoch-info subcommand
2020-07-22 13:26:05 -07:00
dependabot[bot]
2e0fb37bfb
Bump thiserror from 1.0.19 to 1.0.20
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.19...1.0.20 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-15 13:39:32 -07:00
dependabot[bot]
8548c3a7eb
Bump humantime from 2.0.0 to 2.0.1
...
Bumps [humantime](https://github.com/tailhook/humantime ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/tailhook/humantime/releases )
- [Commits](https://github.com/tailhook/humantime/compare/v2.0.0...v2.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-15 08:27:33 -07:00
dependabot-preview[bot]
5055028231
Bump serde_json from 1.0.54 to 1.0.56
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.54 to 1.0.56.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.54...v1.0.56 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-14 11:13:22 -07:00
Trent Nelson
14ac233d01
CLI: Fix explicitly plumb vote_account through create-vote-account
2020-07-14 07:29:53 -06:00
Trent Nelson
2284699889
CLI: Fix explicitly plumb withdraw_authority through vote-update-validator
2020-07-14 07:29:53 -06:00
Trent Nelson
3392ecc310
CLI: Fix explicitly plumb withdraw_authority through vote-update-commission
2020-07-14 07:29:53 -06:00
dependabot-preview[bot]
5c86766fb2
Bump ctrlc from 3.1.4 to 3.1.5 ( #11006 )
...
Bumps [ctrlc](https://github.com/Detegr/rust-ctrlc ) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/Detegr/rust-ctrlc/releases )
- [Commits](https://github.com/Detegr/rust-ctrlc/compare/3.1.4...3.1.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-12 20:59:29 -06:00
dependabot-preview[bot]
841ecfd927
chore(deps): bump bincode from 1.2.1 to 1.3.1 ( #10867 )
...
* chore(deps): bump bincode from 1.2.1 to 1.3.1
Bumps [bincode](https://github.com/servo/bincode ) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/servo/bincode/releases )
- [Commits](https://github.com/servo/bincode/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* [auto-commit] Update all Cargo lock files
* Switch from deprecated method
* Add options to maintain behavior with bincode::options()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-07-09 00:08:05 +00:00
Tyera Eulberg
2669ccb864
Update struct prefixes to Ui ( #10874 )
...
* Update comments
* Use Ui prefix
2020-07-01 20:06:40 +00:00
Tyera Eulberg
d97850f1d9
Add account-decoder utilities ( #10846 )
...
* Fix comment and make less pub
* Add account-decoder crate and use to decode vote and system (nonce) accounts
* Update docs
* Rename RpcAccount struct
* s/Rpc/Display
* Call it jsonParsed and update docs
* Revert "s/Rpc/Display"
This reverts commit 6e7149f503f560f1e9237981058ff05642bb7db5.
* s/Rpc/Ui
* Add tests
* Ui more things
* Comments
2020-07-01 04:55:11 +00:00
Greg Fitzgerald
1c498369b5
Remove fee-payer guesswork from Message and Transaction ( #10776 )
...
* Make Message::new_with_payer the default constructor
* Remove Transaction::new_[un]signed_instructions
These guess the fee-payer instead of stating it explicitly
2020-06-24 14:52:38 -06:00
Michael Vines
2c029b844b
Split out current and delinquent validators ( #10702 )
2020-06-18 16:19:32 -07:00
Michael Vines
b297d0b423
Permit users to assign labels to account addresses
2020-06-18 18:46:49 +00:00
Michael Vines
c151e783ca
cli: Add version information to `solana gossip` and `solana validators` ( #10652 )
...
* Add validator version to `solana gossip`
* Add validator version to `solana validators`
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-17 23:04:13 +00:00
Tyera Eulberg
7a741bb79a
Move commitment to CliConfig to enable faster integration tests ( #10627 )
...
* Add commitment config to CliConfig
* Use config.commitment in cluster_query
* Use config.commitment in vote
* Add method with spinner + commitment
* Add send-transaction config to CliConfig
* Remove superfluous nonce check
* Add with_commitment helper fns
* Update src to use commitment
* Fix pay and transfer integration tests
* Fix nonce int tests
* Fix deploy int test
* Fix vote int test
* Fix stake int tests
* Nightly clippy
* Review comments
2020-06-17 12:18:48 -06:00
Jack May
dac7dc2f10
Move types to more appropriate files ( #10638 )
2020-06-17 10:39:14 -07:00
Michael Vines
296ac10b3a
|solana withdraw-from-vote-account| now supports ALL, and refuses to deallocate the vote account ( #10602 )
2020-06-15 21:36:47 +00:00
dependabot-preview[bot]
480f69cc5e
Bump serde from 1.0.111 to 1.0.112
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.111 to 1.0.112.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.111...v1.0.112 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 07:58:16 -07:00
dependabot-preview[bot]
943ae9793d
Bump indicatif from 0.14.0 to 0.15.0
...
Bumps [indicatif](https://github.com/mitsuhiko/indicatif ) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/mitsuhiko/indicatif/releases )
- [Commits](https://github.com/mitsuhiko/indicatif/compare/0.14.0...0.15.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-14 23:58:57 -07:00
R. M. Shea
48febf153b
Change documentation introduction to indicate Foundation IP transfer ( #10440 )
2020-06-13 14:41:05 -07:00
Michael Vines
0510b6e336
Add `merge-stake` subcommmand
2020-06-10 23:19:31 -07:00
Michael Vines
c3bb4b7405
Add `vote-update-commission` subcommand
2020-06-10 08:30:55 -07:00
dependabot-preview[bot]
a264a9dd0b
Bump serde_json from 1.0.53 to 1.0.54
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.53 to 1.0.54.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.53...v1.0.54 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 16:57:46 -07:00
Michael Vines
8e2745c2a2
Clean up delinquency slot distance computation
2020-06-09 11:27:30 -07:00
Kristofer Peterson
e23340d89e
Clippy cleanup for all targets and nighly rust (also support 1.44.0) ( #10445 )
...
* address warnings from 'rustup run beta cargo clippy --workspace'
minor refactoring in:
- cli/src/cli.rs
- cli/src/offline/blockhash_query.rs
- logger/src/lib.rs
- runtime/src/accounts_db.rs
expect some performance improvement AccountsDB::clean_accounts()
* address warnings from 'rustup run beta cargo clippy --workspace --tests'
* address warnings from 'rustup run nightly cargo clippy --workspace --all-targets'
* rustfmt
* fix warning stragglers
* properly fix clippy warnings test_vote_subscribe()
replace ref-to-arc with ref parameters where arc not cloned
* Remove lock around JsonRpcRequestProcessor (#10417 )
automerge
* make ancestors parameter optional to avoid forcing construction of empty hash maps
Co-authored-by: Greg Fitzgerald <greg@solana.com>
2020-06-09 09:38:14 +09:00
Tyera Eulberg
da34310eb4
Add arg to specify address-signer for solana deploy ( #10416 )
2020-06-04 20:14:12 -06:00
dependabot-preview[bot]
6cf30c38a4
Bump reqwest from 0.10.5 to 0.10.6
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.10.5 to 0.10.6.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-03 09:01:36 -07:00
dependabot-preview[bot]
f901571026
Bump serde from 1.0.110 to 1.0.111
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.110 to 1.0.111.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.111 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 23:29:14 -07:00
Michael Vines
a23085ddfd
`solana validators`: Fix credits column formatting
2020-06-02 23:28:36 -07:00
Michael Vines
202512d46b
Adapt `solana deploy`
2020-06-01 17:51:04 -07:00
Greg Fitzgerald
5d248fe5f8
Permit paying oneself ( #10337 )
...
* Allow paying to oneself
* cargo fmt
* Permit pay-to-self in CLI
No test here because we're just removing an [untested] special case.
Fixes #10339
2020-05-30 20:12:48 -06:00
dependabot-preview[bot]
b787254bd6
Bump console from 0.10.3 to 0.11.3 ( #10314 )
...
Bumps [console](https://github.com/mitsuhiko/console ) from 0.10.3 to 0.11.3.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Commits](https://github.com/mitsuhiko/console/commits/v0.11.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-30 07:47:41 -06:00
Greg Fitzgerald
de5b21e444
Don't attempt to resolve mainnet-beta in the test suite ( #10328 )
...
automerge
2020-05-29 17:35:07 -07:00
Michael Vines
9eefb2c929
Bump version to 1.3.0
2020-05-28 15:01:13 -07:00
Trent Nelson
e8bf94c2d2
CLI: Don't display inactive stake lockups
2020-05-28 09:45:20 -06:00
Trent Nelson
f9ee97d6f5
CLI: Improve stake (de)activation display
2020-05-27 14:21:09 -06:00
Tyera Eulberg
b6083ca107
Cli: expose last-valid-slot in solana fees ( #10254 )
...
automerge
2020-05-26 14:08:07 -07:00
dependabot-preview[bot]
c7cdbc98e5
Bump thiserror from 1.0.18 to 1.0.19 ( #10180 )
...
* Bump thiserror from 1.0.18 to 1.0.19
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.18 to 1.0.19.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.18...1.0.19 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2020-05-21 23:36:04 -07:00
Michael Vines
56c7e4a66c
ping now reuses the same blockhash for a minute ( #10165 )
2020-05-21 14:11:47 -07:00
Greg Fitzgerald
64cec764b9
Allow RpcClient users to inject custom "senders" ( #10157 )
...
automerge
2020-05-20 18:40:45 -07:00
sakridge
ce17de7d25
Add option to wait for a specific epoch length to bench-tps ( #10083 )
2020-05-20 16:42:46 -07:00
Michael Vines
357a00d2bc
transaction-history now searches over the entire history by default ( #10145 )
...
automerge
2020-05-20 14:15:31 -07:00
Greg Fitzgerald
d9919b99d2
Remove folds ( #10128 )
...
automerge
2020-05-19 18:13:41 -07:00
dependabot-preview[bot]
d34b9ba306
Bump thiserror from 1.0.17 to 1.0.18 ( #10079 )
...
* Bump thiserror from 1.0.17 to 1.0.18
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.17...1.0.18 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <anatoly+githubjenkins@solana.io>
2020-05-19 09:02:45 -06:00
Greg Fitzgerald
5e89bd8868
Panic if no fee-payer found via Message::new() ( #10050 )
...
automerge
2020-05-15 12:23:09 -07:00
Kristofer Peterson
58ef02f02b
9951 clippy errors in the test suite ( #10030 )
...
automerge
2020-05-15 09:35:43 -07:00
dependabot-preview[bot]
22cddcb1a6
Bump thiserror from 1.0.16 to 1.0.17 ( #10020 )
...
* Bump thiserror from 1.0.16 to 1.0.17
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.16...1.0.17 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2020-05-15 06:17:42 -06:00
Jack May
eb1acaf927
Remove archiver and storage program ( #9992 )
...
automerge
2020-05-14 18:22:47 -07:00
Tyera Eulberg
40b7c11262
Base58 ( #10052 )
2020-05-14 17:23:29 -06:00
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
Tyera Eulberg
ee7f15eff1
Rpc: optionally filter getLargestAccounts by circulating/nonCirculating ( #10007 )
...
* Add circ/non-circ filter to getLargestAccounts
* Plumb largest accounts into client and cli
* Bump timeout toward CI flakiness
* Update docs
2020-05-12 21:05:05 -06:00
Michael Vines
3b9dc50541
Fix up a couple cli commands that fail when a node is in the `--wait-for-supermajority` state ( #9985 )
...
automerge
2020-05-11 16:07:40 -07:00
Michael Vines
2521f75c18
Advertise node software version in gossip ( #9981 )
...
* Advertise node version in gossip
* Remove solana_clap_utils::version! macro
2020-05-11 15:02:01 -07:00
dependabot-preview[bot]
6660e93c39
Bump clap from 2.33.0 to 2.33.1 ( #9978 )
...
* Bump clap from 2.33.0 to 2.33.1
Bumps [clap](https://github.com/clap-rs/clap ) from 2.33.0 to 2.33.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v2.33.1/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v2.33.0...v2.33.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2020-05-11 14:32:50 -07:00
dependabot-preview[bot]
288c9751c1
Bump serde from 1.0.106 to 1.0.110 ( #9964 )
...
* Bump serde from 1.0.106 to 1.0.110
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.106 to 1.0.110.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.106...v1.0.110 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2020-05-10 16:24:25 -07:00
dependabot-preview[bot]
0541431ea8
Bump serde_json from 1.0.52 to 1.0.53 ( #9957 )
...
* Bump serde_json from 1.0.52 to 1.0.53
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.52 to 1.0.53.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.52...v1.0.53 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2020-05-10 11:46:29 -07:00
Tyera Eulberg
dd78184f8f
Cli: Add solana supply command; hide total-supply ( #9956 )
...
* Add cli supply command; hide total-supply
* Use print-accounts arg instead of verbose
2020-05-10 12:05:14 -06:00
Michael Vines
cb50877bbf
send_and_confirm_transaction() no longer needs a keypair ( #9950 )
2020-05-09 09:06:32 -07:00
Greg Fitzgerald
57a9996921
Clean up --output help ( #9941 )
...
automerge
2020-05-08 12:27:56 -07:00
VadimGrznk
f6e26f6c8c
Add using OutputFormat enum to --sign-only transactions ( #9650 )
...
* Add using OutputFormat enum to --sign-only commands
* Renaming
* Code formating
* Appease clippy
* Add returning json string to pay command for tests
* Code refactoring
* Appease clippy
* Rebase and dedupe signature prints
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-05-06 22:21:48 -06:00
Tyera Eulberg
65a52a4145
Cli: Update OutputFormat method to return a String to restore consistency ( #9904 )
...
* Update OutputFormat method to return a String to restore consistency
* Remove process_show_account special case
2020-05-06 20:27:15 -06:00
Michael Vines
e078ba1dde
Display transaction fee in SOL ( #9892 )
...
automerge
2020-05-05 22:10:41 -07:00
Tyera Eulberg
b2672fd623
Cli: add cluster-date subcommand, and make block-time slot optional ( #9878 )
...
* Add CliBlockTime struct
* Add cli cluster-date subcommand
* Make slot param optional; also jsonify
* Make prints prettier
2020-05-05 09:42:03 -06:00
Kristofer Peterson
3aedb81d48
Avoid panic caused by converting non-positive / non-normal floating points values to duration ( #9867 )
2020-05-04 13:08:27 -07:00
Jack May
a8394317c7
Wait for at least one confirmation when uploading program data ( #9850 )
...
automerge
2020-05-02 20:11:50 -07:00
Michael Vines
ffbbdd46e8
Add clap.rs default for --commitment ( #9859 )
2020-05-02 13:06:35 -07:00
Michael Vines
de04563f18
Watchtower can now emit a notifiation on all non-vote transactions ( #9845 )
2020-05-01 17:48:22 -07:00
Tyera Eulberg
db8011f4f3
Enable multiple lockup fields to be set at once ( #9831 )
...
automerge
2020-04-30 22:17:23 -07:00
Tyera Eulberg
6deaf649ef
Add commitment Root variant, and add fleshed out --commitment arg to Cli ( #9806 )
...
automerge
2020-04-29 21:55:33 -07:00
Michael Vines
6ed29b3653
Don't divide by zero
2020-04-29 11:04:52 -07:00
Michael Vines
0954ea19e8
catchup now estimates the time remaining ( #9782 )
...
automerge
2020-04-28 22:32:12 -07:00
Michael Vines
d67ad70443
Revert "Bump console from 0.10.1 to 0.11.2 ( #9763 )"
...
This reverts commit 2de999fb61
.
2020-04-28 10:43:18 -07:00
dependabot-preview[bot]
2de999fb61
Bump console from 0.10.1 to 0.11.2 ( #9763 )
...
Bumps [console](https://github.com/mitsuhiko/console ) from 0.10.1 to 0.11.2.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Commits](https://github.com/mitsuhiko/console/compare/0.10.1...0.11.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-28 09:36:07 -07:00
dependabot-preview[bot]
c5a7df9221
Bump console from 0.10.0 to 0.10.1 ( #9726 )
...
Bumps [console](https://github.com/mitsuhiko/console ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Commits](https://github.com/mitsuhiko/console/compare/0.10.0...0.10.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-27 09:16:24 -06:00
Greg Fitzgerald
71f7a7243b
Add custodian option to withdraw-stake command ( #9662 )
...
automerge
2020-04-22 15:00:18 -07:00
Greg Fitzgerald
cbc7b3b0b7
Cleanup CLI help message ( #9632 )
...
automerge
2020-04-21 16:09:34 -07:00
dependabot-preview[bot]
64e5684d45
Bump bs58 from 0.3.0 to 0.3.1
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-21 08:07:00 -07:00
Michael Vines
914b022663
cli: Add transaction-history ( #9614 )
...
automerge
2020-04-20 22:01:09 -07:00
Jack May
6e908a1be8
Nit: More informative error message ( #9616 )
2020-04-20 21:35:22 -07:00
Greg Fitzgerald
a6ad660e5e
Merge stake::withdraw instructions ( #9617 )
2020-04-20 18:16:50 -06:00
Michael Vines
44cced3ffc
Add decode-transaction
2020-04-20 12:14:30 -07:00
Tyera Eulberg
679e7863cb
Tame wallet manager better ( #9567 )
...
automerge
2020-04-18 11:54:21 -07:00
Michael Vines
7207a91aa5
confirm --verbose now displays failed transactions
2020-04-17 13:17:38 -07:00
Tyera Eulberg
a9c38fb0df
Consider config in check_for_usb ( #9555 )
2020-04-17 11:37:13 -06:00
Michael Vines
47ae57610a
Only build x86_64-unknown-linux-gnu on docs.rs
2020-04-16 19:06:17 -07:00
Michael Vines
7e7cbec8a1
Passing -v/--verbose to `solana confirm` now displays the full transaction
2020-04-16 08:19:30 -07:00
Tyera Eulberg
5298e3872c
Cli: enable json output ( #9478 )
...
automerge
2020-04-14 12:10:25 -07:00
Michael Vines
5a0c2a0c1d
Rename UpdateNode to UpdateValidatorIdentity
2020-04-13 17:25:39 -07:00
dependabot-preview[bot]
230f014b9e
Bump thiserror from 1.0.14 to 1.0.15
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.14...1.0.15 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-13 09:13:04 -07:00
Michael Vines
3f33f4d3a9
Sort the output of `solana validators` by active stake ( #9459 )
...
automerge
2020-04-12 17:39:02 -07:00
Michael Vines
c86b0d8a85
Remove "Credits Observed:" field from `solana stake-account` output
2020-04-12 12:42:18 -07:00
sakridge
900933bbcc
Reduce rpc test code ( #9413 )
...
automerge
2020-04-09 18:05:56 -07:00
Tyera Eulberg
638108e9d5
Add --no-wait arg to transfer ( #9388 )
...
automerge
2020-04-08 22:46:19 -07:00
Tyera Eulberg
6b988155e1
RpcClient: include signature check in send_transaction, bump send retries in get_num_blocks_since_signature_confirmation ( #9341 )
...
* Bump rpc send retries
* Add signature check to send_transaction and update mocks to test
2020-04-06 19:27:37 -06:00
Tyera Eulberg
96c23110ae
Make TestValidator mint_lamports configurable ( #9337 )
...
automerge
2020-04-06 16:20:55 -07:00
dependabot-preview[bot]
62cb2cd13c
Bump serde_json from 1.0.49 to 1.0.51
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.49 to 1.0.51.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.49...v1.0.51 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-06 08:40:55 -07:00
dependabot-preview[bot]
8cdf406dd3
Bump serde from 1.0.105 to 1.0.106
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.105 to 1.0.106.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-04 15:13:52 -07:00
Michael Vines
66c78cb819
Apply suggestions from code review
2020-04-03 09:58:40 -07:00
Michael Vines
962e41f9ca
`vote-authorize-voter` no longer fails if the current authorized voter is not the fee payer
2020-04-03 09:58:40 -07:00
Michael Vines
c5b2db72a2
Add option to monitor catchup at max commitment
2020-04-02 19:05:33 -07:00
Michael Vines
303a1207c1
Add --follow option to catchup command to allow for easy ongoing monitoring between two nodes
2020-04-02 19:05:33 -07:00
Tyera Eulberg
ec4745d174
Tame overeager wallet manager ( #9262 )
...
* Add helper fn to check for usb cli args
* Use helper fn to prevent wallet_manager connecting unnecessarily
* Review improvements
2020-04-02 15:47:17 -06:00
Michael Vines
23bf7b8d63
Add epoch subcommand ( #9249 )
...
automerge
2020-04-01 20:42:28 -07:00
sakridge
a8817fb973
Add some information about what an address can be for CLI commands ( #9233 )
2020-04-01 19:45:37 -07:00
Jack May
9aab0b9388
More custom error rename ( #9227 )
...
automerge
2020-04-01 11:13:31 -07:00
Jack May
268e04cb4a
Rename CustomError to Custom ( #9207 )
2020-04-01 09:01:11 -07:00
dependabot-preview[bot]
8731b6279f
Bump thiserror from 1.0.13 to 1.0.14 ( #9151 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.13...1.0.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-29 15:33:11 -07:00
Michael Vines
5f31444300
catchup now retries when the desired node is not yet online ( #9148 )
2020-03-29 09:40:53 -07:00
dependabot-preview[bot]
2ed3e2160d
Bump serde_json from 1.0.48 to 1.0.49 ( #9139 )
...
* Bump serde_json from 1.0.48 to 1.0.49
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.48...v1.0.49 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Update serde_json in programs
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2020-03-28 12:19:40 -07:00
Michael Vines
d7fa40087c
Bump version to 1.2.0
2020-03-28 09:44:13 -07:00
Michael Vines
4a8b1d9b2c
RpcClient now returns Signatures instead of Strings ( #9129 )
2020-03-27 15:46:00 -07:00
Michael Vines
864d212c64
`solana account` now displays the account's rent epoch ( #9114 )
2020-03-27 08:58:21 -07:00
dependabot-preview[bot]
e744b15ad2
Bump thiserror from 1.0.12 to 1.0.13 ( #9017 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.12...1.0.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-24 10:51:24 -07:00
Greg Fitzgerald
b08f8d3103
Add stake-account to docs ( #9010 )
2020-03-22 12:20:24 -06:00
Trent Nelson
2592894958
CLI: Support setting both stake authorities at once ( #8976 )
...
automerge
2020-03-21 18:56:17 -07:00
dependabot-preview[bot]
85027caf42
Bump thiserror from 1.0.11 to 1.0.12 ( #9000 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.11...1.0.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-21 14:52:25 -06:00
Greg Fitzgerald
ca4a22d4ba
Distinguish account addresses from public keys ( #8998 )
2020-03-21 13:30:01 -06:00
Jack May
e28368ff1b
Move address creation with seed into pubkey ( #8991 )
2020-03-20 15:20:48 -07:00
Greg Fitzgerald
c68e80c93b
Improve CLI usage messages ( #8972 )
...
* Improve CLI usage messages
* stragglers
* Apply review feedback
Co-authored-by: Trent Nelson <trent@solana.com>
2020-03-19 21:43:11 -06:00
Tyera Eulberg
6b9a0935c1
Some Cli polish ( #8966 )
...
automerge
2020-03-19 12:03:36 -07:00
Trent Nelson
ff4ba54553
CLI: Fix `create-nonce-account` with seed ( #8929 )
...
* CLI: Fix `create-nonce-account --seed ...`
* CLI: Add test another for `create-nonce-account --seed...`
Explicitly demonstrates a partner workflow with the following
requirements:
1) Nonce account address derived from an offline nonce
authority address
2) Fully online account creation
3) Account creation in a single signing session
* alphabetize
2020-03-19 10:36:53 -06:00
Michael Vines
f78a90bce2
Vote InitializeAccount and UpdateNode instructions now need a signature from the validator identity ( #8947 )
...
automerge
2020-03-19 01:58:52 -07:00
dependabot-preview[bot]
24d871b529
Bump serde from 1.0.104 to 1.0.105 ( #8954 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-18 22:35:30 -07:00
Trent Nelson
98228c392e
CLI: Add multi-session signing support ( #8927 )
...
* SDK: Add `NullSigner` implementation
* SDK: Split `Transaction::verify()` to gain access to results
* CLI: Minor refactor of --sign_only result parsing
* CLI: Enable paritial signing
Signers specified by pubkey, but without a matching --signer arg
supplied fall back to a `NullSigner` when --sign-only is in effect.
This allows their pubkey to be used for TX construction as usual,
but leaves their `sign_message()` a NOP. As such, with --sign-only
in effect, signing and verification must be done separately, with
the latter's per-signature results considered
* CLI: Surface/report missing/bad signers to user
* CLI: Suppress --sign-only JSON output
* nits
* Docs for multi-session offline signing
2020-03-18 20:49:38 -07:00
Tyera Eulberg
f0414711b7
Cli: add spinner progress bar when waiting for transaction confirmation ( #8916 )
...
* Add _with_spinner method
* Use _with_spinner method in cli
2020-03-17 17:58:02 -06:00
Tyera Eulberg
6077458ad8
Cli: enable flexible flexible signer paths for pubkey args ( #8892 )
...
automerge
2020-03-16 15:17:13 -07:00
Greg Fitzgerald
563da2bb18
Cleanup CLI types ( #8888 )
2020-03-16 12:27:09 -06:00
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
3c2aff2b5b
Cli: Add resolve-signer subcommand ( #8859 )
...
* Expose remote-wallet device pretty path
* Add resolve-signer helpers
* Add cli resolve-signer subcommand
* Print pretty-path in waiting msg
2020-03-14 20:48:41 -07:00
Michael Vines
29fb79382c
Rework validator vote account defaults to half voting fees
2020-03-13 20:13:33 -07: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
dependabot-preview[bot]
215650f6e7
Bump console from 0.9.2 to 0.10.0 ( #8786 )
...
Bumps [console](https://github.com/mitsuhiko/console ) from 0.9.2 to 0.10.0.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Commits](https://github.com/mitsuhiko/console/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-11 12:30:15 -06:00
Trent Nelson
0422af2aae
CLI: Plumb nonce-stored fees ( #8750 )
...
automerge
2020-03-11 11:14:15 -07:00
dependabot-preview[bot]
75a84ecdae
Bump reqwest from 0.10.1 to 0.10.4 ( #8787 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.10.1 to 0.10.4.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.10.1...v0.10.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-11 09:02:40 -06: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
Michael Vines
f655372b08
Revert to a computed `websocket_url` value when `json_rpc_url` is changed
2020-03-10 15:55:13 -07:00
Trent Nelson
261732f140
CLI Nonce account access dereplicode ( #8743 )
...
* Spruce up CliNonceError
* Add nonce account access helpers
* Use helpers throughout
2020-03-10 13:00:15 -06:00
dependabot-preview[bot]
e41ff2df66
Bump chrono from 0.4.10 to 0.4.11 ( #8755 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.10 to 0.4.11.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/master/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.10...v0.4.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-10 08:43:18 -06:00
dependabot-preview[bot]
fad08a19cc
Bump serde_json from 1.0.46 to 1.0.48 ( #8260 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.46 to 1.0.48.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.46...v1.0.48 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 20:20:19 -06:00
Greg Fitzgerald
5fa397ceed
Remove --derivation-path option ( #8741 )
...
automerge
2020-03-09 17:49:01 -07:00
Michael Vines
756ba07b16
Move cli-config default out of cli/ into cli-config/
2020-03-09 15:43:14 -07:00
Michael Vines
5c236fd06c
Rename 'url' to 'json_rpc_url'
2020-03-09 15:43:14 -07:00
Greg Fitzgerald
97b6c41d42
Fix typos in error messages ( #8726 )
...
automerge
2020-03-09 10:12:42 -07:00
Michael Vines
132a2a73af
Add total-supply command ( #8722 )
...
automerge
2020-03-09 01:28:44 -07:00
Tyera Eulberg
eab80d0aea
Cli: Fix create-with-seed ( #8706 )
...
* Add failing test
* Fix create-address-with-seed regression
* Add apis to enable generating a pubkey from all various signers
* Enable other signers as --from in create-with-seed
2020-03-09 00:02:24 -06:00
Trent Nelson
fd00e5cb35
Store FeeCalculator with blockhash in nonce accounts ( #8650 )
...
* Copy current state version to v0
* Add `FeeCalculator` to nonce state
* fixup compile
* Dump v0 handling...
Since we new account data is all zeros, new `Current` versioned accounts
look like v0. We could hack around this with some data size checks, but
the `account_utils::*State` traits are applied to `Account`, not the
state data, so we're kind SOL...
* Create more representative test `RecentBlockhashes`
* Improve CLI nonce account display
Co-Authored-By: Michael Vines <mvines@gmail.com>
* Fix that last bank test...
* clippy/fmt
Co-authored-by: Michael Vines <mvines@gmail.com>
2020-03-05 07:40:26 -07:00
Grimes
f89c22b5ee
`solana catchup` now detects when you try to catchup to yourself ( #8635 )
...
automerge
2020-03-04 14:44:21 -08:00
Grimes
09a0325534
`catchup` now supports an optional RPC URL argument for validators with private RPC ( #8629 )
...
automerge
2020-03-04 11:44:13 -08:00
Trent Nelson
1cc7131bb7
Consolidate Nonce state under one struct ( #8624 )
...
automerge
2020-03-04 08:51:48 -08:00
Trent Nelson
1cb6101c6a
SDK: Add versioning to nonce state ( #8607 )
2020-03-03 19:39:09 -07:00
Trent Nelson
be0cc0273f
SDK: Re-org nonce state module to facilitate versioning ( #8603 )
...
automerge
2020-03-03 17:00:39 -08:00
Michael Vines
abf33b3b3b
Add commitment flag to `vote-account` and `validators` commands ( #8597 )
2020-03-03 17:53:30 -07:00
Tyera Eulberg
e4498adb1f
Make block-time more human-readable ( #8575 )
2020-03-02 14:58:15 -08: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
Sunny Gleason
db291234ed
feat: implement websocket_url as a get/set-able global parameter w/ value computation
2020-03-01 01:07:45 -07:00
Trent Nelson
90bedd7e06
Split signature throughput tracking out of `FeeCalculator` ( #8447 )
...
* SDK: Split new `FeeRateGovernor` out of `FeeCalculator`
Leaving `FeeCalculator` to *only* calculate transaction fees
* Replace `FeeCalculator` with `FeeRateGovernor` as appropriate
* Expose recent `FeeRateGovernor` to clients
* Move `burn()` back into `FeeCalculator`
Appease BPF tests
* Revert "Move `burn()` back into `FeeCalculator`"
This reverts commit f3035624307196722b62ff8b74c12cfcc13b1941.
* Adjust BPF `Fee` sysvar test to reflect removal of `burn()` from `FeeCalculator`
* Make `FeeRateGovernor`'s `lamports_per_signature` private
* rebase artifacts
* fmt
* Drop 'Recent'
* Drop _with_commitment variant
* Use a more portable integer for `target_signatures_per_slot`
* Add docs for `getReeRateCalculator` JSON RPC method
* Don't return `lamports_per_signature` in `getFeeRateGovernor` JSONRPC reply
2020-02-28 13:27:01 -07:00
Michael Vines
27c5ec0149
Use the same reqwest features across the repo
2020-02-26 20:47:43 -07:00
Tyera Eulberg
f6f0f94e17
Add flag to confirm key on device ( #8478 )
2020-02-26 15:24:44 -07:00
Justin Starry
8839dbfe5b
Use runtime executor to send pubsub notifications ( #8353 )
...
automerge
2020-02-25 20:23:54 -08:00
Michael Vines
407d058611
live-slots now displays the rate the root slot is advancing
2020-02-25 20:59:05 -07:00
carllin
39282be486
Determine vote_state ahead of time ( #8303 )
...
automerge
2020-02-24 19:27:04 -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
Dan Albert
2d9d2f1e99
Update cargo versions from 1.0 to 1.1 ( #8397 )
2020-02-21 23:09:45 -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
dependabot-preview[bot]
d308eed136
Bump ctrlc from 3.1.3 to 3.1.4
...
Bumps [ctrlc](https://github.com/Detegr/rust-ctrlc ) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/Detegr/rust-ctrlc/releases )
- [Commits](https://github.com/Detegr/rust-ctrlc/commits/3.1.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-21 09:00:14 -07:00
Michael Vines
48f58a88bc
Bump version to 1.0.0
2020-02-20 23:52:19 -07:00
Tyera Eulberg
0b7e8d0162
Add handling for fallible signers ( #8367 )
...
automerge
2020-02-20 19:04:53 -08:00
Tyera Eulberg
ab361a8073
Rename KeypairUtil to Signer ( #8360 )
...
automerge
2020-02-20 13:28:55 -08:00
Tyera Eulberg
fc2a0d53d9
CLI: Add optional airdrop recipient ( #8291 )
...
* CLI: Add optional airdrop recipient
* Update book usage page
2020-02-16 11:41:00 -07: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
Tyera Eulberg
2374cf09e2
Enable remote-wallet signing in solana-keygen ( #8267 )
...
* Add fallible methods to KeypairUtil
* Add RemoteKeypair struct and impl KeypairUtil
* Implement RemoteKeypair in keygen; also add parse_keypair_path for cleanup
2020-02-13 14:08:34 -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
Greg Fitzgerald
127553ce4b
Wrap ed25519_dalek::Keypair ( #8247 )
2020-02-12 14:15:12 -07:00
Trent Nelson
ed87229cec
CLI: Don't hide errors when fees are disabled ( #8204 )
...
automerge
2020-02-11 21:48:04 -08:00
Jack May
059764586a
Rename from account userdata to data ( #8224 )
2020-02-11 16:30:22 -08:00
Tyera Eulberg
25d1f841ee
Fixup sign_transaction; pass derivation_path by reference ( #8194 )
...
* Fixup sign_transaction; pass derivation_path by reference
* Pass total message length as BE u16
* Remove live integration tests (to ledger-app-solana)
2020-02-11 11:45:00 -07: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
8d8f28c1d0
CLI: `transfer` fix checks pubkeys ( #8198 )
...
automerge
2020-02-10 22:34:14 -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
87c6508305
CLI: Implement transfer command ( #8108 )
...
* CLI: Add transfer subcommand
* Add tests
* checks
2020-02-07 12:16:35 -07:00
Tyera Eulberg
ed0c1d3b52
Ledger hardware wallet integration ( #8068 )
...
* Initial remote wallet module
* Add clap derivation tooling
* Add remote-wallet path apis
* Implement remote-wallet in solana-keygen
* Implement remote-wallet in cli for read-only pubkey usage
* Linux: Use udev backend; add udev rules tool
* Ignore Ledger live test
* Cli api adjustments
2020-02-07 11:26:56 -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
Sunny Gleason
a7fa92b372
feat: implementation of live-slots command ( #8129 )
2020-02-06 14:16:30 -05:00
Jack May
8436457e75
Rename program_utils.rs ( #8127 )
2020-02-05 12:48:30 -08: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
dependabot-preview[bot]
65c24db83c
Bump serde_json from 1.0.44 to 1.0.46 ( #8087 )
...
* Bump serde_json from 1.0.44 to 1.0.46
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.44...v1.0.46 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Update Move's serde_json to v1.0.46
Co-authored-by: Jack May <jack@solana.com>
2020-02-04 16:59:23 -08:00
Trent Nelson
79249360f7
CLI: Expose sign-only reply parsing helper ( #8107 )
...
automerge
2020-02-03 18:22:36 -08:00
Jack May
336d5136bf
Print more program error info to user when using CLI ( #8098 )
2020-02-03 17:14:53 -08:00
Michael Vines
4c0420b884
Delete uptime command, report total credits in `solana validators` instead
2020-02-03 16:55:33 -07:00
Michael Vines
5e2891ae5d
e
2020-02-03 11:34:00 -07:00
Michael Vines
4f85481a2b
Add split-stake command
2020-02-03 11:14:08 -07:00
Tyera Eulberg
fab8ef379f
Use solana-cli config keypair in solana-keygen ( #8074 )
...
* Use solana-cli config keypair in solana-keygen
* s/infile/keypair for consistency across modules and more generality across access methods
* Move config into separate crate
2020-01-31 19:27:37 -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
dependabot-preview[bot]
c7e77a2238
Bump indicatif from 0.13.0 to 0.14.0
...
Bumps [indicatif](https://github.com/mitsuhiko/indicatif ) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/mitsuhiko/indicatif/releases )
- [Commits](https://github.com/mitsuhiko/indicatif/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-30 08:58:00 -07:00
dependabot-preview[bot]
a52a9afa3c
Bump console from 0.9.1 to 0.9.2
...
Bumps [console](https://github.com/mitsuhiko/console ) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Commits](https://github.com/mitsuhiko/console/compare/0.9.1...0.9.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-29 23:22:44 -07:00
Michael Vines
1c82f84595
Add leader-schedule subcommand
2020-01-29 20:08:42 -07:00
Trent Nelson
4a074133f7
CLI: Fix tests. sign_only requires a blockhash ( #8005 )
...
This is enforced by argument parsing and will be better enforced wholly
with #7981
2020-01-28 18:02:20 -07:00
Michael Vines
1ff4dd9a9a
Remove show- prefix
2020-01-26 21:00:57 -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
Michael Vines
cff1bc6e71
s/dervied/derived/
2020-01-25 23:22:28 -07:00
Trent Nelson
bb6c4efe9b
CLI: Deterministic dummy keypair generation for SigningAuthority::Offline ( #7971 )
...
* CLI: Deterministic dummy keypair generation for SigningAuthority::Offline
* Add test
2020-01-25 22:14:07 -07:00
Dan Albert
c324e71768
Bump cargo toml versions to 0.24.0 ( #7976 )
2020-01-25 11:04:27 -06:00
Trent Nelson
e2570c98ee
CLI: Add authority to show-nonce-account output ( #7969 )
2020-01-25 07:21:23 -07:00
Ryo Onodera
992e985972
Add column for slot range of epoch to epoch-info ( #7954 )
...
automerge
2020-01-23 20:44:37 -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
964ff522be
Verb-noun-ify Nonce API ( #7925 )
...
* Verb-noun-ify Nonce API
* Unify instruction naming with API naming
The more verbose nonce_account/NonceAccount was chosen for clarity
that these instructions work on a unique species of system account
2020-01-22 16:31:39 -07: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
340424e03a
Use minimumLedgerSlot RPC API in block-production command
2020-01-21 14:05:26 -07:00
Michael Vines
356f246a74
Remove get-/show- prefix from cli commands
2020-01-21 08:43:07 -07:00
dependabot-preview[bot]
a560d94a9f
Bump humantime from 1.3.0 to 2.0.0
...
Bumps [humantime](https://github.com/tailhook/humantime ) from 1.3.0 to 2.0.0.
- [Release notes](https://github.com/tailhook/humantime/releases )
- [Commits](https://github.com/tailhook/humantime/compare/v1.3.0...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 10:08:11 -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
Ryo Onodera
e710964d05
Revamp the progress of current epoch in get-epoch-info ( #7838 )
...
* Revamp the progress of current epoch in get-epoch-info
* Incorporate suggested more concise labelling
2020-01-17 09:39:47 +09:00