Documentation ¶
Index ¶
- func ExtendVoteEventsIndexer(indexer *indexer.Indexer) error
- type Event
- type EventBase
- type VoteEvents
- type VoteEventsParser
- func (p *VoteEventsParser) Identifier() string
- func (p *VoteEventsParser) IndexMessage(dataset *any, db *gorm.DB, message models.Message, ...) error
- func (p *VoteEventsParser) ParseAnyMessage(cosmosMsg types.Any, log *indexerTxTypes.LogMessage, cfg config.IndexConfig) (*any, error)
- func (p *VoteEventsParser) ParseMessage(cosmosMsg stdTypes.Msg, logMsg *indexerTxTypes.LogMessage, ...) (*any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtendVoteEventsIndexer ¶
Types ¶
type Event ¶
type Event struct { EventBase Event isEvent_Event `json:"event,omitempty"` }
func (*Event) MarshalJSON ¶
type VoteEvents ¶
type VoteEvents struct { Type string `json:"@type,omitempty"` Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName `json:"chain,omitempty"` Events []Event `json:"events,omitempty"` }
type VoteEventsParser ¶
This defines the custom message parser for the call contract approve message type It implements the MessageParser interface
func (*VoteEventsParser) Identifier ¶
func (p *VoteEventsParser) Identifier() string
func (*VoteEventsParser) IndexMessage ¶
func (p *VoteEventsParser) IndexMessage(dataset *any, db *gorm.DB, message models.Message, messageEvents []parsers.MessageEventWithAttributes, cfg config.IndexConfig) error
This method is called during database insertion. It is responsible for storing the parsed data in the database. The gorm db is wrapped in a transaction, so any errors will cause a rollback. Any errors returned will be saved as a parser error in the database as well for later debugging.
func (*VoteEventsParser) ParseAnyMessage ¶
func (p *VoteEventsParser) ParseAnyMessage(cosmosMsg types.Any, log *indexerTxTypes.LogMessage, cfg config.IndexConfig) (*any, error)
func (*VoteEventsParser) ParseMessage ¶
func (p *VoteEventsParser) ParseMessage(cosmosMsg stdTypes.Msg, logMsg *indexerTxTypes.LogMessage, cfg config.IndexConfig) (*any, error)
Click to show internal directories.
Click to hide internal directories.