Class ContractTransactionMinedListener

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin

    public class ContractTransactionMinedListener
    extends org.exoplatform.services.listener.Listener<String,​org.exoplatform.wallet.model.ContractTransactionEvent>
    Triggered when a contract transaction is mined. This listener will not be triggered for ether transactions bu it will verify at the same time that the sender wallet doesn't have any pending ether transaction, else it will be verified. (Thus for Wallet initializations, the ether transactions are sent before contract sending to ensure to get the ether transaction mined before token transaction all time, because it will use a lower nonce)
    • Field Summary

      • Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

        desc, name
    • Constructor Summary

      Constructors 
      Constructor Description
      ContractTransactionMinedListener​(org.exoplatform.wallet.service.WalletTransactionService walletTransactionService, org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService)  
    • Constructor Detail

      • ContractTransactionMinedListener

        public ContractTransactionMinedListener​(org.exoplatform.wallet.service.WalletTransactionService walletTransactionService,
                                                org.exoplatform.wallet.service.BlockchainTransactionService blockchainTransactionService)
    • Method Detail

      • onEvent

        public void onEvent​(org.exoplatform.services.listener.Event<String,​org.exoplatform.wallet.model.ContractTransactionEvent> event)
                     throws Exception
        Specified by:
        onEvent in class org.exoplatform.services.listener.Listener<String,​org.exoplatform.wallet.model.ContractTransactionEvent>
        Throws:
        Exception