steviez
2a770e9726
Use unsigned_abs() instead of casting abs() ( #24521 )
2022-04-20 12:01:33 -05:00
Trent Nelson
91993d89b0
cli: sort option for validators by version
2022-04-11 00:47:47 -06:00
Justin Starry
15357480ec
Refactor instruction compilation and update message account key ordering ( #23729 )
...
* Refactor: Make instruction compilation usable for other message versions
* apply trents feedback
* Fix tests
* Fix bpf compatiblity
2022-03-21 20:53:32 +08:00
Justin Starry
0eccacbd5b
Add CLI support for versioned transactions ( #23606 )
2022-03-17 11:43:04 +08:00
Justin Starry
021135978d
Refactor: Split up cli transaction display methods ( #23547 )
2022-03-11 10:49:53 +08:00
Michael Vines
87b76aeeb0
Align the `solana validators` output columns for -ud,-ut, and -um
2022-02-27 16:54:13 -08:00
Michael Vines
7111918596
`solana gossip` now includes feature set information
2022-02-24 18:04:38 -08:00
Tyera Eulberg
d2c89213ff
Implement json output for solana ping ( #22959 )
2022-02-05 21:40:12 +00:00
Michael Vines
6d5bbca630
Pacify clippy
2022-01-21 19:12:57 -08:00
losman0s
9b06d64eb8
Add option to load accounts from file
...
This introduces the `--clone-from-file` option for
solana-test-validator. It allows specifying any number of files
(without extension) containing account info and data, which will be
loaded at genesis. This is similar to `--bpf-program` for programs
loading.
The files will be searched for in the CWD or in `tests/fixtures`.
Example: `solana-test-validator --clone-from-file SRM_token USD_token`
2021-12-15 11:05:02 -08:00
Michael Vines
b8837c04ec
Reformat imports to a consistent style for imports
...
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
2021-12-03 09:19:13 -08:00
Michael Vines
350bb561eb
Clippy
2021-10-23 08:21:20 +00:00
Michael Vines
bdf8b1da6b
Adjust `solana validators` output to account for the 1k+ validators on mainnet
2021-10-10 07:53:39 -07:00
Jack May
57bbbb83a4
cli: show upgradeable program accounts ( #19431 )
2021-08-25 17:03:55 -07:00
Jack May
a89f180145
Allow closing upgradeable program accounts ( #19319 )
2021-08-24 10:05:54 -07:00
Tyera Eulberg
467c18e0d1
Add cli-output helpers ( #18933 )
...
* Add OutputFormat helper to reduce copy-pasta
* Add CliSignOnlyData constructor
2021-07-28 04:21:23 +00:00
Michael Vines
e6f32f6ae0
Align vote-account output with stake-account output
2021-07-15 07:00:49 -07:00
Tyera Eulberg
8ad4ffdee5
Cli: expose last valid block height ( #18620 )
...
* Add Fees struct to client
* Add complete RpcClient::get_fees methods
* Switch cli to last_valid_block_height
2021-07-13 01:41:27 +00:00
Michael Vines
4098af3b5b
Record vote account commission with voting/staking rewards and surface in RPC
2021-07-12 15:09:44 -07:00
Trent Nelson
2af5ec4f57
sdk: add `is_interactive()` method `Signer` trait
2021-07-03 07:33:59 +00:00
Michael Vines
52290dbd35
`solana validators` output now includes average skip rate
2021-06-30 22:08:26 +00:00
Tyera Eulberg
f2b0d562b0
Cli epoch-info: generate epoch-completed time from block times ( #18258 )
...
* Generate epoch-completed time from block times
* Add annotation when block times not available
2021-06-28 15:32:28 -06:00
Michael Vines
b44af11511
Only print Foundation inflation rate if it is greater than 0
2021-06-26 13:39:00 -07:00
Alexander Meißner
6514096a67
chore: cargo +nightly clippy --fix -Z unstable-options
2021-06-18 10:42:46 -07:00
Jon Cinque
1b1d34da59
Refactor stake program into solana_program ( #17906 )
...
* Move stake state / instructions into solana_program
* Update account-decoder
* Update cli and runtime
* Update all other parts
* Commit Cargo.lock changes in programs/bpf
* Update cli stake instruction import
* Allow integer arithmetic
* Update ABI digest
* Bump rust mem instruction count
* Remove useless structs
* Move stake::id() -> stake::program::id()
* Re-export from solana_sdk and mark deprecated
* Address feedback
* Run cargo fmt
2021-06-15 18:04:00 +02:00
Tyera Eulberg
ab581dafc2
Add block height to ConfirmedBlock structs ( #17523 )
...
* Add BlockHeight CF to blockstore
* Rename CacheBlockTimeService to be more general
* Cache block-height using service
* Fixup previous proto mishandling
* Add block_height to block structs
* Add block-height to solana block
* Fallback to BankForks if block time or block height are not yet written to Blockstore
* Add docs
* Review comments
2021-05-26 22:16:16 -06:00
Trent Nelson
cb5e000615
CLI: Print gossip nodes with `cli-output` crate
2021-05-06 07:49:47 +00:00
Michael Vines
d640ac143b
Add skip rate to `solana validators`
2021-04-28 22:43:06 -07:00
Michael Vines
c1829dd00b
Show last vote/root behind distance in `solana validators` output
2021-04-24 02:57:57 +00:00
Michael Vines
b8b54567b1
Clean up "APR" language around inflation rewards
2021-04-21 19:02:03 -07:00
Michael Vines
568438aa6f
Prefix current validators with nbsp for easier sed-ing
2021-04-19 16:31:23 -07:00
Michael Vines
f14cf3ed1a
Add --number argument
2021-04-19 16:31:23 -07:00
Michael Vines
1824b5a2ce
Print the header as a footer when there's a large number of validators to show
2021-04-19 16:31:23 -07:00
Michael Vines
818c3198c1
Add line numbers to `solana validators` output
2021-04-19 16:31:23 -07:00
Michael Vines
b66faf7e80
Add --sort argument to `solana validators`
2021-04-19 16:31:23 -07:00
Michael Vines
1b63bdaf44
`solana validators`: Restore the meaning of "credits" in the JSON output
2021-04-19 13:01:40 -07:00
Michael Vines
f5f06904c3
`solana validators` now shows current epoch credits instead of lifetime credits
2021-04-19 10:19:30 -07:00
Tyera Eulberg
bb9d2fd07a
Cli: use get_inflation_rewards and limit epochs queried ( #16408 )
...
* Fix block-with-limit when not finalized blocks found
* Enable confirmed commitment in getInflationReward
* Use get_inflation_rewards in cli
* Line up rewards output
* Add range validator
* Change cli epoch arg -> num epochs
* Add solana inflation rewards subcommand
* Consolidate epoch rewards meta
2021-04-08 10:57:33 -06:00
Jack May
067b390194
cli cleanup ( #15990 )
2021-03-18 18:29:42 +00:00
Jack May
7f500d610c
Add Close instrruction and tooling to upgradeable loader ( #15887 )
2021-03-17 21:39:29 -07:00
Trent Nelson
672e9c640f
CLI: Support dumping the TX message in sign-only mode
2021-03-16 19:20:54 -06:00
Tyera Eulberg
3726358f51
Cli: better estimate of epoch time elapsed/remaining ( #15893 )
...
* Add rpc_client api for getRecentPerformanceSamples
* Prep fn for variable avg slot time
* Use recent-perf-samples to more-accurately estimate epoch completed times
* Spell out average
2021-03-16 08:35:27 +00:00
Jack May
2177e0aff8
cli: add program show for non-upgradeable programs ( #15707 )
2021-03-04 19:42:15 +00:00
Trent Nelson
21e08b5b2c
CLI: Support querying fees by blockhash
2021-02-27 12:45:14 -07:00
Trent Nelson
ebd56f7ff4
cli-output: Minor refactor of CliFees
2021-02-27 12:45:14 -07:00
Tyera Eulberg
1ad2c9f741
Revert "Make UiTokenAmount::ui_amount a String ( #15447 )" ( #15542 )
...
This reverts commit d14374bc9f
.
2021-02-25 21:53:40 +00:00
Tyera Eulberg
d521dfe63c
Implement OutputFormat for confirm in Cli and ledger-tool bigtable ( #15528 )
...
* Add CliTransaction struct
* Impl DisplayFormat for decode-transaction
* Add block-time to transaction println, writeln
* Impl DisplayFormat for confirm
* Use DisplayFormat in ledger-tool bigtable confirm
2021-02-25 14:15:52 -07:00
Tyera Eulberg
d5f235d997
Implement OutputFormat for block in Cli and ledger-tool bigtable ( #15524 )
...
* Impl DisplayFormat for solana block
* Use DisplayFormat in ledger-tool bigtable block
2021-02-24 16:14:34 -07:00
Tyera Eulberg
d14374bc9f
Make UiTokenAmount::ui_amount a String ( #15447 )
...
* Make UiTokenAmount::ui_amount a String
* Fixup solana-tokens
* Ignore spl downstream-project
2021-02-22 13:05:45 -07:00
Ryo Onodera
ab0f4c69aa
Improve vote-account for logical flow/reasoning ( #15237 )
...
* Improve vote-account for logical flow/reasoning
* Clean up
* Update messages
2021-02-11 21:24:20 +09:00