cosmos-sdk/client
Gianguido Sora deaee53111
CLI/keys: define default supported keyring algorithms (#8825)
* define package-level supported Keyring algorithms

This commit lets developer define what algorithms Keyring supports instead of relying on just keyring.New options.

This change is needed since it allows us to support those algorithms in CLI commands too without subverting their current execution flow.

* read dry run cli flag as persistent command flag

* add dry run field to CLI command handling context

* use CLI context keyring instead of creating a new one

* keyring supported algorithms are used as if they were defaults, name them as such

* --dry-run value is now associated to client.context.Simulate

Since Simulate is now used in both tx and query commands, move its reading routine into ReadPersistentCommandFlags.

Removed DryRun from Context, since it's not needed anymore.

* rename supported algorithms variable

Co-authored-by: Alessio Treglia <alessio@tendermint.com>

* remove keyring algorithms global, let user set them via client.Context methods

* remove old keyring globals test

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
2021-03-18 08:27:03 +00:00
..
debug Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
docs Fix legacy rest api (#8434) 2021-02-26 08:28:48 +00:00
flags keyring: update documentation (#8839) 2021-03-11 15:17:43 +00:00
grpc gRPC gateway issue with colons in the account url path (#8649) 2021-02-22 11:30:45 +00:00
input client/keys: make add command's output parseable (#6603) 2020-07-05 13:22:49 +02:00
keys CLI/keys: define default supported keyring algorithms (#8825) 2021-03-18 08:27:03 +00:00
rest various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
rpc various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
tx keyring: remove hardcoded default passphrase on NewMnemonic (#8662) 2021-02-23 16:49:09 +00:00
account_retriever.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
broadcast.go client: remove redundant/repeated code (#8182) 2020-12-17 09:30:28 +00:00
broadcast_test.go tm: update to latest (#7376) 2020-09-23 13:44:40 +00:00
cmd.go CLI/keys: define default supported keyring algorithms (#8825) 2021-03-18 08:27:03 +00:00
cmd_test.go Limit context background (#8093) 2021-02-03 09:47:25 +00:00
context.go CLI/keys: define default supported keyring algorithms (#8825) 2021-03-18 08:27:03 +00:00
context_test.go Robert/api clientctx (#8107) 2020-12-08 20:17:40 +00:00
grpc_query.go Make gRPC requests go through tendermint Query (#8549) 2021-02-15 10:01:44 +00:00
grpc_query_test.go Add ADR 031 BaseApp and codec infrastructure (#7519) 2020-10-15 13:07:59 +00:00
query.go Add fee grant module (#8061) 2021-01-29 19:54:51 +00:00
test_helpers.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
tx_config.go Add fee grant module (#8061) 2021-01-29 19:54:51 +00:00
utils.go add page flag for CLI queries (#6824) 2020-07-24 08:17:11 +00:00
utils_test.go client: fix Paginate's arguments validation (#6205) 2020-05-13 13:14:43 +00:00