relation

package
v0.0.0-...-5793453 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgHashRelation

type MsgHashRelation struct {
	GUID    uuid.UUID   `gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"`
	TxHash  common.Hash `gorm:"serializer:bytes"`
	MsgHash common.Hash `gorm:"serializer:bytes"`
}

func (MsgHashRelation) TableName

func (MsgHashRelation) TableName() string

func (MsgHashRelation) TableNameByChainId

func (MsgHashRelation) TableNameByChainId(chainId string) string

type MsgHashRelationDB

type MsgHashRelationDB interface {
	MsgHashRelationView
	MsgHashRelationStore(msgHashRelation MsgHashRelation, chainId string) error
}

func NewMsgHashRelationDB

func NewMsgHashRelationDB(db *gorm.DB) MsgHashRelationDB

type MsgHashRelationView

type MsgHashRelationView interface {
}

type MsgSentRelationDB

type MsgSentRelationDB interface {
	MsgSentRelationView
	RelationClear(chainId string) error
	MsgHashToRelation(chainId string) error
	L1RelayToRelation(chainId string) error
	L2RelayToRelation(chainId string) error
	MsgSentRelationStore(msgSentRelation MsgSentRelationStruct, chainId string) error
	L1MsgSentRelationClear(chainId string) error
	L2MsgSentRelationClear(chainId string) error
}

func NewMsgSentRelationStructDB

func NewMsgSentRelationStructDB(db *gorm.DB) MsgSentRelationDB

type MsgSentRelationStruct

type MsgSentRelationStruct struct {
	GUID            uuid.UUID   `gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"`
	TxHash          common.Hash `gorm:"serializer:bytes"`
	MsgHash         common.Hash `gorm:"serializer:bytes"`
	MsgHashRelation bool
	ToL1L2Table     bool
	LayerType       int
	Data            string
}

func (MsgSentRelationStruct) TableName

func (MsgSentRelationStruct) TableName() string

func (MsgSentRelationStruct) TableNameByChainId

func (MsgSentRelationStruct) TableNameByChainId(chainId string) string

type MsgSentRelationView

type MsgSentRelationView interface {
	GetCanSaveDataList(chainId string) ([]MsgSentRelationStruct, error)
}

type RelayRelation

type RelayRelation struct {
	GUID         uuid.UUID   `gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"`
	TxHash       common.Hash `gorm:"serializer:bytes"`
	MsgHash      common.Hash `gorm:"serializer:bytes"`
	BlockNumber  *big.Int    `gorm:"serializer:u256"`
	L1L2Relation bool
	LayerType    int
}

func (RelayRelation) TableName

func (RelayRelation) TableName() string

func (RelayRelation) TableNameByChainId

func (RelayRelation) TableNameByChainId(chainId string) string

type RelayRelationDB

type RelayRelationDB interface {
	RelayRelationView
	RelayRelationStore(relayRelation RelayRelation, chainId string) error
}

func NewEvmRelayRelationDB

func NewEvmRelayRelationDB(db *gorm.DB) RelayRelationDB

type RelayRelationView

type RelayRelationView interface {
}

Jump to

Keyboard shortcuts

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