behzad nouri
9524c9dbff
patches errors from clippy::uninlined_format_args
...
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2022-12-06 19:32:15 +00:00
Brooks Prumo
d1ba42180d
clippy for rust 1.65.0 ( #28765 )
2022-11-09 19:39:38 +00:00
Trent Nelson
2579c0fcb5
cli-output: add config ctor for CliAccount
2022-10-27 21:44:46 -07:00
Trent Nelson
a2857cd1e4
cli-ouput: add ctor for `CliAccount`
2022-10-20 11:22:11 -07:00
Tyera Eulberg
360ca07a40
Add serialization-control enum for RPC Options ( #27676 )
...
* Add test to verify output when deserializing/reserializing empty fields
* Add test to verify serialization from UiTransactionStatusMeta constructors
* Add OptionSerializer
* Use OptionSerializer for inner_instructions
* Use OptionSerializer for loaded_addresses
* Remove Default variant, use into instead
* Add as_ref implementation
* Use OptionSerializer for log_messages and rewards
* Use OptionSerializer for token_balances
* Use OptionSerializer for return_data
* Use OptionSerializer for compute_units_consumed
2022-09-14 16:58:50 -06:00
Tyera Eulberg
0bfc188375
Update getBlock/getTransaction rpc handling of return_data ( #27672 )
...
* Move return_data type to transaction-status crate
* Use UiTransactionReturnData in UiTransactionStatusMeta
* Fixup display handling
* Update docs
2022-09-08 21:10:57 +00:00
Tyera Eulberg
b8b3d723da
Use new client crates ( #27360 )
...
* Update ancillary cli crates
* Update cli
* Update command-line tools
* Update rpc, etc
* Update client-test
* Update core, validator
* Update local-cluster
2022-08-24 10:47:02 -06:00
Justin Starry
d8380e4d4a
cli: Add subcommands for address lookup tables ( #27123 )
...
* cli: Add subcommand for creating address lookup tables
* cli: Add additional subcommands for address lookup tables
* short commands
2022-08-18 22:12:53 +01:00
Richard Patel
270315a7f6
transaction-status, storage-proto: add compute_units_consumed ( #26528 )
...
* transaction-status, storage-proto: add compute_units_consumed
* fix bpf test
Co-authored-by: Justin Starry <justin@solana.com>
2022-08-06 17:14:31 +00:00
dependabot[bot]
65e670725a
chore: bump indicatif from 0.16.2 to 0.17.0 ( #26890 )
...
* chore: bump indicatif from 0.16.2 to 0.17.0
Bumps [indicatif](https://github.com/console-rs/indicatif ) from 0.16.2 to 0.17.0.
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/compare/0.16.2...0.17.0 )
---
updated-dependencies:
- dependency-name: indicatif
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* [auto-commit] Update all Cargo lock files
* Accommodate api changes
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-08-05 21:11:17 +00:00
Michael Vines
1404860be3
Adjust `solana validators -n` header to be correctly aligned with the columns
2022-07-27 19:59:25 -06:00
Brooks Prumo
10a868dac7
cli-output: Add CliBalance ( #26703 )
2022-07-21 18:31:38 -05:00
Michael Vines
9547b00f4c
epoch-info: Add epochCompletedPercent field to json output
2022-07-09 14:26:12 -07:00
Trent Nelson
f93fd6477e
cli: make `solana validators` line numbering respect sort reversal
2022-06-29 18:13:04 -06:00
Michael Vines
b05c7d91ed
Fix derive_partial_eq_without_eq clippy lint
2022-05-22 22:22:21 -07:00
Justin Starry
4e352bffaf
cli: Fix display of staked validators ( #25216 )
2022-05-17 14:32:52 +08:00
steviez
2a770e9726
Use unsigned_abs() instead of casting abs() ( #24521 )
2022-04-20 12:01:33 -05:00
Tyera Eulberg
8a73badf3d
Move helpers to solana-cli-config ( #24246 )
...
* Add solana-cli-utils crate
* Use cli-utils in cli
* Move println fn to cli-output
* Use cli-config instead
2022-04-11 12:56:51 -06:00
Trent Nelson
91993d89b0
cli: sort option for validators by version
2022-04-11 00:47:47 -06:00
Jon Cinque
7af48465fa
transaction-status: Add return data to meta ( #23688 )
...
* transaction-status: Add return data to meta
* Add return data to simulation results
* Use pretty-hex for printing return data
* Update arg name, make TransactionRecord struct
* Rename TransactionRecord -> ExecutionRecord
2022-03-22 23:17:05 +01: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
Justin Starry
6ff0be6a82
Clean up demote program write lock feature ( #21949 )
...
* Clean up demote program write lock feature
* fix test
2021-12-16 17:27:22 -05: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
Tyera Eulberg
decec3cd8b
Demote write locks on transaction program ids ( #19593 )
...
* Add feature
* Demote write lock on program ids
* Fixup bpf tests
* Update MappedMessage::is_writable
* Comma nit
* Review comments
2021-09-04 03:05:30 +00: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
Justin Starry
e806d31224
Optimize Message::is_non_loader_key method ( #18579 )
2021-07-12 10:42:22 -05:00
Justin Starry
100fabf469
Remove feature switch for demoting sysvar write locks ( #18373 )
2021-07-06 21:22:22 +00: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
Michael Vines
9541411c15
Plumb transaction-level rewards (aka "rent debits") into the `getTransaction` RPC method
2021-05-27 03:05:05 +00:00
Trent Nelson
cb5e000615
CLI: Print gossip nodes with `cli-output` crate
2021-05-06 07:49:47 +00:00