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
ConstructorsConstructorDescriptionEthereumBlockchainTransactionService(org.exoplatform.container.PortalContainer container, org.exoplatform.wallet.service.WalletService walletService, org.exoplatform.commons.api.settings.SettingService settingService, EthereumClientConnector ethereumClientConnector, org.exoplatform.wallet.service.WalletTransactionService transactionService, org.exoplatform.wallet.service.WalletAccountService accountService, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransactionToRefreshFromBlockchain(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail) doublelongbooleanhasManagedWalletInTransaction(org.exoplatform.wallet.model.ContractTransactionEvent transactionEvent) org.exoplatform.wallet.model.transaction.TransactionDetailrefreshTransactionFromBlockchain(String transactionHash) voidsaveLastWatchedBlockNumber(long lastWatchedBlockNumber) List<org.exoplatform.wallet.model.transaction.TransactionDetail> voidstart()protected voidvoidstop()void
-
Constructor Details
-
EthereumBlockchainTransactionService
public EthereumBlockchainTransactionService(org.exoplatform.container.PortalContainer container, org.exoplatform.wallet.service.WalletService walletService, org.exoplatform.commons.api.settings.SettingService settingService, EthereumClientConnector ethereumClientConnector, org.exoplatform.wallet.service.WalletTransactionService transactionService, org.exoplatform.wallet.service.WalletAccountService accountService, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
sendPendingTransactionsToBlockchain
public List<org.exoplatform.wallet.model.transaction.TransactionDetail> sendPendingTransactionsToBlockchain()- Specified by:
sendPendingTransactionsToBlockchainin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
addTransactionToRefreshFromBlockchain
public void addTransactionToRefreshFromBlockchain(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail) - Specified by:
addTransactionToRefreshFromBlockchainin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
refreshTransactionFromBlockchain
public org.exoplatform.wallet.model.transaction.TransactionDetail refreshTransactionFromBlockchain(String transactionHash) - Specified by:
refreshTransactionFromBlockchainin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
getGasPrice
- Specified by:
getGasPricein interfaceorg.exoplatform.wallet.service.BlockchainTransactionService- Throws:
IOException
-
hasManagedWalletInTransaction
public boolean hasManagedWalletInTransaction(org.exoplatform.wallet.model.ContractTransactionEvent transactionEvent) - Specified by:
hasManagedWalletInTransactionin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
getLastWatchedBlockNumber
public long getLastWatchedBlockNumber()- Specified by:
getLastWatchedBlockNumberin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
saveLastWatchedBlockNumber
public void saveLastWatchedBlockNumber(long lastWatchedBlockNumber) - Specified by:
saveLastWatchedBlockNumberin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
startWatchingBlockchain
- Specified by:
startWatchingBlockchainin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
stopWatchingBlockchain
public void stopWatchingBlockchain()- Specified by:
stopWatchingBlockchainin interfaceorg.exoplatform.wallet.service.BlockchainTransactionService
-
startAsync
protected void startAsync()
-