parsers

package
v0.0.0-...-f99c16a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEventParsedData

type BlockEventParsedData struct {
	Data   *any
	Error  error
	Parser *BlockEventParser
}

type BlockEventParser

type BlockEventParser interface {
	Identifier() string
	ParseBlockEvent(abci.Event, config.IndexConfig) (*any, error)
	IndexBlockEvent(*any, *gorm.DB, models.Block, models.BlockEvent, []models.BlockEventAttribute, config.IndexConfig) error
}

type MessageEventWithAttributes

type MessageEventWithAttributes struct {
	Event      models.MessageEvent
	Attributes []models.MessageEventAttribute
}

Intermediate type for the database inserted message datasets Is there a way to remove this? It may require a one-to-many mapping of the message events + attributes instead of the belongs-to

type MessageParsedData

type MessageParsedData struct {
	Data   *any
	Error  error
	Parser *MessageParser
}

type MessageParser

type MessageParser interface {
	Identifier() string
	ParseMessage(sdkTypes.Msg, *txtypes.LogMessage, config.IndexConfig) (*any, error)
	IndexMessage(*any, *gorm.DB, models.Message, []MessageEventWithAttributes, config.IndexConfig) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL