github.com/cosmos/cosmos-sdk@v0.50.10/x/auth/migrations/legacytx/stdsignmsg.go (about) 1 package legacytx 2 3 import ( 4 "github.com/cosmos/cosmos-sdk/codec/types" 5 sdk "github.com/cosmos/cosmos-sdk/types" 6 ) 7 8 var _ types.UnpackInterfacesMessage = StdSignMsg{} 9 10 // StdSignMsg is a convenience structure for passing along a Msg with the other 11 // requirements for a StdSignDoc before it is signed. For use in the CLI. 12 type StdSignMsg struct { 13 ChainID string `json:"chain_id" yaml:"chain_id"` 14 AccountNumber uint64 `json:"account_number" yaml:"account_number"` 15 Sequence uint64 `json:"sequence" yaml:"sequence"` 16 TimeoutHeight uint64 `json:"timeout_height" yaml:"timeout_height"` 17 Fee StdFee `json:"fee" yaml:"fee"` 18 Msgs []sdk.Msg `json:"msgs" yaml:"msgs"` 19 Memo string `json:"memo" yaml:"memo"` 20 } 21 22 func (msg StdSignMsg) UnpackInterfaces(unpacker types.AnyUnpacker) error { 23 for _, m := range msg.Msgs { 24 err := types.UnpackInterfaces(m, unpacker) 25 if err != nil { 26 return err 27 } 28 } 29 30 return nil 31 }