model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTables

func InitTables(db *gorm.DB)

Types

type BlockLog

type BlockLog struct {
	Id         int64
	Chain      string
	BlockHash  string
	ParentHash string
	Height     int64
	BlockTime  int64
	CreateTime int64
}

func (*BlockLog) BeforeCreate

func (l *BlockLog) BeforeCreate() (err error)

func (BlockLog) TableName

func (BlockLog) TableName() string

type CrossChainPackageLog

type CrossChainPackageLog struct {
	Id              int64
	ChainId         uint16
	OracleSequence  uint64
	PackageSequence uint64
	ChannelId       uint8
	PayLoad         string `gorm:"type:text"`
	TxIndex         uint

	Status       PackageStatus
	BlockHash    string
	TxHash       string
	ClaimTxHash  string
	Height       int64
	ConfirmedNum int64
	CreateTime   int64
	UpdateTime   int64
}

func (*CrossChainPackageLog) BeforeCreate

func (l *CrossChainPackageLog) BeforeCreate() (err error)

func (CrossChainPackageLog) TableName

func (CrossChainPackageLog) TableName() string

type PackageStatus

type PackageStatus int
const (
	PackageStatusInit      PackageStatus = 0
	PackageStatusConfirmed PackageStatus = 1
	PackageStatusClaimed   PackageStatus = 2
)

Jump to

Keyboard shortcuts

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