cosmos-sdk/x/distribution/keeper
Robert Zaremba 8eaf2ececc
Refactor x/staking Validation and Delegation tests based on MsgCreateValidator.Pubkey type change. (#7526)
* testing: refactore Validation and Delegation handling of x/staking

This Changeset introduces set of improvements for writing tests.

The idea is to create a testing subpackage which will provide functions
to make tests more dev-friendly and wrap higher level use-cases.
Here is a show-up of of creating a service for staking module
for tests.

This PR also changes the `x/staking/types.MsgCreateValidator.Pubkey` from string
to types.Any. This change motivated the other change to show the pattern I'm describing here.

* add validator checks

* type change fixes

* use deprecated

* adding test slashing

* new network comment update

* working on tests

* Fix TestMsgPkDecode test

* Add UnpackInterfaces to MsgCreateValidator

* Fix tests

* Convert bech32 pubkey to proto

* Fix test

* fix v039/migrate_test/TestMigrate

* fix tests

* testslashing: rename Service to Helper

* file rename

* update TestMsgDecode

Co-authored-by: blushi <marie.gauthier63@gmail.com>
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Co-authored-by: Cory Levinson <cjlevinson@gmail.com>
2020-10-19 13:04:55 +00:00
..
alias_functions.go Update x/auth to use Any (#6165) 2020-05-20 19:21:00 +00:00
allocation.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
allocation_test.go Refactor x/staking Validation and Delegation tests based on MsgCreateValidator.Pubkey type change. (#7526) 2020-10-19 13:04:55 +00:00
common_test.go x/auth: remove alias.go usage (#6440) 2020-06-17 14:42:27 -04:00
delegation.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
delegation_test.go Refactor x/staking Validation and Delegation tests based on MsgCreateValidator.Pubkey type change. (#7526) 2020-10-19 13:04:55 +00:00
fee_pool.go Merge PR #6010: Merge x/supply into x/bank 2020-04-20 11:22:12 -04:00
genesis.go 0.39->0.40 CLI `migrate` command (#6839) 2020-10-05 21:28:14 +00:00
grpc_query.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
grpc_query_test.go Refactor x/staking Validation and Delegation tests based on MsgCreateValidator.Pubkey type change. (#7526) 2020-10-19 13:04:55 +00:00
hooks.go various linter fixes (#6106) 2020-05-02 21:26:59 +02:00
invariants.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
keeper.go Start removing HybridCodec (init + auth, bank, distribution) (#6838) 2020-07-24 19:04:29 +00:00
keeper_test.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00
msg_server.go Refactor x/staking according to ADR 031 (#7556) 2020-10-16 14:53:49 +00:00
params.go client: rename CliContext to Context (#6290) 2020-06-01 12:46:03 +00:00
proposal_handler.go Change `address` from bytes to bech32 strings (#7242) 2020-09-25 10:25:37 +00:00
querier.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
querier_test.go Refactor x/staking Validation and Delegation tests based on MsgCreateValidator.Pubkey type change. (#7526) 2020-10-19 13:04:55 +00:00
store.go Favor marshal unmashal binare bare (#5799) 2020-03-13 19:58:43 +00:00
validator.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00