mergify[bot]
fe775a9716
CLI BIP32 prep: KeypairUrl
refactor (backport #16592 ) ( #16605 )
...
* clap-utils: Rename KeypairUrl to SignerSource
(cherry picked from commit 09dcc9ea04
)
* clap-utils: Reduce SignerSource's visibility
(cherry picked from commit c5ab3ba6f1
)
* clap-utils: Use `uriparse` crate to parse `SignerSource`
(cherry picked from commit 5d1ef5d01d
)
* clap-utils: Add explicit schemes for `ask` and `file` `SignerSource`s
(cherry picked from commit 6444f0e57b
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-16 21:14:31 +00:00
mergify[bot]
b3488e0139
Cli: move airdrop to rpc requests ( #16557 ) ( #16564 )
...
* Add recent_blockhash to requestAirdrop
* Move tx confirmation to separate method
* Add RpcClient airdrop methods
* Request cli airdrop via RpcClient
* Pass optional faucet_addr into TestValidator and fix tests
* Update client/src/rpc_client.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 7dfb51c0b4
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-15 07:35:19 +00:00
Michael Vines
4ef3a679a4
Bump version to v1.6.6
2021-04-14 10:27:02 -07:00
mergify[bot]
935a836a7d
bump solana_rbpf from 0.2.5 to 0.2.7 (backport #16515 ) ( #16525 )
...
* bump solana_rbpf from 0.2.5 to 0.2.7 (#16515 )
(cherry picked from commit f7eadd9d70
)
# Conflicts:
# cli/Cargo.toml
# programs/bpf/Cargo.toml
# programs/bpf_loader/Cargo.toml
# programs/bpf_loader/src/syscalls.rs
* Fix conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Jack May <jack@solana.com >
2021-04-13 23:53:48 +00:00
mergify[bot]
e8ca35f9ec
Deprecate RpcClient methods, RpcRequest variants ( #16516 ) ( #16519 )
...
* Deprecate RpcClient methods, RpcRequest variants
* Update cli to getSupply
(cherry picked from commit ccb11a939f
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-13 22:23:39 +00:00
mergify[bot]
723e7f11b9
Simplify some pattern-matches ( #16402 ) ( #16446 )
...
When those match an exact combinator on Option / Result.
Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust ).
(cherry picked from commit b08cff9e77
)
Co-authored-by: François Garillot <4142+huitseeker@users.noreply.github.com >
2021-04-08 20:45:01 +00:00
mergify[bot]
f7211d3c07
Cli: use get_inflation_rewards and limit epochs queried ( #16408 ) ( #16444 )
...
* 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
(cherry picked from commit bb9d2fd07a
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-08 18:16:04 +00:00
mergify[bot]
7f62f4f621
CLI: Fix rent
panic ( #16417 ) ( #16426 )
...
* CLI: Fix `rent` panic on non-numeric input (+monikers)
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit c5c3ae0203
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-07 18:04:20 +00:00
mergify[bot]
f6780d72b1
Faucet: repurpose cap and slice args to apply to single IPs (bp #16381 ) ( #16400 )
...
* Faucet: repurpose cap and slice args to apply to single IPs (#16381 )
* Single use stmt
* Log request IP
* Switch cap and slice to apply per IP
* Use SOL in logs, error msgs
* Use thiserror instead of overloading io::Error
* Return memo transaction for requests that exceed per-request-cap
* Handle faucet memos in cli
* Add some docs, esp about memo transaction
* Use SOL symbol & standardize memo
Co-authored-by: Michael Vines <mvines@gmail.com >
* Differentiate faucet tx-length errors
* Populate signature in cli airdrop memo case
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 03d3ae1cb9
)
# Conflicts:
# Cargo.lock
# client/Cargo.toml
# faucet/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-04-06 08:48:10 +00:00
mergify[bot]
0cf1894ede
issue #10831 : added --with-memo option to all cli commands that submit (bp #16291 ) ( #16387 )
...
* issue #10831 : added --with-memo option to all cli commands that submit (#16291 )
* issue #10831 : added --with-memo option to all cli commands that submit
transactions. Also, improve the block command to show UTF-8 string instead
of integer values for memo program data.
* Fixed tests and changed some syntax according to feedback.
* Use spl_memo id (all versions where applicable) instead of hardcoding id.
* Update Cargo.toml in programs/bpf.
* Update formatting via cargo fmt.
* Update to use spl_memo version 3.0.1, which simplifies package imports
(cherry picked from commit 364af3a3e0
)
# Conflicts:
# cli-output/Cargo.toml
# cli/Cargo.toml
* Fix conflicts
Co-authored-by: bji <bryan@ischo.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-04-05 23:14:16 +00:00
Tyera Eulberg
5da83c1491
Bump version to v1.6.5 ( #16361 )
2021-04-04 22:00:40 -06:00
sakridge
a788021181
Bump version to v1.6.4 ( #16345 )
2021-04-04 13:31:35 -07:00
mergify[bot]
527b20fbbd
nit: fix variable names ( #16283 ) ( #16295 )
...
(cherry picked from commit aa45e81b3e
)
Co-authored-by: Jack May <jack@solana.com >
2021-04-01 09:24:52 +00:00
mergify[bot]
a0c4b4e5fc
Rpc: enable getConfirmedSignaturesForAddress2 to return confirmed (not yet finalized) data ( #16281 ) ( #16293 )
...
* Update blockstore method to allow return of unfinalized signature
* Support confirmed sigs in getConfirmedSignaturesForAddress2
* Add deprecated comments
* Update docs
* Enable confirmed transaction-history in cli
* Return real confirmation_status; fill in not-yet-finalized block time if possible
(cherry picked from commit da27acabcc
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-01 06:30:36 +00:00
Trent Nelson
634959b3ab
Bump version to v1.6.3
2021-03-30 16:17:47 +00:00
Trent Nelson
03b21f2e9d
Bump version to v1.6.2
2021-03-30 00:06:01 -06:00
mergify[bot]
625773e5b8
Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data (bp #16142 ) ( #16160 )
...
* Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data (#16142 )
* Add Blockstore block and tx apis that allow unrooted responses
* Add TransactionStatusMessage, and send on bank freeze; also refactor TransactionStatusSender
* Track highest slot with tx-status writes complete
* Rename and unpub fn
* Add commitment to GetConfirmed input configs
* Support confirmed blocks in getConfirmedBlock
* Support confirmed txs in getConfirmedTransaction
* Update sigs-for-addr2 comment
* Enable confirmed block in cli
* Enable confirmed transaction in cli
* Review comments
* Rename blockstore method
(cherry picked from commit 433f1ead1c
)
# Conflicts:
# core/src/replay_stage.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-03-27 04:51:53 +00:00
mergify[bot]
64ce4a6203
solana transfer now requires --allow-unfunded-recipient if the recipient doesn't exist (bp #16060 ) ( #16067 )
...
* transfer now requires --allow-unfunded-recipient if the recipient doesn't exist
(cherry picked from commit 3dff5c9dee
)
* Avoid RPC in `--sign-only` mode
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit 6271665ba6
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-23 03:54:42 +00:00
mergify[bot]
fe87cb1cd1
Update to reqwest 0.11.2 ( #16000 )
...
(cherry picked from commit 02b81dd05d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-18 22:12:01 +00:00
mergify[bot]
1c8f6a836a
cli cleanup ( #15990 ) ( #15997 )
...
(cherry picked from commit 067b390194
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-18 20:03:04 +00:00
mergify[bot]
3d5ff7968e
rpc: Add config options limiting getConfirmedBlock response data ( #15970 ) ( #15995 )
...
* Add new confirmed block struct
* Add RpcConfirmedBlockConfig options
* Configure block response based on new options
* Add client api, use in cli fetch_epoch_rewards
* Update docs
* Apply review suggestions
(cherry picked from commit aa54c468ea
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-03-18 19:33:01 +00:00
Tyera Eulberg
d6160f7744
Avoid panic when validator doesn't have performance samples ( #15976 )
...
(cherry picked from commit ba33c9e18e
)
2021-03-18 08:28:31 -07:00
mergify[bot]
9e91a2c2fd
Add Close instrruction and tooling to upgradeable loader ( #15887 ) ( #15972 )
...
(cherry picked from commit 7f500d610c
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-18 06:02:57 +00:00
mergify[bot]
79fa7ef55c
CLI: Support dumping the TX message in sign-only mode ( #15933 )
...
(cherry picked from commit 672e9c640f
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-17 04:13:21 +00:00
mergify[bot]
899bd1572a
Show flags for accounts in tx by solana confirm ( #15804 ) ( #15906 )
...
* Show flags for accounts in tx by solana confirm
* Address review comments
* Improve comment a bit
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Further apply review suggestions
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 74aa32175b
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-03-16 10:43:06 +00:00
mergify[bot]
97ec4cd44e
Cli: better estimate of epoch time elapsed/remaining ( #15893 ) ( #15918 )
...
* 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
(cherry picked from commit 3726358f51
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-03-16 09:58:51 +00:00
Michael Vines
b1a90c3580
=1.6.1
2021-03-16 08:41:28 +00:00
Michael Vines
be00246fb5
Bump version to v1.6.1
2021-03-15 14:47:58 -06:00
Jack May
e1ceb430e3
cli: improve deploy error reporting ( #15806 )
2021-03-11 13:44:21 -08:00
DimAn
c078e01fa9
add catchup average speed and remaining time ( #15608 )
...
* add catchup average speed and remaining time
* code style and improve average time remaining calculation
* code style
* remove instant time remaining
* negative speed perceives better
* Some little improves and comments of catchup avg and eta
* format code of catchup avg and eta
* fix copy-paste error
2021-03-11 23:59:33 +09:00
Trent Nelson
24d18b3cf2
docs: add docs links for crates published to crates.io
2021-03-11 08:38:18 +00:00
Jeff Washington (jwash)
8a3135d17b
Account->AccountSharedData ( #15691 )
2021-03-09 15:06:07 -06:00
Jack May
2177e0aff8
cli: add program show for non-upgradeable programs ( #15707 )
2021-03-04 19:42:15 +00:00
Jack May
b20bf8ebb0
improve cli insufficient funds error messages
2021-03-02 20:07:34 -08:00
Jack May
d73af9c1dd
cli: don't overallocate upgradeable buffer accounts ( #15603 )
2021-03-02 00:45:53 -08:00
Jack May
fbb1012584
cli: dump non-upgradeable programs ( #15598 )
2021-03-01 18:11:45 -08: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
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
Michael Vines
879370a020
Improve help for split-stake-account
2021-02-22 12:49:23 -08:00
Michael Vines
f7c0b69fd4
Fix solana feature status stake % overflow
2021-02-22 11:49:27 -08:00
Michael Vines
5df36aec7d
Pacify clippy
2021-02-19 20:08:41 -08:00
Trent Nelson
700685c223
CLI: Add hidden support for SystemInstruction::TransferWithSeed
2021-02-19 23:20:40 +00:00
Trent Nelson
16e0a4b412
CLI: Make derived address seed.len() check a clap validator
2021-02-19 23:20:40 +00:00
Trent Nelson
84e7ba0b3f
CLI: Factor out ProgramId moniker resolution
2021-02-19 23:20:40 +00:00
Jack May
4648439f5c
cli: improve deploy resume interface ( #15418 )
...
* cli: improve deploy resume interface
* add docs
2021-02-19 11:06:05 -08:00
Tyera Eulberg
4e84869c8e
Send program deploy txs to up to 2 leaders ( #15421 )
2021-02-18 20:14:48 -07:00
Jack May
02432a548f
Cleanup old features ( #15391 )
2021-02-18 09:56:11 -08:00
Trent Nelson
7f7370c306
Re-allow clippy::integer_arithmetic at crate-level
2021-02-17 13:55:08 -07:00