public interface WalletContractService
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
getContractAbi()
Get Contract ABI
|
String |
getContractBinary()
Get Contract BINARY to deploy
|
ContractDetail |
getContractDetail(String address,
Long networkId)
Get contract detail
|
String |
getContractFileContent(String name,
String extension)
Retreive the ABI or BIN content of a contract
|
Set<String> |
getDefaultContractsAddresses(Long networkId)
Retrieves the list of default contract addreses
|
boolean |
isContract(String address,
long networkId) |
boolean |
removeDefaultContract(String address,
Long networkId)
Removes a contract address from default contracts displayed in wallet of
all users
|
void |
saveContract(ContractDetail contractDetail)
Save a new contract details
|
boolean isContract(String address, long networkId)
address - contract address to checknetworkId - blockchain network idvoid saveContract(ContractDetail contractDetail)
contractDetail - contract details to saveboolean removeDefaultContract(String address, Long networkId)
address - contract address to remove from watched listnetworkId - blockchain network id where contract is deployedContractDetail getContractDetail(String address, Long networkId)
address - contract address to get from watched listnetworkId - blockchain network id where contract is deployedContractDetail contract detailsSet<String> getDefaultContractsAddresses(Long networkId)
networkId - blockchain network id where contract is deployedSet of watched contracts addressesorg.json.JSONArray getContractAbi()
JSONArray ABI of contract in JSON formatString getContractBinary()
String getContractFileContent(String name, String extension) throws IOException
name - contract nameextension - contract ABI file extension ('json' or 'abi')StringIOException - when an error occurs while getting contract ABI file
from filesystemCopyright © 2003–2019 eXo Platform SAS. All rights reserved.