Class WalletTransactionServiceImpl

java.lang.Object
org.exoplatform.wallet.service.WalletTransactionServiceImpl
All Implemented Interfaces:
org.exoplatform.wallet.service.WalletTransactionService

public class WalletTransactionServiceImpl extends Object implements org.exoplatform.wallet.service.WalletTransactionService
  • Constructor Details

    • WalletTransactionServiceImpl

      public WalletTransactionServiceImpl(org.exoplatform.wallet.service.WalletAccountService accountService, TransactionStorage transactionStorage, org.exoplatform.wallet.service.WalletContractService contractService, org.exoplatform.container.xml.InitParams params)
  • Method Details

    • getPendingWalletTransactionsNotSent

      public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingWalletTransactionsNotSent(String address)
      Specified by:
      getPendingWalletTransactionsNotSent in interface org.exoplatform.wallet.service.WalletTransactionService
    • getPendingWalletTransactionsSent

      public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingWalletTransactionsSent(String address)
      Specified by:
      getPendingWalletTransactionsSent in interface org.exoplatform.wallet.service.WalletTransactionService
    • getPendingEtherTransactions

      public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingEtherTransactions(String address)
      Specified by:
      getPendingEtherTransactions in interface org.exoplatform.wallet.service.WalletTransactionService
    • countContractPendingTransactionsSent

      public long countContractPendingTransactionsSent()
      Specified by:
      countContractPendingTransactionsSent in interface org.exoplatform.wallet.service.WalletTransactionService
    • countContractPendingTransactionsToSend

      public long countContractPendingTransactionsToSend()
      Specified by:
      countContractPendingTransactionsToSend in interface org.exoplatform.wallet.service.WalletTransactionService
    • getTransactions

      public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getTransactions(String address, String contractAddress, String contractMethodName, String hash, int limit, boolean onlyPending, boolean administration, String currentUser) throws IllegalAccessException
      Specified by:
      getTransactions in interface org.exoplatform.wallet.service.WalletTransactionService
      Throws:
      IllegalAccessException
    • getTransactionStatistics

      public org.exoplatform.wallet.model.transaction.TransactionStatistics getTransactionStatistics(String address, String periodicity, String selectedDate, Locale locale)
      Specified by:
      getTransactionStatistics in interface org.exoplatform.wallet.service.WalletTransactionService
    • getTransactionByHash

      public org.exoplatform.wallet.model.transaction.TransactionDetail getTransactionByHash(String hash, String currentUser)
      Specified by:
      getTransactionByHash in interface org.exoplatform.wallet.service.WalletTransactionService
    • getNonce

      public long getNonce(String fromAddress)
      Specified by:
      getNonce in interface org.exoplatform.wallet.service.WalletTransactionService
    • getNonce

      public long getNonce(String fromAddress, String currentUser) throws IllegalAccessException
      Specified by:
      getNonce in interface org.exoplatform.wallet.service.WalletTransactionService
      Throws:
      IllegalAccessException
    • getTransactionByHash

      public org.exoplatform.wallet.model.transaction.TransactionDetail getTransactionByHash(String hash)
      Specified by:
      getTransactionByHash in interface org.exoplatform.wallet.service.WalletTransactionService
    • getPendingTransactionByHash

      public org.exoplatform.wallet.model.transaction.TransactionDetail getPendingTransactionByHash(String hash)
      Specified by:
      getPendingTransactionByHash in interface org.exoplatform.wallet.service.WalletTransactionService
    • saveTransactionDetail

      public void saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail, boolean broadcastMinedTransaction)
      Specified by:
      saveTransactionDetail in interface org.exoplatform.wallet.service.WalletTransactionService
    • countPendingTransactionsWithSameNonce

      public long countPendingTransactionsWithSameNonce(String transactionHash, String fromAddress, long nonce)
      Specified by:
      countPendingTransactionsWithSameNonce in interface org.exoplatform.wallet.service.WalletTransactionService
    • cancelTransactionsWithSameNonce

      public void cancelTransactionsWithSameNonce(org.exoplatform.wallet.model.transaction.TransactionDetail replacingTransaction)
      Specified by:
      cancelTransactionsWithSameNonce in interface org.exoplatform.wallet.service.WalletTransactionService
    • saveTransactionDetail

      public void saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail, String currentUser) throws IllegalAccessException
      Specified by:
      saveTransactionDetail in interface org.exoplatform.wallet.service.WalletTransactionService
      Throws:
      IllegalAccessException
    • getPendingTransactionMaxDays

      public long getPendingTransactionMaxDays()
      Specified by:
      getPendingTransactionMaxDays in interface org.exoplatform.wallet.service.WalletTransactionService
    • getTransactionsToSend

      public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getTransactionsToSend()
      Specified by:
      getTransactionsToSend in interface org.exoplatform.wallet.service.WalletTransactionService
    • canSendTransactionToBlockchain

      public boolean canSendTransactionToBlockchain(String fromAddress)
      Specified by:
      canSendTransactionToBlockchain in interface org.exoplatform.wallet.service.WalletTransactionService
    • getMaxAttemptsToSend

      public long getMaxAttemptsToSend()
      Specified by:
      getMaxAttemptsToSend in interface org.exoplatform.wallet.service.WalletTransactionService
    • getMaxParallelPendingTransactions

      public long getMaxParallelPendingTransactions()
      Specified by:
      getMaxParallelPendingTransactions in interface org.exoplatform.wallet.service.WalletTransactionService
    • countTransactions

      public long countTransactions()
      Specified by:
      countTransactions in interface org.exoplatform.wallet.service.WalletTransactionService