Class WalletContractServiceImpl

  • All Implemented Interfaces:
    org.exoplatform.wallet.service.WalletContractService, org.picocontainer.Startable

    public class WalletContractServiceImpl
    extends Object
    implements org.exoplatform.wallet.service.WalletContractService, org.picocontainer.Startable
    • Constructor Detail

      • WalletContractServiceImpl

        public WalletContractServiceImpl​(org.exoplatform.commons.api.settings.SettingService settingService,
                                         org.exoplatform.container.configuration.ConfigurationManager configurationManager,
                                         org.exoplatform.container.xml.InitParams params)
    • Method Detail

      • start

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

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

        public boolean isContract​(String address)
        Specified by:
        isContract in interface org.exoplatform.wallet.service.WalletContractService
      • saveContractDetail

        public void saveContractDetail​(org.exoplatform.wallet.model.ContractDetail contractDetail)
        Specified by:
        saveContractDetail in interface org.exoplatform.wallet.service.WalletContractService
      • getContractDetail

        public org.exoplatform.wallet.model.ContractDetail getContractDetail​(String address)
        Specified by:
        getContractDetail in interface org.exoplatform.wallet.service.WalletContractService
      • getContractAbi

        public org.json.JSONArray getContractAbi()
        Specified by:
        getContractAbi in interface org.exoplatform.wallet.service.WalletContractService
      • getContractBinary

        public String getContractBinary()
        Specified by:
        getContractBinary in interface org.exoplatform.wallet.service.WalletContractService
      • getContractFileContent

        public String getContractFileContent​(String name,
                                             String extension)
                                      throws IOException
        Specified by:
        getContractFileContent in interface org.exoplatform.wallet.service.WalletContractService
        Throws:
        IOException