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 ¶
func DefaultMessagesParser(tx *types.Transaction) ([]string, error)
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 types.Message, tx *types.Transaction, parseAddresses MessageAddressesParser, db database.Database, ) error
HandleMsg represents a message handler that stores the given message inside the proper database table
func TrimLastChar ¶
Types ¶
type MessageAddressesParser ¶
type MessageAddressesParser = func(tx *types.Transaction) ([]string, error)
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.