model

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBSCTables

func InitBSCTables(db *gorm.DB)

func InitGreenfieldTables

func InitGreenfieldTables(db *gorm.DB)

func InitVoteTables

func InitVoteTables(db *gorm.DB)

Types

type BscBlock

type BscBlock struct {
	Id         int64
	BlockHash  string `gorm:"NOT NULL"`
	ParentHash string `gorm:"NOT NULL"`
	Height     uint64 `gorm:"NOT NULL;index:idx_bsc_block_height"`
	BlockTime  int64  `gorm:"NOT NULL"`
}

func (*BscBlock) TableName

func (*BscBlock) TableName() string

type BscRelayPackage

type BscRelayPackage struct {
	Id              int64
	ChannelId       uint8  `gorm:"NOT NULL"`
	OracleSequence  uint64 `gorm:"NOT NULL;index:idx_bsc_relay_package_oracle_sequence"`
	PackageSequence uint64 `gorm:"NOT NULL"`
	PayLoad         string `gorm:"type:text"`
	TxIndex         uint   `gorm:"NOT NULL"`
	TxHash          string `gorm:"NOT NULL"`
	ClaimTxHash     string
	Height          uint64      `gorm:"NOT NULL;index:idx_bsc_relay_package_height_status"`
	Status          db.TxStatus `gorm:"NOT NULL;index:idx_bsc_relay_package_height_status"`
	TxTime          int64       `gorm:"NOT NULL"`
	UpdatedTime     int64       `gorm:"NOT NULL"`
}

func (*BscRelayPackage) TableName

func (l *BscRelayPackage) TableName() string

type GreenfieldBlock

type GreenfieldBlock struct {
	Id        int64
	Chain     string
	Height    uint64 `gorm:"NOT NULL;index:idx_greenfield_block_height"`
	BlockTime int64  `gorm:"NOT NULL"`
}

func (*GreenfieldBlock) TableName

func (*GreenfieldBlock) TableName() string

type GreenfieldRelayTransaction

type GreenfieldRelayTransaction struct {
	Id            int64
	SrcChainId    uint32 `gorm:"NOT NULL"`
	DestChainId   uint32 `gorm:"NOT NULL"`
	ChannelId     uint8  `gorm:"NOT NULL;index:idx_greenfield_relay_transaction_channel_seq_status"`
	Sequence      uint64 `gorm:"NOT NULL;index:idx_greenfield_relay_transaction_channel_seq_status"`
	PackageType   uint32 `gorm:"NOT NULL"`
	Height        uint64 `gorm:"NOT NULL;index:idx_greenfield_relay_transaction_height_status"`
	PayLoad       string `gorm:"type:text"`
	RelayerFee    string `gorm:"NOT NULL"`
	AckRelayerFee string `gorm:"NOT NULL"`
	TxHash        string
	ClaimedTxHash string
	Status        db.TxStatus `gorm:"NOT NULL;index:idx_greenfield_relay_transaction_channel_seq_status;idx_greenfield_relay_transaction_height_status"`
	TxTime        int64       `gorm:"NOT NULL"`
	UpdatedTime   int64       `gorm:"NOT NULL"`
}

func (*GreenfieldRelayTransaction) TableName

func (*GreenfieldRelayTransaction) TableName() string

type SyncLightBlockTransaction added in v0.0.3

type SyncLightBlockTransaction struct {
	Id             int64
	ValidatorsHash string `gorm:"NOT NULL"`
	Height         uint64 `gorm:"NOT NULL;index:idx_sync_light_block_transaction_height"`
	TxHash         string `gorm:"NOT NULL"`
}

func (*SyncLightBlockTransaction) TableName added in v0.0.3

func (*SyncLightBlockTransaction) TableName() string

type Vote

type Vote struct {
	Id           int64
	Height       int64  `gorm:"NOT NULL;index:idx_vote_height"`
	Signature    string `gorm:"NOT NULL"`
	EventType    uint32 `gorm:"NOT NULL"`
	ClaimPayload []byte `gorm:"NOT NULL"`
	EventHash    []byte `gorm:"NOT NULL"`
	Sequence     uint64 `gorm:"NOT NULL;uniqueIndex:idx_vote_channel_id_sequence_pub_key"`
	ChannelId    uint8  `gorm:"NOT NULL;uniqueIndex:idx_vote_channel_id_sequence_pub_key"`
	PubKey       string `gorm:"NOT NULL;uniqueIndex:idx_vote_channel_id_sequence_pub_key;size:96"`
	CreatedTime  int64  `gorm:"NOT NULL"`
}

func (*Vote) TableName

func (*Vote) TableName() string

Jump to

Keyboard shortcuts

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