github.com/Finschia/finschia-sdk@v0.48.1/x/gov/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 14 } 15 16 The codec instance is put inside this package and not the x/gov/types package in order to avoid any dependency cycle. 17 */ 18 package codec