Commit Graph

6194 Commits

Author SHA1 Message Date
Alexander Bezobchuk
e9dced87f8
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-03 09:40:57 -05:00
Aleksandr Bezobchuk
eedc6f6190
Fulfill MsgSubmitProposalI interface 2020-03-03 09:40:11 -05:00
Alessio Treglia
3349c971ae
increase types/module coverage up to 80% (#5740)
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-03 13:38:46 +00:00
seungyeon-hwang
70e829949c
crypto: print an error message if the password input failed (#5739) 2020-03-03 13:32:52 +00:00
Aleksandr Bezobchuk
05cef02b4d
Add MsgSubmitProposal back to codec 2020-03-02 17:24:10 -05:00
Aleksandr Bezobchuk
1a25cdae6f
Update tests 2020-03-02 17:21:00 -05:00
Aleksandr Bezobchuk
5f0c53da17
update tests 2020-03-02 16:46:28 -05:00
Aleksandr Bezobchuk
833368cc74
reintroduce old MsgSubmitProposal type 2020-03-02 16:29:10 -05:00
Aleksandr Bezobchuk
fe7b02231e
Update handler 2020-03-02 16:06:35 -05:00
Aleksandr Bezobchuk
fb42f8b2a0
types updates 2020-03-02 15:50:20 -05:00
Aleksandr Bezobchuk
81830807e7
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 15:07:51 -05:00
Alexander Bezobchuk
e45feae647
Merge PR #5738: Migrate Gov module to Simapp 2020-03-02 14:53:41 -05:00
Aleksandr Bezobchuk
7562c2765a
Update gov types 2020-03-02 14:13:42 -05:00
Aleksandr Bezobchuk
a89eb77841
Add equal option to upgrade proto types 2020-03-02 14:10:27 -05:00
Jonathan Gimeno
c0fd5cbda0
Merge branch 'master' into jonathan/4875-gov-use-simapp 2020-03-02 19:58:48 +01:00
Jonathan Gimeno
eba38af83d end of gov refactoring 2020-03-02 19:56:29 +01:00
Jonathan Gimeno
e266c40ce1 refactor vote test 2020-03-02 19:50:39 +01:00
Jonathan Gimeno
894b2e5897 refactor old tally test 2020-03-02 19:46:39 +01:00
Jonathan Gimeno
275b78f1c3 add TestTallyJailedValidator to simapp 2020-03-02 19:25:05 +01:00
Jonathan Gimeno
7d3430673e add tally test TestTallyDelgatorMultipleInherit 2020-03-02 19:17:31 +01:00
Alexander Bezobchuk
c0384a1b91
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 13:08:26 -05:00
Jonathan Gimeno
8d4d10d27f refactor TestTallyDelgatorMultipleOverride to use simapp 2020-03-02 18:52:45 +01:00
Aleksandr Bezobchuk
31dc2729fc
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 12:50:32 -05:00
Aleksandr Bezobchuk
e2b72141bf
Update keeper 2020-03-02 12:49:32 -05:00
Jonathan Gimeno
73e1e3a354 refactor TestTallyDelgatorInherit to use simapp 2020-03-02 18:49:14 +01:00
Aleksandr Bezobchuk
725e2dc2b4
Update gov codec interface 2020-03-02 12:44:55 -05:00
Jonathan Gimeno
9f251885f1 migreate TestTallyDelgatorOverride to simapp 2020-03-02 18:08:40 +01:00
Jonathan Gimeno
46a70d58fa migrate TestTallyOnlyValidatorsNonVoter to simapp 2020-03-02 18:01:10 +01:00
Jonathan Gimeno
759181c2cc migrate TestTallyOnlyValidatorsAbstainFails into simapp 2020-03-02 17:59:24 +01:00
Jonathan Gimeno
b83755fc1d migrate TestTallyOnlyValidatorsAbstainPasses to simapp 2020-03-02 17:57:39 +01:00
Jonathan Gimeno
c3b18dfb2f migrate TestTallyOnlyValidatorsVetoed test 2020-03-02 17:55:31 +01:00
Aleksandr Bezobchuk
081e62cb2d
Update codec 2020-03-02 11:54:43 -05:00
Alexander Bezobchuk
214cd2e648
Merge pull request #5735: crypto: cleanup, more testing 2020-03-02 11:39:25 -05:00
Jonathan Gimeno
84b7fe5bfa migrate TestTallyOnlyValidators51Yes to use simapp 2020-03-02 16:53:06 +01:00
Jonathan Gimeno
1cf4a7e330 migrate TestTallyOnlyValidators51No to use simapp 2020-03-02 16:50:39 +01:00
Jonathan Gimeno
88e3a22fc4 migrate TestTallyOnlyValidatorsAllYes to simapp 2020-03-02 16:47:06 +01:00
Jonathan Gimeno
e24734f72e migrate TestTallyNoQuorum to use simapp 2020-03-02 16:41:41 +01:00
Jonathan Gimeno
8c0d32c8a8 migrate TestTallyNoOneVotes to use simapp 2020-03-02 16:38:24 +01:00
Jonathan Gimeno
80bfd0d2dc migrate TestQueries to new test simapp 2020-03-02 16:22:36 +01:00
Jonathan Gimeno
2c231e2fa0 TestGetProposalsFiltered migrate to simapp 2020-03-02 16:10:19 +01:00
Jonathan Gimeno
00396145d5 migrate TestActivateVotingPeriod to simapp 2020-03-02 16:07:23 +01:00
Jonathan Gimeno
eedd2b2341 migrate part of proposal to simapp 2020-03-02 16:04:49 +01:00
Jonathan Gimeno
2afd22f37e migrate TestProposalQueues to use simapp 2020-03-02 15:59:55 +01:00
Jonathan Gimeno
0c938123d9 migrate TestIncrementProposalNumber to simap 2020-03-02 15:56:26 +01:00
Jonathan Gimeno
3fa47df519 migrate test TestDeposits from gov to simapp 2020-03-02 15:52:43 +01:00
Aleksandr Bezobchuk
8f131e2e0c
Fix and updates gov proto types 2020-03-02 09:14:17 -05:00
Alessio Treglia
9bd603ae88
crypto: cleanup, more testing
crypto.LedgerShowAddress() is a ledger specific function
and should takes acc address prefix instead of depending
on a sdk.Config singleton.

crypto/keys/mintkey:
- decryptPrivKey() return error instead of os.Exit()ing.
- encryptPrivKey() should panic instead of os.Exit() when
  bcrypt.GenerateFromPassword() call fails so that the
  caller is given a chance to recover().

crypto/keys:
- SignWithLedger() does not need to be method of
  baseKeybase. Method receiver is unused.
- ledgerInfo objecta may be pointers, type switch
  should handle both to avoid panics.
- keyringKeybase should not provide Update() at all.

More test cases are added to increase package crypto
and subpackages overall coverage.
2020-03-02 11:09:52 +00:00
Alexander Bezobchuk
f403cda2ce
Merge PR #5734: Tweak mergify config 2020-03-01 20:51:45 -05:00
Alexander Bezobchuk
75e45b0926
Merge branch 'master' into alessio/mergify-approvers-no-greater-than-1 2020-03-01 19:33:43 -05:00
Alessio Treglia
e0d029388d
fix DiffKVStores(), store/types gets 100% coverage (#5730)
* fix DiffKVStores(), store/types gets 100% coverage

DiffKVStores() used to return duplicated entries
in some cases.

Add test cases, aiming to reach 100% coverage for
store package.

Remove duplicate Cp function from the store package.
Same functionality is provided by types.CopyBytes().

* More test cases

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-02 00:27:03 +00:00