cosmos-sdk/codec
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
..
legacy Fix CryptoCdc inconsistent (#7987) 2020-12-02 14:50:50 +01:00
types Clean Any interface (#8167) 2020-12-18 14:55:25 +00:00
unknownproto unknownproto: check result from protowire.ConsumeFieldValue and return an error (#7770) 2020-11-09 17:58:13 +00:00
amino.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
amino_codec.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
amino_codec_test.go Add UnpackInterfaces to BroadcastReq (#8118) 2020-12-09 11:05:12 +00:00
any_test.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
codec.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
codec_common_test.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
json.go Add ADR 031 BaseApp and codec infrastructure (#7519) 2020-10-15 13:07:59 +00:00
proto_codec.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
proto_codec_test.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
yaml.go docs: Update the code.MarshalYAML docs (#7496) 2020-10-09 14:08:02 +00:00
yaml_test.go Migrate BaseAccount PubKey to use Any (#7268) 2020-09-25 08:41:16 +00:00