github.com/lino-network/lino@v0.6.11/x/developer/types/codec.go (about) 1 package types 2 3 import ( 4 wire "github.com/cosmos/cosmos-sdk/codec" 5 ) 6 7 // Register concrete types on wire codec 8 func RegisterWire(cdc *wire.Codec) { 9 cdc.RegisterConcrete(DeveloperRegisterMsg{}, "lino/devRegister", nil) 10 cdc.RegisterConcrete(DeveloperUpdateMsg{}, "lino/devUpdate", nil) 11 cdc.RegisterConcrete(DeveloperRevokeMsg{}, "lino/devRevoke", nil) 12 cdc.RegisterConcrete(IDAIssueMsg{}, "lino/IDAIssue", nil) 13 cdc.RegisterConcrete(IDAMintMsg{}, "lino/IDAMint", nil) 14 cdc.RegisterConcrete(IDATransferMsg{}, "lino/IDATransfer", nil) 15 cdc.RegisterConcrete(IDAConvertFromLinoMsg{}, "lino/IDAConvertFromLino", nil) 16 cdc.RegisterConcrete(IDAAuthorizeMsg{}, "lino/IDAAuthorize", nil) 17 cdc.RegisterConcrete(UpdateAffiliatedMsg{}, "lino/UpdateAffiliated", nil) 18 } 19 20 var ModuleCdc = wire.New() 21 22 func init() { 23 RegisterWire(ModuleCdc) 24 wire.RegisterCrypto(ModuleCdc) 25 ModuleCdc.Seal() 26 }