Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitBSCTables ¶
func InitGreenfieldTables ¶
func InitVoteTables ¶
Types ¶
type BscBlock ¶
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 ¶
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 ¶
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:256"` CreatedTime int64 `gorm:"NOT NULL"` }
Click to show internal directories.
Click to hide internal directories.