Package org.exoplatform.wallet.service
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 Summary
ConstructorsConstructorDescriptionWalletTransactionServiceImpl(org.exoplatform.wallet.service.WalletAccountService accountService, TransactionStorage transactionStorage, org.exoplatform.wallet.service.WalletContractService contractService, org.exoplatform.container.xml.InitParams params) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelTransactionsWithSameNonce(org.exoplatform.wallet.model.transaction.TransactionDetail replacingTransaction) booleancanSendTransactionToBlockchain(String fromAddress) longlonglongcountPendingTransactionsWithSameNonce(String transactionHash, String fromAddress, long nonce) longlonglonglonglongList<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingEtherTransactions(String address) org.exoplatform.wallet.model.transaction.TransactionDetaillongList<org.exoplatform.wallet.model.transaction.TransactionDetail> List<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingWalletTransactionsSent(String address) org.exoplatform.wallet.model.transaction.TransactionDetailgetTransactionByHash(String hash) org.exoplatform.wallet.model.transaction.TransactionDetailgetTransactionByHash(String hash, String currentUser) List<org.exoplatform.wallet.model.transaction.TransactionDetail> getTransactions(String address, String contractAddress, String contractMethodName, String hash, int limit, boolean onlyPending, boolean administration, String currentUser) org.exoplatform.wallet.model.transaction.TransactionStatisticsgetTransactionStatistics(String address, String periodicity, String selectedDate, Locale locale) List<org.exoplatform.wallet.model.transaction.TransactionDetail> voidsaveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail, boolean broadcastMinedTransaction) voidsaveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail, String currentUser)
-
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:
getPendingWalletTransactionsNotSentin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getPendingWalletTransactionsSent
public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingWalletTransactionsSent(String address) - Specified by:
getPendingWalletTransactionsSentin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getPendingEtherTransactions
public List<org.exoplatform.wallet.model.transaction.TransactionDetail> getPendingEtherTransactions(String address) - Specified by:
getPendingEtherTransactionsin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
countContractPendingTransactionsSent
public long countContractPendingTransactionsSent()- Specified by:
countContractPendingTransactionsSentin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
countContractPendingTransactionsToSend
public long countContractPendingTransactionsToSend()- Specified by:
countContractPendingTransactionsToSendin interfaceorg.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:
getTransactionsin interfaceorg.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:
getTransactionStatisticsin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getTransactionByHash
public org.exoplatform.wallet.model.transaction.TransactionDetail getTransactionByHash(String hash, String currentUser) - Specified by:
getTransactionByHashin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getNonce
- Specified by:
getNoncein interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getNonce
- Specified by:
getNoncein interfaceorg.exoplatform.wallet.service.WalletTransactionService- Throws:
IllegalAccessException
-
getTransactionByHash
- Specified by:
getTransactionByHashin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getPendingTransactionByHash
public org.exoplatform.wallet.model.transaction.TransactionDetail getPendingTransactionByHash(String hash) - Specified by:
getPendingTransactionByHashin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
saveTransactionDetail
public void saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail, boolean broadcastMinedTransaction) - Specified by:
saveTransactionDetailin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
countPendingTransactionsWithSameNonce
public long countPendingTransactionsWithSameNonce(String transactionHash, String fromAddress, long nonce) - Specified by:
countPendingTransactionsWithSameNoncein interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
cancelTransactionsWithSameNonce
public void cancelTransactionsWithSameNonce(org.exoplatform.wallet.model.transaction.TransactionDetail replacingTransaction) - Specified by:
cancelTransactionsWithSameNoncein interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
saveTransactionDetail
public void saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail, String currentUser) throws IllegalAccessException - Specified by:
saveTransactionDetailin interfaceorg.exoplatform.wallet.service.WalletTransactionService- Throws:
IllegalAccessException
-
getPendingTransactionMaxDays
public long getPendingTransactionMaxDays()- Specified by:
getPendingTransactionMaxDaysin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getTransactionsToSend
- Specified by:
getTransactionsToSendin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
canSendTransactionToBlockchain
- Specified by:
canSendTransactionToBlockchainin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getMaxAttemptsToSend
public long getMaxAttemptsToSend()- Specified by:
getMaxAttemptsToSendin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
getMaxParallelPendingTransactions
public long getMaxParallelPendingTransactions()- Specified by:
getMaxParallelPendingTransactionsin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-
countTransactions
public long countTransactions()- Specified by:
countTransactionsin interfaceorg.exoplatform.wallet.service.WalletTransactionService
-