Commit Graph

6440 Commits

Author SHA1 Message Date
Jonathan Gimeno 8eb4808b0e
Add flag to FlagKeyringBackend to QueryTxsByEventsCmd (#5957) 2020-04-08 17:17:55 +02:00
SaReN ed9f488fd9
Merge PR #5941: Add proto compatible x/distribution tx cli 2020-04-08 11:05:14 -04:00
Jonathan Gimeno add93849bd
client/flags: bind keyring flag for query commands (#5956) 2020-04-08 15:00:59 +02:00
Marko d351a574a8
lint: migrate to review-dog (#5955)
golangci is being deprecated in April 15th.

Remove riot and add sims badge.
2020-04-08 14:47:24 +02:00
Alessio Treglia a1feca39c2
Enter the new keyring interface (#5904)
crypto/keyring:

`Keybase` interface gives way to its successor: `Keyring`. `LegacyKeybase`
interface is added in order to guarantee limited backward compatibility with
the old `Keybase` interface for the sole purpose of migrating keys across
the new keyring backends.

The package no longer depends on the `github.com/types.Config`
singleton.

`SupportedAlgos` and `SupportedLedgerAlgos` methods have been removed.
The keyring just fails when trying to perform an action with an unsupported
algorithm.

crypto/ subdirs reorganization:

`crypto/keys/hd` was moved to `crypto/hd`, which now groups together
all HD wallets related types and utilities.

client/input:

* Removal of unnecessary `GetCheckPassword`, `PrintPrefixed` functions.
* `GetConfirmation`'s signature changed to take in a io.Writer for better integration
  with `cobra.Command` types.

client/context:

* In-memory keyring is allocated in the context when `--gen-only` flag is passed
  in. `GetFromFields` does no longer silently allocate a keyring, it takes one as
  argument.

Co-authored with @jgimeno

Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
2020-04-08 11:38:28 +02:00
Federico Kunze 7325692550
x/staking: skip HistoricalInfo in simulations (#5949)
* x/staking: import and export HistoricalInfo

* staking/types: add HistoricalInfo to GenesisState

* changelog

* add staking module to app BeginBlockers

* remove JSON files

* address comments from review

* add HistoricalInfoKey to skipped prefixes

* fix DiffKVStores

* rm JSON
2020-04-07 22:33:30 +00:00
Alexander Bezobchuk 7b21c54359
Fix IncrementSequenceDecorator (#5950)
* Fix IncrementSequenceDecorator

* Update PR #

* Update godoc

* Add TestIncrementSequenceDecorator test
2020-04-07 18:32:37 +00:00
Federico Kunze 7d6033ea58
Merge PR #5938: x/genutil: fix InitializeNodeValidatorFiles 2020-04-06 12:33:15 -04:00
Alessio Treglia 5098548b8c
run go mod tidy (#5937) 2020-04-06 17:40:35 +02:00
Alexander Bezobchuk bc9949e383
Merge PR #5936: Handle and return error on tx.SetMsgs 2020-04-06 10:24:40 -04:00
dependabot-preview[bot] 498bb185d3
Bump github.com/tendermint/iavl from 0.13.2 to 0.13.3 (#5933)
Bumps [github.com/tendermint/iavl](https://github.com/tendermint/iavl) from 0.13.2 to 0.13.3.
- [Release notes](https://github.com/tendermint/iavl/releases)
- [Changelog](https://github.com/tendermint/iavl/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tendermint/iavl/compare/v0.13.2...v0.13.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-04-06 10:15:50 -04:00
dependabot-preview[bot] 597093d8be
Bump github.com/pelletier/go-toml from 1.6.0 to 1.7.0 (#5932)
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Commits](https://github.com/pelletier/go-toml/compare/v1.6.0...v1.7.0)

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-06 10:05:44 -04:00
colin axner dfbc6cd81b
Merge PR #5920: Fix validate cmd bug 2020-04-04 14:24:11 -04:00
SaReN 7f78e61b93
Merge PR #5915: Tx Client Migration: x/staking 2020-04-03 16:06:37 -04:00
Alexander Bezobchuk 22422c6de1
Merge PR #5927: Fix parseQueryResponse 2020-04-03 10:59:46 -04:00
Alexander Bezobchuk e0c1774e20
Merge PR #5916: Migrate x/crisis tx command 2020-04-02 15:07:47 -04:00
Aaron Craelius e8a82f78ca
Merge PR #5894: ADR 021 - Protocol Buffer Query Support 2020-04-02 12:07:34 -04:00
Jonathan Gimeno cc2a79ce12
x/staking: fix REST calls panic on some method call (#5906)
Improve message validation to prevent REST handlers
from panicking.
2020-04-02 15:23:45 +02:00
Alessio Treglia f7c0578fea
crypto/keyring: drop password from keyWriter internal interface (#5899)
Add an extra test case to increase coverage.
2020-04-01 16:46:47 +02:00
Alexander Bezobchuk a368988e17
Merge PR #5902: update docs/cn: match newest Chinese docs in intro and basics 2020-04-01 10:13:59 -04:00
eosforce c87a1e00de docs(cn): match new docs in intro and basics 2020-04-01 20:52:04 +08:00
Alessio Treglia ca19fbc5f8
types/rest: add convenience functions for error checking (#5900) 2020-04-01 09:50:22 +02:00
Alessio Treglia 35e15521dc
x/auth: use validateMaxMemoCharacters() for memo fields (#5898)
Add test cases.
2020-03-31 16:18:02 +02:00
Alessio Treglia b239cc8bb4
client: show defaults when config help screen is displayed (#5896)
Closes: #5895

Thanks: @njmurarka for pointing this out.
2020-03-31 16:05:18 +02:00
dependabot-preview[bot] fd2bb9aab6
Bump github.com/tendermint/tm-db from 0.5.0 to 0.5.1 (#5897)
Bumps [github.com/tendermint/tm-db](https://github.com/tendermint/tm-db) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/tendermint/tm-db/releases)
- [Changelog](https://github.com/tendermint/tm-db/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tendermint/tm-db/compare/v0.5.0...v0.5.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-03-31 10:04:42 -03:00
Federico Kunze 6a6fd1c7ac
patch auth register cdc (#5892)
* readd RegisterAccountTypeCodec

* fix

* remove seal

* update BaseAccount and StdSig to use amino codec

* remove comments

* rename

* changelog

* rename
2020-03-30 22:09:28 +00:00
Jonathan Gimeno e5bde0199e
client: support offline flag in config command (#5856)
Update config hardcoded keys

Add test cases.

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-03-30 23:55:28 +02:00
Alessio Treglia 2a7a408d35
crypto/keyring: deprecate old keybase (#5889)
Remove the Update method from the Keybase interface.

Remove redundant lazy keybase implementation altogether.

Created LegacyKeybase interface to restrict capabilities to
only those required by keys commands that deal with
legacy keybase such as update and migrate.

Rename keyring.New() -> keyring.NewLegacy().

Rename client/keys.NewKeyBaseFromDir -> NewLegacyKeyBaseFromDir.

crypto/keyiring.NewInMemory() now returns a in-memory keyring.
BackendMemory is added yet not exposed via command line
--keyring-backend flag. keys add uses it when --dry-run flag
is on.
2020-03-30 20:30:50 +02:00
Alessio Treglia db76afe840
crypto/keyring: change addrKey to store chain-agnostic addresses (#5858)
Keyrings store keys by name and hexbytes representation
of address. This turns keyring internal storage more
chain-agnostic and types.Config independent.

Obsolete Keybase internal state representation is not affected.
2020-03-30 16:54:01 +02:00
dependabot-preview[bot] b6c45b76a7
Bump github.com/spf13/cobra from 0.0.6 to 0.0.7 (#5891)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.6 to 0.0.7.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v0.0.6...0.0.7)

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-30 10:49:54 -03:00
Alexander Bezobchuk 3c1ce5bc41
Merge PR #5887: types/errors: make Wrap() work like github.com/pkg/errors.Wrap 2020-03-28 12:37:57 -04:00
Alessio Treglia 0ba4e3a630
types/errors: make Wrap() work like github.com/pkg/errors.Wrap
Wrap(ErrInsufficientFunds, "40 < 500") returns strings like
"insufficient funds: 40 < 50". Although he function syntax
fits perfectly SDK app developers use case and as such it
should not be changed, the interface is still counter-intuitive
as most Golang developers may reasonably expect a different
result similar to what other popular libraries' (see [1])
would produce (e.g. "40 < 500: insufficient funds").

Follow up PR of #5876.

[1] https://godoc.org/github.com/pkg/errors#Wrapf
2020-03-28 00:19:44 +01:00
Alexander Bezobchuk 77dd247a57
Merge PR #5885: Added proto compatible x/slashing clients 2020-03-27 14:41:15 -04:00
Sahith Reddy Narahari 04c9730eab Merge branch 'master' of github.com:cosmos/cosmos-sdk into sahith/slashing-tx-proto 2020-03-27 22:56:30 +05:30
Sahith Reddy Narahari f4dd7f5a52 Did minor code cleanup 2020-03-27 22:55:56 +05:30
Alexander Bezobchuk 6878329ca4
Merge PR #5884: move some sims to github actions 2020-03-27 13:19:40 -04:00
Sahith Reddy Narahari 32699c5985 Added proto compatible x/slashing clients 2020-03-27 21:21:53 +05:30
Marko Baricevic a495e7daee
revert proto changes 2020-03-27 16:04:55 +01:00
Marko Baricevic db39408c44
test pwd 2020-03-27 15:51:04 +01:00
Marko Baricevic 2d45935048
remove shell 2020-03-27 15:48:30 +01:00
Marko Baricevic a4efd33488
move proto to github actions 2020-03-27 15:46:24 +01:00
Marko Baricevic bb0922d564
fix circle 2020-03-27 15:43:01 +01:00
Marko Baricevic 72ceb5cc6c
remove make from proto 2020-03-27 15:42:27 +01:00
Marko Baricevic 2be5378d2a
cleanup redundant ci 2020-03-27 15:38:55 +01:00
Marko Baricevic f7f8543dcb
add back multi seed long 2020-03-27 15:37:23 +01:00
Marko Baricevic 702c44ff6b
move some sims to github actions 2020-03-27 15:34:16 +01:00
Alessio Treglia 5db6d54825
merge crypto/keys/mintkey into crypto/ (#5880)
crypto/keys/mintkey provides only armoring functions.
It makes very little sense to keep it standalone and
under a name which does not really seem consistent with
the features it provides.
2020-03-27 10:24:19 +01:00
Alexander Bezobchuk ad8652df89
Merge PR #5881: exclude generated code from code coverage statistics 2020-03-26 19:58:44 -04:00
Alessio Treglia fa7024d3e4
exclude generated code from code coverage statistics
.codecov.yml is not working. We should filter out all
generated code that we don't want to be included in
the coverage report.
2020-03-27 00:05:44 +01:00
Alexander Bezobchuk 6a9c8bcb78
Merge PR #5865: Proto Client Migration: x/bank 2020-03-26 14:25:57 -04:00