Class WalletTransactionServiceImpl

  • All Implemented Interfaces:
    org.exoplatform.wallet.service.WalletTransactionService

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

      • WalletTransactionServiceImpl

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

      • getPendingTransactions

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

        public int countPendingTransactions()
        Specified by:
        countPendingTransactions 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
      • getTransactionByHash

        public org.exoplatform.wallet.model.transaction.TransactionDetail getTransactionByHash​(String hash)
        Specified by:
        getTransactionByHash 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
      • 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
      • isLogAllTransaction

        public boolean isLogAllTransaction()
        Specified by:
        isLogAllTransaction in interface org.exoplatform.wallet.service.WalletTransactionService