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 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:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable
    • sendPendingTransactionsToBlockchain

      public List<io.meeds.wallet.model.TransactionDetail> sendPendingTransactionsToBlockchain()
      Specified by:
      sendPendingTransactionsToBlockchain in interface io.meeds.wallet.service.BlockchainTransactionService
    • addTransactionToRefreshFromBlockchain

      public void addTransactionToRefreshFromBlockchain(io.meeds.wallet.model.TransactionDetail transactionDetail)
      Specified by:
      addTransactionToRefreshFromBlockchain in interface io.meeds.wallet.service.BlockchainTransactionService
    • refreshTransactionFromBlockchain

      public io.meeds.wallet.model.TransactionDetail refreshTransactionFromBlockchain(String transactionHash)
      Specified by:
      refreshTransactionFromBlockchain in interface io.meeds.wallet.service.BlockchainTransactionService
    • getGasPrice

      public double getGasPrice() throws IOException
      Specified by:
      getGasPrice in interface io.meeds.wallet.service.BlockchainTransactionService
      Throws:
      IOException
    • hasManagedWalletInTransaction

      public boolean hasManagedWalletInTransaction(io.meeds.wallet.model.ContractTransactionEvent transactionEvent)
      Specified by:
      hasManagedWalletInTransaction in interface io.meeds.wallet.service.BlockchainTransactionService
    • getLastWatchedBlockNumber

      public long getLastWatchedBlockNumber()
      Specified by:
      getLastWatchedBlockNumber in interface io.meeds.wallet.service.BlockchainTransactionService
    • saveLastWatchedBlockNumber

      public void saveLastWatchedBlockNumber(long lastWatchedBlockNumber)
      Specified by:
      saveLastWatchedBlockNumber in interface io.meeds.wallet.service.BlockchainTransactionService
    • startWatchingBlockchain

      public Future startWatchingBlockchain()
      Specified by:
      startWatchingBlockchain in interface io.meeds.wallet.service.BlockchainTransactionService
    • stopWatchingBlockchain

      public void stopWatchingBlockchain()
      Specified by:
      stopWatchingBlockchain in interface io.meeds.wallet.service.BlockchainTransactionService
    • startAsync

      protected void startAsync()