Documentation
¶
Index ¶
- func NewDepositAckStore(db *gorm.DB) *depositAckStore
- func NewDepositStore(db *gorm.DB) *depositStore
- func NewRequestDepositStore(db *gorm.DB) *requestDepositStore
- func NewRequestWithdrawalStore(db *gorm.DB) *requestWithdrawalStore
- func NewWithdrawalSignaturesStore(db *gorm.DB) *withdrawalSignaturesStore
- type BridgeStore
- type DepositAckStore
- type DepositStore
- type ProcessedReceiptStore
- type RequestDepositStore
- type RequestWithdrawalStore
- type TaskStore
- type WithdrawalSignaturesStore
- type WithdrawalStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDepositAckStore ¶
func NewDepositStore ¶
func NewRequestDepositStore ¶
Types ¶
type BridgeStore ¶
type BridgeStore interface {
GetDepositStore() DepositStore
GetWithdrawalStore() WithdrawalStore
GetTaskStore() TaskStore
GetProcessedReceiptStore() ProcessedReceiptStore
GetWithdrawalSignaturesStore() WithdrawalSignaturesStore
GetDepositAckStore() DepositAckStore
GetRequestDepositStore() RequestDepositStore
GetRequestWithdrawalStore() RequestWithdrawalStore
}
func NewBridgeStore ¶
func NewBridgeStore(db *gorm.DB) BridgeStore
type DepositAckStore ¶
type DepositAckStore interface {
Save(DepositAck *models.DepositAck) error
}
type DepositStore ¶
type ProcessedReceiptStore ¶
func NewProcessedReceiptStore ¶
func NewProcessedReceiptStore(db *gorm.DB) ProcessedReceiptStore
type RequestDepositStore ¶
type RequestDepositStore interface {
Save(requestDeposit *models.RequestDeposit) error
Update(requestDeposit *models.RequestDeposit) error
}
type RequestWithdrawalStore ¶
type RequestWithdrawalStore interface {
Save(RequestWithdrawal *models.RequestWithdrawal) error
Update(RequestWithdrawal *models.RequestWithdrawal) error
}
type TaskStore ¶
type TaskStore interface {
Save(task *models.Task) error
Update(task *models.Task) error
GetTasks(chain, status string, limit, retrySeconds int, before int64, excludeIds []int) ([]*models.Task, error)
UpdateTasksWithTransactionHash(txs []string, transactionStatus int, status string) error
DeleteTasks([]string, uint64) error
Count() int64
ResetTo(ids []string, status string) error
}
func NewTaskStore ¶
type WithdrawalSignaturesStore ¶
type WithdrawalSignaturesStore interface {
Save(WithdrawalSignatures *models.WithdrawalSignatures) error
}
type WithdrawalStore ¶
type WithdrawalStore interface {
Save(withdraw *models.Withdrawal) error
Update(withdraw *models.Withdrawal) error
GetWithdrawalById(withdrawalId int64) (*models.Withdrawal, error)
}
func NewWithdrawalStore ¶
func NewWithdrawalStore(db *gorm.DB) WithdrawalStore
Click to show internal directories.
Click to hide internal directories.