cosmos-sdk/x/evidence/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
..
grpc_query.go Rename proto Req/Res to Pagination (#6796) 2020-07-20 16:51:16 +00:00
grpc_query_test.go Rename proto Req/Res to Pagination (#6796) 2020-07-20 16:51:16 +00:00
infraction.go Merge PR #7251: Cleanup of evidence types 2020-09-08 09:33:53 -07:00
infraction_test.go Refactor x/staking Validation and Delegation tests based on MsgCreateValidator.Pubkey type change. (#7526) 2020-10-19 13:04:55 +00:00
init_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
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
msg_server.go Refactor x/evidence to ADR-031 (#7538) 2020-10-16 16:05:25 +00:00
querier.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00
querier_test.go Enable proto JSON generally and remove HybridCodec (#6859) 2020-08-13 13:20:02 +00:00