github.com/lino-network/lino@v0.6.11/x/vote/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(StakeInMsg{}, "lino/stakeIn", nil)
    10  	cdc.RegisterConcrete(StakeOutMsg{}, "lino/stakeOut", nil)
    11  	cdc.RegisterConcrete(ClaimInterestMsg{}, "lino/claimInterest", nil)
    12  	cdc.RegisterConcrete(StakeInForMsg{}, "lino/stakeInFor", nil)
    13  }
    14  
    15  var msgCdc = wire.New()
    16  
    17  func init() {
    18  	RegisterWire(msgCdc)
    19  }