model

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncBlockHeader = "SyncHeader"
	DeliverPackage  = "DeliverPackage"

	Created = "Created"
	Success = "Success"
	Failure = "Failed"
	Missed  = "Missed"
)

Variables

This section is empty.

Functions

func InitTables

func InitTables(db *gorm.DB)

Types

type RelayTransaction

type RelayTransaction struct {
	Id int64

	TxHash string
	Type   string

	ChannelId uint8
	Sequence  uint64
	BCHeight  uint64

	TxStatus   string
	TxGasPrice uint64
	TxGasLimit uint64
	TxUsedGas  uint64
	TxFee      uint64
	TxHeight   uint64

	CreateTime int64
	UpdateTime int64
}

func (RelayTransaction) TableName

func (RelayTransaction) TableName() string

type Statistic

type Statistic struct {
	Id int64

	TotalTx          int64
	SuccessTx        int64
	FailedTx         int64
	SyncHeaderTx     int64
	DeliverPackageTx int64

	AccumulatedTotalTxFee   string
	AccumulatedSuccessTxFee string
	AccumulatedFailedTxFee  string
	UpdateTime              int64
}

func (Statistic) TableName

func (Statistic) TableName() string

Jump to

Keyboard shortcuts

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