github.com/cosmos/cosmos-sdk@v0.50.10/x/group/codec/doc.go (about) 1 /* 2 Package codec provides a singleton instance of Amino codec that should be used to register 3 any concrete type that can later be referenced inside a MsgSubmitProposal instance so that they 4 can be (de)serialized properly. 5 6 Amino types should be ideally registered inside this codec within the init function of each module's 7 codec.go file as follows: 8 9 func init() { 10 // ... 11 12 RegisterLegacyAminoCodec(govcodec.Amino) 13 RegisterLegacyAminoCodec(groupcodec.Amino) 14 15 } 16 17 The codec instance is put inside this package and not the x/gov/types package in order to avoid any dependency cycle. 18 */ 19 package codec