common

package
v0.0.0-...-db0507b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgParse

func MsgParse(codec client.Codec, msg *types.Any, customParsers map[string][]parsers.MessageParser) *stdTypes.Msg

func ParseAttributeValue

func ParseAttributeValue(value string) any

func ParseInnerMessage

func ParseInnerMessage(codec client.Codec, msg *types.Any, customParsers map[string][]parsers.MessageParser, messageLog *txTypes.LogMessage, cfg config.IndexConfig) (*any, error)

Types

type IAnyMessageParser

type IAnyMessageParser interface {
	ParseAnyMessage(types.Any, *txTypes.LogMessage, config.IndexConfig) (*any, error)
}

type MsgType

type MsgType int
const (
	MsgRecvPacket MsgType = iota
	MsgAcknowledgement
)

type TxMessage

type TxMessage struct {
	ID            uint `gorm:"primaryKey"`
	TxID          uint `gorm:"uniqueIndex:txMessageIndex,priority:1"`
	MessageID     uint `gorm:"uniqueIndex:txMessageIndex,priority:2"`
	BlockId       uint
	MessageDetail string
	Tx            models.Tx `gorm:"foreignKey:TxID;references:ID"`
}

Jump to

Keyboard shortcuts

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