Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainContractEvent ¶
type ChainContractEvent struct {
ContractEvent `gorm:"embedded"`
}
type ContractEvent ¶
type ContractEvent struct { GUID uuid.UUID `gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','');serializer:uuid"` BlockHash common.Hash `gorm:"serializer:bytes"` ContractAddress common.Address `gorm:"serializer:bytes"` TransactionHash common.Hash `gorm:"serializer:bytes"` LogIndex uint64 BlockNumber *big.Int `gorm:"serializer:u256"` EventSignature common.Hash `gorm:"serializer:bytes"` Timestamp uint64 RLPLog *types.Log `gorm:"serializer:rlp;column:rlp_bytes"` }
func ContractEventFromLog ¶
type ContractEventsDB ¶
type ContractEventsDB interface { ContractEventsView StoreChainContractEvents(string, []ChainContractEvent) error }
func NewContractEventsDB ¶
func NewContractEventsDB(db *gorm.DB) ContractEventsDB
type ContractEventsView ¶
type ContractEventsView interface { ChainContractEvent(string, uuid.UUID) (*ContractEvent, error) ChainContractEventWithFilter(string, ContractEvent) (*ContractEvent, error) ChainContractEventsWithFilter(string, ContractEvent, *big.Int, *big.Int) ([]ContractEvent, error) ChainLatestContractEventWithFilter(string, ContractEvent) (*ContractEvent, error) ContractEventsWithFilter(string, ContractEvent, *big.Int, *big.Int) ([]ContractEvent, error) CleanEventsByChainId(chainId string) error }
type RelayMessage ¶
type RelayMessage struct { GUID uuid.UUID `gorm:"primaryKey;serializer:uuid"` BlockNumber *big.Int `gorm:"serializer:u256;column:block_number" db:"block_number"` RelayTransactionHash common.Hash `gorm:"serializer:bytes"` MessageHash common.Hash `gorm:"serializer:bytes"` L1TokenAddress common.Address `gorm:"column:l1_token_address;serializer:bytes"` L2TokenAddress common.Address `gorm:"column:l2_token_address;serializer:bytes"` ETHAmount *big.Int `gorm:"serializer:u256;column:eth_amount"` ERC20Amount *big.Int `gorm:"serializer:u256;column:erc20_amount"` Related bool `json:"related"` Timestamp uint64 }
func (RelayMessage) TableName ¶
func (RelayMessage) TableName() string
type RelayMessageDB ¶
type RelayMessageDB interface { RelayMessageView StoreRelayMessage(string, []RelayMessage) error MarkedRelayMessageRelated(chainId string, relayMessageList []RelayMessage) error UpdateRelayMessageInfo(chainId string, relayMessageList []RelayMessage) error }
func NewRelayMessageDB ¶
func NewRelayMessageDB(db *gorm.DB) RelayMessageDB
type RelayMessageView ¶
type RelayMessageView interface { RelayMessageL1BlockHeader(l1ChainId, chainId string) (*common2.BlockHeader, error) RelayMessageUnRelatedList(string) ([]RelayMessage, error) }
type WithdrawFinalized ¶
type WithdrawFinalized struct { GUID uuid.UUID `gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','';serializer:uuid"` BlockNumber *big.Int `gorm:"serializer:u256;column:block_number"` WithdrawHash common.Hash `gorm:"serializer:bytes"` MessageHash common.Hash `gorm:"serializer:bytes"` FinalizedTransactionHash common.Hash `gorm:"serializer:bytes"` L1TokenAddress common.Address `gorm:"column:l1_token_address;serializer:bytes"` L2TokenAddress common.Address `gorm:"column:l2_token_address;serializer:bytes"` ETHAmount *big.Int `gorm:"serializer:u256;column:eth_amount"` ERC20Amount *big.Int `gorm:"serializer:u256;column:erc20_amount"` Related bool `json:"related"` Timestamp uint64 }
func (WithdrawFinalized) TableName ¶
func (WithdrawFinalized) TableName() string
type WithdrawFinalizedDB ¶
type WithdrawFinalizedDB interface { WithdrawFinalizedView StoreWithdrawFinalized(string, []WithdrawFinalized) error MarkedWithdrawFinalizedRelated(chainId string, withdrawFinalizedList []WithdrawFinalized) error UpdateWithdrawFinalizedInfo(chainId string, withdrawFinalizedList []WithdrawFinalized) error UpdateMsgHashFinalizedInfo(chainId string, withdrawFinalizedList []WithdrawFinalized) error }
func NewWithdrawFinalizedDB ¶
func NewWithdrawFinalizedDB(db *gorm.DB) WithdrawFinalizedDB
type WithdrawFinalizedView ¶
type WithdrawFinalizedView interface { WithdrawFinalizedL1BlockHeader(l1chainId, chainId string) (*common2.BlockHeader, error) WithdrawFinalizedUnRelatedList(chainId string) ([]WithdrawFinalized, error) }
type WithdrawProven ¶
type WithdrawProven struct { GUID uuid.UUID `gorm:"primaryKey;DEFAULT replace(uuid_generate_v4()::text,'-','';serializer:uuid"` BlockNumber *big.Int `gorm:"serializer:u256;column:block_number" db:"block_number"` WithdrawHash common.Hash `gorm:"serializer:bytes"` MessageHash common.Hash `gorm:"serializer:bytes"` ProvenTransactionHash common.Hash `gorm:"serializer:bytes"` L1TokenAddress common.Address `gorm:"column:l1_token_address;serializer:bytes"` L2TokenAddress common.Address `gorm:"column:l2_token_address;serializer:bytes"` ETHAmount *big.Int `gorm:"serializer:u256;column:eth_amount"` ERC20Amount *big.Int `gorm:"serializer:u256;column:erc20_amount"` Related bool `json:"related"` Timestamp uint64 }
func (WithdrawProven) TableName ¶
func (WithdrawProven) TableName() string
type WithdrawProvenDB ¶
type WithdrawProvenDB interface { WithdrawProvenView StoreWithdrawProven(string, []WithdrawProven) error MarkedWithdrawProvenRelated(chainId string, withdrawProvenList []WithdrawProven) error UpdateWithdrawProvenInfo(chainId string, withdrawProvenList []WithdrawProven) error }
func NewWithdrawProvenDB ¶
func NewWithdrawProvenDB(db *gorm.DB) WithdrawProvenDB
type WithdrawProvenView ¶
type WithdrawProvenView interface { WithdrawProvenL1BlockHeader(l1ChainId, chainId string) (*common2.BlockHeader, error) WithdrawProvenUnRelatedList(string) ([]WithdrawProven, error) }
Click to show internal directories.
Click to hide internal directories.