cosmos-sdk/codec/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
..
any.go Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
any.pb.go All Makefile proto commands use Docker (#7931) 2020-11-13 16:36:58 +00:00
compat.go Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
compat_test.go x/auth/ante: Migrate tests to use the new client.TxConfig (#6661) 2020-07-20 08:30:12 -04:00
doc.go Merge PR #6076: Proto Any init + evidence 2020-05-05 10:28:20 -04:00
interface_registry.go Throw an error on duplicate registration (#7729) 2020-10-29 15:32:47 +00:00
types_test.go Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00