cosmos-sdk/x/staking/types
Robert Zaremba b18a033a17
Clean Any interface (#8167)
* Clean Any interface

+ removed Any.Pack method. This method is not needed, because we have specialized
  functions for createing new Any values. It could be used inappropriately with existing
  Any objects.

* removed deprecated PackAny function

* fix linter issue

* update nil handling

* NewAnyWithValue returns error on nil instead of panic

* NewMsgCreateValidator: handle nil pubkey

* Remove AsAny and tx builder workarounds

* fix linter issue

* Add AsAny methods to TxBuilder and StdTxConfig, but keep intoAny interface private

* remove tx.PubKeyToAny

* cosmetic updates

* fix method interface

* move ProtoTxProvider to x/auth/tx
2020-12-18 14:55:25 +00:00
..
codec.go RegisterInterfaces registers service Msg type_urls (#7671) 2020-10-28 19:20:45 +00:00
commission.go Exclude proto files from format (#5706) 2020-02-27 07:53:22 -03:00
commission_test.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
data_test.go Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
delegation.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
delegation_test.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
errors.go Merge PR #5665: Bump Module ABCI Error Codes 2020-02-18 14:43:00 +01:00
events.go Merge PR #5102: Make events const and alias them (if internal) 2019-09-25 09:17:02 -07:00
expected_keepers.go Use enum instead of int32 for BondStatus (#7499) 2020-10-12 13:56:02 +00:00
exported.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
genesis.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
genesis.pb.go Change `address` from bytes to bech32 strings (#7242) 2020-09-25 10:25:37 +00:00
historical_info.go Sort validators like tendermint in HistoricalInfo (#7691) 2020-10-29 12:17:37 +00:00
historical_info_test.go Rename GRPCRouter (#8079) 2020-12-04 15:06:50 +00:00
hooks.go various linter fixes (#6106) 2020-05-02 21:26:59 +02:00
keys.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
keys_test.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
msg.go Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
msg_test.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
params.go Update default historical header number for stargate (#8178) 2020-12-17 19:50:03 +00:00
params_test.go Rename GRPCRouter (#8079) 2020-12-04 15:06:50 +00:00
pool.go x/staking: gRPC query Service (#6490) 2020-07-14 17:41:30 +00:00
querier.go x/staking: gRPC query Service (#6490) 2020-07-14 17:41:30 +00:00
query.pb.go Change `address` from bytes to bech32 strings (#7242) 2020-09-25 10:25:37 +00:00
query.pb.gw.go Change `address` from bytes to bech32 strings (#7242) 2020-09-25 10:25:37 +00:00
staking.pb.go docker: proto (#7893) 2020-11-12 09:49:46 +00:00
tx.pb.go ibc: refactor proto files (#7689) 2020-10-27 14:14:07 +00:00
validator.go Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
validator_test.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00