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