cosmos-sdk/x/slashing/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
..
common_test.go migrate TestHandleNewValidator to new simapp 2020-03-02 21:19:46 +01: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
grpc_query.go Change address from bytes to bech32 strings (#7242) 2020-09-25 10:25:37 +00:00
hooks.go linter: enable nolintlint (#6162) 2020-05-08 08:46:12 +00:00
infractions.go Merge PR #5627: Regen Network/Slashing protobuf 2020-02-20 01:04:13 +01:00
keeper_test.go Refactor x/staking Validation and Delegation tests based on MsgCreateValidator.Pubkey type change. (#7526) 2020-10-19 13:04:55 +00:00
keeper.go Remove hybrid codec usage (#6843) 2020-07-25 08:03:58 +00:00
msg_server.go [x/slashing] Implement Protobuf Msg Services (#7557) 2020-10-15 14:38:15 +00:00
params.go Merge PR #5627: Regen Network/Slashing protobuf 2020-02-20 01:04:13 +01: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
querier.go Change address from bytes to bech32 strings (#7242) 2020-09-25 10:25:37 +00:00
signing_info_test.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00
signing_info.go Slashing genesis types proto migration (#6881) 2020-08-04 12:58:36 +00:00
unjail.go Allow Unjail of Non-Bonded Jailed Validator (#6061) 2020-04-26 17:38:33 +00:00