public class EthereumBlockchainTransactionService extends Object implements org.exoplatform.wallet.service.BlockchainTransactionService, org.picocontainer.Startable
| Constructor and Description |
|---|
EthereumBlockchainTransactionService(org.exoplatform.commons.api.settings.SettingService settingService,
EthereumClientConnector ethereumClientConnector,
org.exoplatform.wallet.service.WalletTransactionService transactionService,
org.exoplatform.wallet.service.WalletAccountService accountService) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPendingTransactions() |
void |
checkPendingTransactionValidity(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail) |
void |
checkTransactionStatusOnBlockchain(String transactionHash,
boolean pendingTransactionFromDatabase) |
void |
computeTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail,
org.exoplatform.wallet.model.ContractDetail contractDetail,
org.web3j.protocol.core.methods.response.Transaction transaction,
org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt) |
long |
refreshBlockchainGasPrice() |
org.exoplatform.wallet.model.transaction.TransactionDetail |
refreshTransactionFromBlockchain(String hash) |
void |
scanNewerBlocks() |
void |
sendRawTransactions() |
void |
start() |
void |
stop() |
public EthereumBlockchainTransactionService(org.exoplatform.commons.api.settings.SettingService settingService,
EthereumClientConnector ethereumClientConnector,
org.exoplatform.wallet.service.WalletTransactionService transactionService,
org.exoplatform.wallet.service.WalletAccountService accountService)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void checkPendingTransactions()
checkPendingTransactions in interface org.exoplatform.wallet.service.BlockchainTransactionServicepublic void scanNewerBlocks()
throws IOException
scanNewerBlocks in interface org.exoplatform.wallet.service.BlockchainTransactionServiceIOExceptionpublic void sendRawTransactions()
sendRawTransactions in interface org.exoplatform.wallet.service.BlockchainTransactionServicepublic void checkPendingTransactionValidity(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail)
checkPendingTransactionValidity in interface org.exoplatform.wallet.service.BlockchainTransactionServicepublic void checkTransactionStatusOnBlockchain(String transactionHash, boolean pendingTransactionFromDatabase)
checkTransactionStatusOnBlockchain in interface org.exoplatform.wallet.service.BlockchainTransactionServicepublic org.exoplatform.wallet.model.transaction.TransactionDetail refreshTransactionFromBlockchain(String hash)
refreshTransactionFromBlockchain in interface org.exoplatform.wallet.service.BlockchainTransactionServicepublic long refreshBlockchainGasPrice()
throws IOException
refreshBlockchainGasPrice in interface org.exoplatform.wallet.service.BlockchainTransactionServiceIOExceptionpublic void computeTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail,
org.exoplatform.wallet.model.ContractDetail contractDetail,
org.web3j.protocol.core.methods.response.Transaction transaction,
org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.