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 GovV1Beta1MessagesParser(cdc codec.Codec, cosmosMsg sdk.Msg) ([]string, error)
- func GovV1MessageParser(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)
- func TrimLastChar(s string) string
- type MessageAddressesParser
- type Module
Constants ¶
This section is empty.
Variables ¶
var CosmosMessageAddressesParser = JoinMessageParsers( BankMessagesParser, CrisisMessagesParser, DistributionMessagesParser, EvidenceMessagesParser, GovV1Beta1MessagesParser, GovV1MessageParser, 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 GovV1Beta1MessagesParser ¶
GovV1Beta1MessagesParser returns the list of all the accounts involved in the given message if it's related to the x/gov v1beta1 module
func GovV1MessageParser ¶
GovV1MessageParser returns the list of all the accounts involved in the given message if it's related to the x/gov v1 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
func StakingMessagesParser ¶
StakingMessagesParser returns the list of all the accounts involved in the given message if it's related to the x/staking module
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