Documentation ¶
Index ¶
- Constants
- func ExtendMessagesIndexer(instance *indexer.Indexer) error
- func ExtendVoteRequestIndexer(indexer *indexer.Indexer) error
- type Event
- type EventBase
- type RefundMsgRequestParser
- type RefundMsgRequestValue
- 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)
- type VoteRequestParser
- func (p *VoteRequestParser) Identifier() string
- func (p *VoteRequestParser) IndexMessage(dataset *any, db *gorm.DB, message models.Message, ...) error
- func (p *VoteRequestParser) ParseMessage(cosmosMsg stdTypes.Msg, logMsg *txTypes.LogMessage, cfg config.IndexConfig) (*any, error)
- func (p *VoteRequestParser) ParseVoteEvents(codec client.Codec, vote *codecTypes.Any, logMsg *txTypes.LogMessage, ...) (*any, error)
- type VoteRequestValue
Constants ¶
const (
EVENT_TYPE_MESSAGE string = "message"
)
Variables ¶
This section is empty.
Functions ¶
func ExtendMessagesIndexer ¶
Types ¶
type Event ¶
type Event struct { EventBase Event isEvent_Event `json:"event,omitempty"` }
func (*Event) MarshalJSON ¶
type RefundMsgRequestParser ¶
This defines the custom message parser for the call contract approve message type It implements the MessageParser interface
func (*RefundMsgRequestParser) Identifier ¶
func (p *RefundMsgRequestParser) Identifier() string
func (*RefundMsgRequestParser) IndexMessage ¶
func (p *RefundMsgRequestParser) 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 (*RefundMsgRequestParser) ParseMessage ¶
func (p *RefundMsgRequestParser) ParseMessage(cosmosMsg stdTypes.Msg, messageLog *indexerTxTypes.LogMessage, cfg config.IndexConfig) (*any, error)
type RefundMsgRequestValue ¶
type RefundMsgRequestValue struct { Type string `json:"@type,omitempty"` Sender sdk.AccAddress `json:"sender,omitempty"` InnerMessage any `json:"inner_message,omitempty"` }
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)
type VoteRequestParser ¶
This defines the custom message parser for the call contract approve message type It implements the MessageParser interface
func (*VoteRequestParser) Identifier ¶
func (p *VoteRequestParser) Identifier() string
func (*VoteRequestParser) IndexMessage ¶
func (p *VoteRequestParser) 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 (*VoteRequestParser) ParseMessage ¶
func (p *VoteRequestParser) ParseMessage(cosmosMsg stdTypes.Msg, logMsg *txTypes.LogMessage, cfg config.IndexConfig) (*any, error)
func (*VoteRequestParser) ParseVoteEvents ¶
func (p *VoteRequestParser) ParseVoteEvents(codec client.Codec, vote *codecTypes.Any, logMsg *txTypes.LogMessage, cfg config.IndexConfig) (*any, error)