Documentation ¶
Index ¶
- Constants
- type Transaction
- type TransactionRepository
- func (tr *TransactionRepository) Create(ct *proto.CryptoTransferMessage) error
- func (tr *TransactionRepository) GetByTransactionId(transactionId string) (*Transaction, error)
- func (tr *TransactionRepository) GetInitialAndSignatureSubmittedTx() ([]*Transaction, error)
- func (tr *TransactionRepository) UpdateStatusCompleted(txId string) error
- func (tr *TransactionRepository) UpdateStatusEthTxReverted(txId string) error
- func (tr *TransactionRepository) UpdateStatusEthTxSubmitted(txId string, hash string) error
- func (tr *TransactionRepository) UpdateStatusInsufficientFee(txId string) error
- func (tr *TransactionRepository) UpdateStatusSignatureFailed(txId string) error
- func (tr *TransactionRepository) UpdateStatusSignatureProvided(txId string) error
- func (tr *TransactionRepository) UpdateStatusSignatureSubmitted(txId string, submissionTxId string, signature string) error
Constants ¶
View Source
const ( StatusCompleted = "COMPLETED" StatusSignatureSubmitted = "SIGNATURE_SUBMITTED" StatusInitial = "INITIAL" StatusInsufficientFee = "INSUFFICIENT_FEE" StatusSignatureProvided = "SIGNATURE_PROVIDED" StatusSignatureFailed = "SIGNATURE_FAILED" StatusEthTxSubmitted = "ETH_TX_SUBMITTED" StatusEthTxReverted = "ETH_TX_REVERTED" )
Enum Transaction Status
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type TransactionRepository ¶
type TransactionRepository struct {
// contains filtered or unexported fields
}
func NewTransactionRepository ¶
func NewTransactionRepository(dbClient *gorm.DB) *TransactionRepository
func (*TransactionRepository) Create ¶
func (tr *TransactionRepository) Create(ct *proto.CryptoTransferMessage) error
func (*TransactionRepository) GetByTransactionId ¶
func (tr *TransactionRepository) GetByTransactionId(transactionId string) (*Transaction, error)
func (*TransactionRepository) GetInitialAndSignatureSubmittedTx ¶
func (tr *TransactionRepository) GetInitialAndSignatureSubmittedTx() ([]*Transaction, error)
func (*TransactionRepository) UpdateStatusCompleted ¶
func (tr *TransactionRepository) UpdateStatusCompleted(txId string) error
func (*TransactionRepository) UpdateStatusEthTxReverted ¶
func (tr *TransactionRepository) UpdateStatusEthTxReverted(txId string) error
func (*TransactionRepository) UpdateStatusEthTxSubmitted ¶
func (tr *TransactionRepository) UpdateStatusEthTxSubmitted(txId string, hash string) error
func (*TransactionRepository) UpdateStatusInsufficientFee ¶
func (tr *TransactionRepository) UpdateStatusInsufficientFee(txId string) error
func (*TransactionRepository) UpdateStatusSignatureFailed ¶
func (tr *TransactionRepository) UpdateStatusSignatureFailed(txId string) error
func (*TransactionRepository) UpdateStatusSignatureProvided ¶
func (tr *TransactionRepository) UpdateStatusSignatureProvided(txId string) error
func (*TransactionRepository) UpdateStatusSignatureSubmitted ¶
func (tr *TransactionRepository) UpdateStatusSignatureSubmitted(txId string, submissionTxId string, signature string) error
Click to show internal directories.
Click to hide internal directories.