Class WalletTransactionServiceImpl

java.lang.Object
io.meeds.wallet.service.WalletTransactionServiceImpl
All Implemented Interfaces:
io.meeds.wallet.service.WalletTransactionService

public class WalletTransactionServiceImpl extends Object implements io.meeds.wallet.service.WalletTransactionService
  • Constructor Details

    • WalletTransactionServiceImpl

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

    • getPendingWalletTransactionsNotSent

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

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

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

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

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

      public List<io.meeds.wallet.model.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 io.meeds.wallet.service.WalletTransactionService
      Throws:
      IllegalAccessException
    • getTransactionStatistics

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

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

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

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

      public io.meeds.wallet.model.TransactionDetail getTransactionByHash(String hash)
      Specified by:
      getTransactionByHash in interface io.meeds.wallet.service.WalletTransactionService
    • getPendingTransactionByHash

      public io.meeds.wallet.model.TransactionDetail getPendingTransactionByHash(String hash)
      Specified by:
      getPendingTransactionByHash in interface io.meeds.wallet.service.WalletTransactionService
    • saveTransactionDetail

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

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

      public void cancelTransactionsWithSameNonce(io.meeds.wallet.model.TransactionDetail replacingTransaction)
      Specified by:
      cancelTransactionsWithSameNonce in interface io.meeds.wallet.service.WalletTransactionService
    • saveTransactionDetail

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

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

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

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

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

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

      public long countTransactions()
      Specified by:
      countTransactions in interface io.meeds.wallet.service.WalletTransactionService