Package org.exoplatform.wallet.service
Class WalletContractServiceImpl
- java.lang.Object
-
- org.exoplatform.wallet.service.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 Summary
Constructors Constructor Description WalletContractServiceImpl(org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.container.xml.InitParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.JSONArraygetContractAbi()StringgetContractBinary()org.exoplatform.wallet.model.ContractDetailgetContractDetail(String address)StringgetContractFileContent(String name, String extension)booleanisContract(String address)voidrefreshContractDetail(Set<String> contractModifications)voidsaveContractDetail(org.exoplatform.wallet.model.ContractDetail contractDetail)voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
isContract
public boolean isContract(String address)
- Specified by:
isContractin interfaceorg.exoplatform.wallet.service.WalletContractService
-
saveContractDetail
public void saveContractDetail(org.exoplatform.wallet.model.ContractDetail contractDetail)
- Specified by:
saveContractDetailin interfaceorg.exoplatform.wallet.service.WalletContractService
-
getContractDetail
public org.exoplatform.wallet.model.ContractDetail getContractDetail(String address)
- Specified by:
getContractDetailin interfaceorg.exoplatform.wallet.service.WalletContractService
-
refreshContractDetail
public void refreshContractDetail(Set<String> contractModifications)
- Specified by:
refreshContractDetailin interfaceorg.exoplatform.wallet.service.WalletContractService
-
getContractAbi
public org.json.JSONArray getContractAbi()
- Specified by:
getContractAbiin interfaceorg.exoplatform.wallet.service.WalletContractService
-
getContractBinary
public String getContractBinary()
- Specified by:
getContractBinaryin interfaceorg.exoplatform.wallet.service.WalletContractService
-
getContractFileContent
public String getContractFileContent(String name, String extension) throws IOException
- Specified by:
getContractFileContentin interfaceorg.exoplatform.wallet.service.WalletContractService- Throws:
IOException
-
-