Documentation ¶
Index ¶
- Variables
- func BankMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func CrisisMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func DefaultMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func DistributionMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func EvidenceMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func GovMessagesParser(cdc codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func HandleMsg(index int, msg sdk.Msg, tx *types.Tx, parseAddresses MessageAddressesParser, ...) error
- func IBCTransferMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func MessageNotSupported(msg sdk.Msg) error
- func SlashingMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func StakingMessagesParser(_ codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- type MessageAddressesParser
- type Module
Constants ¶
This section is empty.
Variables ¶
var CosmosMessageAddressesParser = JoinMessageParsers( BankMessagesParser, CrisisMessagesParser, DistributionMessagesParser, EvidenceMessagesParser, GovMessagesParser, IBCTransferMessagesParser, SlashingMessagesParser, StakingMessagesParser, DefaultMessagesParser, )
CosmosMessageAddressesParser represents a MessageAddressesParser that parses a Chain message and returns all the involved addresses (both accounts and validators)
Functions ¶
func BankMessagesParser ¶
BankMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/bank module
func CrisisMessagesParser ¶
CrisisMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/crisis module
func DefaultMessagesParser ¶
DefaultMessagesParser represents the default messages parser that simply returns the list of all the signers of a message
func DistributionMessagesParser ¶
DistributionMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/distribution module
func EvidenceMessagesParser ¶
EvidenceMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/evidence module
func GovMessagesParser ¶
GovMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/gov module
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 IBCTransferMessagesParser ¶
IBCTransferMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/iBCTransfer module
func MessageNotSupported ¶
MessageNotSupported returns an error telling that the given message is not supported
func SlashingMessagesParser ¶
SlashingMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/slashing module
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