Class EthereumBlockchainTransactionService
- java.lang.Object
-
- org.exoplatform.wallet.blockchain.service.EthereumBlockchainTransactionService
-
- All Implemented Interfaces:
org.exoplatform.wallet.service.BlockchainTransactionService,org.picocontainer.Startable
public class EthereumBlockchainTransactionService extends Object implements org.exoplatform.wallet.service.BlockchainTransactionService, org.picocontainer.Startable
-
-
Constructor Summary
Constructors Constructor Description EthereumBlockchainTransactionService(org.exoplatform.commons.api.settings.SettingService settingService, EthereumClientConnector ethereumClientConnector, org.exoplatform.wallet.service.WalletTransactionService transactionService, org.exoplatform.wallet.service.WalletAccountService accountService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPendingTransactions()voidcheckPendingTransactionValidity(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail)voidcheckTransactionStatusOnBlockchain(String transactionHash, boolean pendingTransactionFromDatabase)longrefreshBlockchainGasPrice()org.exoplatform.wallet.model.transaction.TransactionDetailrefreshTransactionFromBlockchain(String hash)voidscanNewerBlocks()voidsendRawTransactions()voidstart()voidstop()
-
-
-
Constructor Detail
-
EthereumBlockchainTransactionService
public EthereumBlockchainTransactionService(org.exoplatform.commons.api.settings.SettingService settingService, EthereumClientConnector ethereumClientConnector, org.exoplatform.wallet.service.WalletTransactionService transactionService, org.exoplatform.wallet.service.WalletAccountService accountService)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
checkPendingTransactions
public void checkPendingTransactions()
- Specified by:
checkPendingTransactionsin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
scanNewerBlocks
public void scanNewerBlocks() throws IOException- Specified by:
scanNewerBlocksin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService- Throws:
IOException
-
sendRawTransactions
public void sendRawTransactions()
- Specified by:
sendRawTransactionsin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
checkPendingTransactionValidity
public void checkPendingTransactionValidity(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail)
- Specified by:
checkPendingTransactionValidityin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
checkTransactionStatusOnBlockchain
public void checkTransactionStatusOnBlockchain(String transactionHash, boolean pendingTransactionFromDatabase)
- Specified by:
checkTransactionStatusOnBlockchainin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
refreshTransactionFromBlockchain
public org.exoplatform.wallet.model.transaction.TransactionDetail refreshTransactionFromBlockchain(String hash)
- Specified by:
refreshTransactionFromBlockchainin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
refreshBlockchainGasPrice
public long refreshBlockchainGasPrice() throws IOException- Specified by:
refreshBlockchainGasPricein interfaceorg.exoplatform.wallet.service.BlockchainTransactionService- Throws:
IOException
-
-