Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CosmosMessageAddressesParser = DefaultMessagesParser
CosmosMessageAddressesParser represents a MessageAddressesParser that parses a Chain message and returns all the involved addresses (both accounts and validators)
Functions ¶
func DefaultMessagesParser ¶
DefaultMessagesParser represents the default messages parser that simply returns the list of all the signers of a message
func HandleMsg ¶
func HandleMsg( index int, msg sdk.Msg, tx *types.Tx, parseAddresses MessageAddressesParser, cdc codec.Codec, db database.Database, ) error
HandleMsg represents a message handler that stores the given message inside the proper database table
func TrimLastChar ¶
Types ¶
type MessageAddressesParser ¶
MessageAddressesParser represents a function that extracts all the involved addresses from a provided message (both accounts and validators)
func JoinMessageParsers ¶
func JoinMessageParsers(parsers ...MessageAddressesParser) MessageAddressesParser
JoinMessageParsers joins together all the given parsers, calling them in order
Click to show internal directories.
Click to hide internal directories.