repository

package
v0.0.1-alpha-7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	Create(message *entity.Message) error
	Exist(transferID, signature, hash string) (bool, error)
	Get(transferID string) ([]entity.Message, error)
	GetMessageWith(transferID, signature, hash string) (*entity.Message, error)
}

type Status

type Status interface {
	GetLastFetchedTimestamp(entityID string) (int64, error)
	UpdateLastFetchedTimestamp(entityID string, timestamp int64) error
	CreateTimestamp(entityID string, timestamp int64) error
}

type Transfer

type Transfer interface {
	GetByTransactionId(txId string) (*entity.Transfer, error)
	GetWithMessages(txId string) (*entity.Transfer, error)
	GetInitialAndSignatureSubmittedTx() ([]*entity.Transfer, error)
	GetUnprocessedTransfers() ([]*entity.Transfer, error)

	Create(ct *transfer.Transfer) (*entity.Transfer, error)
	Save(tx *entity.Transfer) error
	SaveRecoveredTxn(ct *transfer.Transfer) error
	UpdateStatusInsufficientFee(txId string) error
	UpdateStatusCompleted(txId string) error

	UpdateStatusSignatureSubmitted(txId string) error
	UpdateStatusSignatureMined(txId string) error
	UpdateStatusSignatureFailed(txId string) error

	UpdateEthTxSubmitted(txId string, hash string) error
	UpdateEthTxMined(txId string) error
	UpdateEthTxReverted(txId string) error

	UpdateStatusEthTxMsgSubmitted(txId string) error
	UpdateStatusEthTxMsgMined(txId string) error
	UpdateStatusEthTxMsgFailed(txId string) error
}

Jump to

Keyboard shortcuts

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