public class EthereumWalletContractService extends Object implements org.exoplatform.addon.ethereum.wallet.service.WalletContractService, org.picocontainer.Startable
| Constructor and Description |
|---|
EthereumWalletContractService(org.exoplatform.container.configuration.ConfigurationManager configurationManager,
org.exoplatform.commons.api.settings.SettingService settingService,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
getContractAbi() |
String |
getContractBinary() |
org.exoplatform.addon.ethereum.wallet.model.ContractDetail |
getContractDetail(String address,
Long networkId) |
String |
getContractFileContent(String name,
String extension) |
Set<String> |
getDefaultContractsAddresses(Long networkId) |
boolean |
isContract(String address,
long networkId) |
boolean |
removeDefaultContract(String address,
Long networkId) |
void |
saveContract(org.exoplatform.addon.ethereum.wallet.model.ContractDetail contractDetail) |
void |
start() |
void |
stop() |
public EthereumWalletContractService(org.exoplatform.container.configuration.ConfigurationManager configurationManager,
org.exoplatform.commons.api.settings.SettingService settingService,
org.exoplatform.container.xml.InitParams params)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic boolean isContract(String address, long networkId)
isContract in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServicepublic void saveContract(org.exoplatform.addon.ethereum.wallet.model.ContractDetail contractDetail)
saveContract in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServicepublic boolean removeDefaultContract(String address, Long networkId)
removeDefaultContract in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServicepublic org.exoplatform.addon.ethereum.wallet.model.ContractDetail getContractDetail(String address, Long networkId)
getContractDetail in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServicepublic Set<String> getDefaultContractsAddresses(Long networkId)
getDefaultContractsAddresses in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServicepublic org.json.JSONArray getContractAbi()
getContractAbi in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServicepublic String getContractBinary()
getContractBinary in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServicepublic String getContractFileContent(String name, String extension) throws IOException
getContractFileContent in interface org.exoplatform.addon.ethereum.wallet.service.WalletContractServiceIOExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.