github.com/lino-network/lino@v0.6.11/types/msg.go (about) 1 package types 2 3 // nolint 4 import ( 5 wire "github.com/cosmos/cosmos-sdk/codec" 6 sdk "github.com/cosmos/cosmos-sdk/types" 7 ) 8 9 // Transactions messages must fulfill the Msg 10 type Msg interface { 11 sdk.Msg 12 GetPermission() Permission 13 GetConsumeAmount() Coin 14 } 15 16 type AddrMsg interface { 17 sdk.Msg 18 GetAccOrAddrSigners() []AccOrAddr 19 } 20 21 // Register the lino message type 22 func RegisterWire(cdc *wire.Codec) { 23 cdc.RegisterInterface((*Msg)(nil), nil) 24 cdc.RegisterInterface((*AddrMsg)(nil), nil) 25 }