Commit Graph

287 Commits

Author SHA1 Message Date
Jonathan Gimeno
2e42f9cb74
Favor marshal unmashal binare bare (#5799)
* change abci file to use BinaryBare

* change all calls to EncodeLengthPrefixed to BinaryBare in distribution keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in mint keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in auth keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in distribution keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in staking keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in staking keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in gov keeper store.

* change all calls to EncodeLengthPrefixed to BinaryBare in slashing keeper store.

* update decoder test

* migrate decoder

* migrate gov simulation decoder

* migrate baseapp_test

* refactor QuerySubspace

* refactor coedc std codec

* migrate keybase

* migrate iavl store

* migrate root multi

* migrate ante basic

* migrate tx type to bare

* migrate auth client

* update auth types

* update decoder

* migrate supply decoder

* migrate stake encoding

* migrate staking simulation

* migrate genutil

* migrate simapp test helpers

* migrate docs

* upgrade changelog

* Update CHANGELOG.md

Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-13 19:58:43 +00:00
Alexander Bezobchuk
88d01a9869
Remove redundant staking APIs (#5755) 2020-03-06 13:40:50 +00:00
Jonathan Gimeno
5c4ace2548 Merge branch 'jonathan/5569-create-module-account-on-init-genesis' of github.com:cosmos/cosmos-sdk into jonathan/5569-create-module-account-on-init-genesis 2020-03-05 22:11:35 +01:00
Jonathan Gimeno
e45be08eb1 create module account on init for FeeCollectorName and tests for other module accounts 2020-03-05 22:11:05 +01:00
Aleksandr Bezobchuk
4dac1abebf
Update imports 2020-03-05 09:40:43 -05:00
Aleksandr Bezobchuk
81830807e7
Merge branch 'master' into bez/5444-gov-proto-enc 2020-03-02 15:07:51 -05:00
Alexander Bezobchuk
9aa2088c23
Update x/staking/keeper/keeper.go 2020-02-28 09:59:06 -08:00
Jonathan Gimeno
60293dd2e6
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-27 17:51:14 +01:00
Jonathan Gimeno
d279066285 remove duplicated func 2020-02-27 16:47:59 +01:00
Alessio Treglia
5a2e59ebb2
Exclude proto files from format (#5706)
* Don't change proto files on make format

The format target does not need to depend on tools.
Thus remove dependency.

* Run make format

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 07:53:22 -03:00
Jonathan Gimeno
4de26fd67a fix lint errors 2 2020-02-26 16:35:04 +01:00
Jonathan Gimeno
14469ccc74 fix lint errors 2020-02-26 16:29:48 +01:00
Jonathan Gimeno
c94a98f459 fix based on PR comments 2020-02-26 16:05:12 +01:00
Jonathan Gimeno
1d18f8839c remove create test public keys 2020-02-26 15:57:41 +01:00
Jonathan Gimeno
64c2971c6f remove test_common 2020-02-26 15:51:45 +01:00
Jonathan Gimeno
bbbbc61276 end refactor handler_test 2020-02-26 15:48:51 +01:00
Jonathan Gimeno
015fd43f51 refactor TestMultipleUnbondingDelegationAtUniqueTimes and TestUnbondingWhenExcessValidators 2020-02-26 15:44:15 +01:00
Jonathan Gimeno
9381500fbc refactor TestMultipleRedelegationAtUniqueTimes and TestMultipleUnbondingDelegationAtSameTime 2020-02-26 15:39:56 +01:00
Jonathan Gimeno
4e16a0861c refactor TestTransitiveRedelegation and TestMultipleRedelegationAtSameTime 2020-02-26 15:35:29 +01:00
Jonathan Gimeno
c58ec7f7b7 refactor TestUnbondingFromUnbondingValidator and TestRedelegationPeriod 2020-02-26 15:31:16 +01:00
Jonathan Gimeno
eb26b478b4 refactor TestUnbondingPeriod and TestValidatorQueue 2020-02-26 15:26:50 +01:00
Jonathan Gimeno
0fcf1e20d6 refactor TestJailValidator 2020-02-26 15:21:42 +01:00
Jonathan Gimeno
0e3b95857b refactor TestMultipleMsgDelegate 2020-02-26 15:19:39 +01:00
Jonathan Gimeno
d251f6436e refator TestMultipleMsgCreateValidator 2020-02-26 15:17:31 +01:00
Jonathan Gimeno
46d62ebfa9 refactor TestIncrementsMsgUnbond 2020-02-26 15:13:08 +01:00
Jonathan Gimeno
a07ed83dd2 refactor TestEditValidatorIncreaseMinSelfDelegationBeyondCurrentBond 2020-02-26 15:08:43 +01:00
Jonathan Gimeno
8ecd5b8954 refactor next 2020-02-26 15:06:52 +01:00
Jonathan Gimeno
3f319c2578 refactor TestIncrementsMsgDelegate 2020-02-26 15:04:40 +01:00
Jonathan Gimeno
ee21805282 refactor TestLegacyValidatorDelegations to use simapp 2020-02-26 14:52:34 +01:00
Jonathan Gimeno
c314b93789 temporary commit 2020-02-26 13:28:18 +01:00
Jonathan Gimeno
030f612b6c refactor TestInvalidPubKeyTypeMsgCreateValidator 2020-02-26 12:23:55 +01:00
Jonathan Gimeno
59ecf11a12 refactor TestDuplicatesMsgCreateValidator 2020-02-26 11:36:37 +01:00
Jonathan Gimeno
315572bcd2 refactor TestValidatorByPowerIndex 2020-02-26 11:33:25 +01:00
Jonathan Gimeno
399ea763ee refactor old genesis_test to use simapp 2020-02-26 10:47:39 +01:00
Jonathan Gimeno
194b97b1c1 git remove unused vars 2020-02-25 17:33:18 +01:00
Jonathan Gimeno
13f2138989 Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-25 15:48:13 +01:00
Jonathan Gimeno
a44bebc11c rename commont test 2020-02-25 15:31:22 +01:00
Jonathan Gimeno
b931c491ae rename 2020-02-25 15:29:53 +01:00
Jonathan Gimeno
632e65f575 move methods 2020-02-25 15:27:51 +01:00
Jonathan Gimeno
8f779b12b8 clean code 2020-02-25 15:11:52 +01:00
Jonathan Gimeno
9ae53260bf end refactoring validator_test 2020-02-25 14:07:01 +01:00
Jonathan Gimeno
b4ab8e5e07 refactor TestFullValidatorSetPowerChange test 2020-02-25 13:54:55 +01:00
Jonathan Gimeno
96216c3dac make test TestValidatorBondHeight pass 2020-02-25 13:51:48 +01:00
Jonathan Gimeno
99554926e8 refctor TestGetValidatorsEdgeCases to use simapp 2020-02-25 13:45:29 +01:00
Jonathan Gimeno
c7d68c59a9 refactor TestGetValidatorSortingMixed test to simap 2020-02-25 13:38:27 +01:00
Jonathan Gimeno
460619fa29 refactro TestGetValidatorSortingUnmixed to simapp 2020-02-25 13:27:05 +01:00
Jonathan Gimeno
9fa658c3f9 TestValidatorBasics 2020-02-25 13:23:22 +01:00
Jonathan Gimeno
ed401119e4 refactor TestSlashToZeroPowerRemoved 2020-02-25 13:18:49 +01:00
Jonathan Gimeno
385c5c556b refactor TestUpdateBondedValidatorsDecreaseCliff to simapp 2020-02-25 11:59:15 +01:00
Jonathan Gimeno
25681ad3ad refacor TestUpdateValidatorByPowerIndex to use simapp 2020-02-25 11:54:43 +01:00