Documentation ¶
Index ¶
- Variables
- func BankMessagesParser(_ codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func CrisisMessagesParser(_ codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func DefaultMessagesParser(_ codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func DistributionMessagesParser(_ codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func EvidenceMessagesParser(_ codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func GovMessagesParser(cdc codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func IBCTransferMessagesParser(_ codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func MessageNotSupported(msg sdk.Msg) error
- func SlashingMessagesParser(_ codec.Marshaler, cosmosMsg sdk.Msg) ([]string, error)
- func StakingMessagesParser(_ codec.Marshaler, 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 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