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

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

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

      public void addTransactionToRefreshFromBlockchain(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail)
      Specified by:
      addTransactionToRefreshFromBlockchain in interface org.exoplatform.wallet.service.BlockchainTransactionService
    • refreshTransactionFromBlockchain

      public org.exoplatform.wallet.model.transaction.TransactionDetail refreshTransactionFromBlockchain(String transactionHash)
      Specified by:
      refreshTransactionFromBlockchain in interface org.exoplatform.wallet.service.BlockchainTransactionService
    • getGasPrice

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

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

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

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

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

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

      protected void startAsync()