github.com/Finschia/finschia-sdk@v0.48.1/x/authz/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 MsgGrant or MsgExec 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(authzcodec.Amino) 13 } 14 15 The codec instance is put inside this package and not the x/authz package in order to avoid any dependency cycle. 16 */ 17 package codec