Class SuperUserSmartContractService
java.lang.Object
dev.getelements.elements.service.blockchain.omni.SuperUserSmartContractService
- All Implemented Interfaces:
SmartContractService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSmartContract(CreateSmartContractRequest createSmartContractRequest) Creates a new smart contract.voiddeleteContract(String contractId) Deletes theSmartContractwith the supplied contract ID.getSmartContract(String contractId) Fetches a specificSmartContractinstance based on ID.getSmartContracts(int offset, int count, BlockchainApi blockchainApi, List<BlockchainNetwork> blockchainNetworks) Lists allSmartContractinstances, specifying a search query.voidsetSmartContractDao(SmartContractDao smartContractDao) voidsetValidationHelper(ValidationHelper validationHelper) voidsetVaultDao(VaultDao vaultDao) updateSmartContract(String smartContractId, UpdateSmartContractRequest updateSmartContractRequest) Updates the suppliedSmartContract.
-
Constructor Details
-
SuperUserSmartContractService
public SuperUserSmartContractService()
-
-
Method Details
-
getSmartContracts
public Pagination<SmartContract> getSmartContracts(int offset, int count, BlockchainApi blockchainApi, List<BlockchainNetwork> blockchainNetworks) Description copied from interface:SmartContractServiceLists allSmartContractinstances, specifying a search query.- Specified by:
getSmartContractsin interfaceSmartContractService- Parameters:
offset-count-- Returns:
- a
PaginationofSmartContractinstances
-
getSmartContract
Description copied from interface:SmartContractServiceFetches a specificSmartContractinstance based on ID. If not found, an exception is raised.- Specified by:
getSmartContractin interfaceSmartContractService- Parameters:
contractId- the contract ID- Returns:
- the
SmartContract, never null
-
createSmartContract
Description copied from interface:SmartContractServiceCreates a new smart contract.- Specified by:
createSmartContractin interfaceSmartContractService- Parameters:
createSmartContractRequest- creates a smart contract- Returns:
- the
SmartContract
-
updateSmartContract
public SmartContract updateSmartContract(String smartContractId, UpdateSmartContractRequest updateSmartContractRequest) Description copied from interface:SmartContractServiceUpdates the suppliedSmartContract. ThePatchSmartContractRequestmethod is used to key theSmartContract.- Specified by:
updateSmartContractin interfaceSmartContractService- Parameters:
updateSmartContractRequest- theUpdateSmartContractRequestwith the information to update- Returns:
- the
SmartContractas it was changed by the service.
-
getVaultDao
-
setVaultDao
-
deleteContract
Description copied from interface:SmartContractServiceDeletes theSmartContractwith the supplied contract ID.- Specified by:
deleteContractin interfaceSmartContractService- Parameters:
contractId- the contract ID.
-
getSmartContractDao
-
setSmartContractDao
-
getValidationHelper
-
setValidationHelper
-