Versions in this module Expand all Collapse all v1 v1.5.0 Jun 21, 2018 Changes in this version + var ErrHashListEmpty error = errors.New("hash list is empty") + var ErrNonTransaction error = errors.New("no transaction found") + var ErrNonceInvalid error = errors.New("user nonce invalid") + var ErrNonceNotExist error = errors.New("nonce not exist") + var ErrOwnerAddressInvalid error = errors.New("owner address invalid") + func GetAllTransactionCount(ownerStr, symbol, status, typ string) (int, error) + func GetAllTransactions(owner, symbol, status, typ string, limit, offset int) ([]txtyp.TransactionJsonResult, error) + func GetNonce(owner string) (*big.Int, error) + func GetPendingTransactions(owner string) ([]txtyp.TransactionJsonResult, error) + func GetTransactionsByHash(owner string, hashList []string) ([]txtyp.TransactionJsonResult, error) + func NewTxView(db *dao.RdsService) + func ValidateNonce(owner string, nonce *big.Int) error + type TransactionViewer interface + GetAllTransactionCount func(owner, symbol, status, typ string) (int, error) + GetAllTransactions func(owner, symbol, status, typ string, limit, offset int) ([]txtyp.TransactionJsonResult, error) + GetNonce func(owner string) (*big.Int, error) + GetPendingTransactions func(owner string) ([]txtyp.TransactionJsonResult, error) + GetTransactionsByHash func(owner string, hashList []string) ([]txtyp.TransactionJsonResult, error) + ValidateNonce func(owner string, nonce *big.Int) error + type TransactionViewerImpl struct + func (impl *TransactionViewerImpl) GetAllTransactionCount(ownerStr, symbolStr, statusStr, typStr string) (int, error) + func (impl *TransactionViewerImpl) GetAllTransactions(ownerStr, symbolStr, statusStr, typStr string, limit, offset int) ([]txtyp.TransactionJsonResult, error) + func (impl *TransactionViewerImpl) GetNonce(ownerStr string) (*big.Int, error) + func (impl *TransactionViewerImpl) GetPendingTransactions(ownerStr string) ([]txtyp.TransactionJsonResult, error) + func (impl *TransactionViewerImpl) GetTransactionsByHash(ownerStr string, hashList []string) ([]txtyp.TransactionJsonResult, error) + func (impl *TransactionViewerImpl) ValidateNonce(ownerStr string, nonce *big.Int) error