Class KeyDecryptionOracleStatusService
java.lang.Object
net.finmath.decryptionoracle.keys.service.KeyDecryptionOracleStatusService
@Service
@ConditionalOnProperty(name="ethereum.listener.enabled",
havingValue="true")
public class KeyDecryptionOracleStatusService
extends Object
Service that provides status information of the Decryption Oracle.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionKeyDecryptionOracleStatusService(org.web3j.protocol.Web3j web3, String contractAddress, String oracleAddress) Create a status service for a given contract (on-chain) and oracle (off-chain). -
Method Summary
Modifier and TypeMethodDescriptionGet status information as key-value map.
-
Constructor Details
-
KeyDecryptionOracleStatusService
public KeyDecryptionOracleStatusService(org.web3j.protocol.Web3j web3, @Value("${ethereum.keydecryptionoracle.contract}") String contractAddress, @Value("${ethereum.sender.address}") String oracleAddress) Create a status service for a given contract (on-chain) and oracle (off-chain).- Parameters:
web3- Web3j bean.contractAddress- On-chain contract.oracleAddress- Off-chain contract.
-
-
Method Details
-
readStatus
Get status information as key-value map. Keys are "owner", "fee...", "lastRequestId", "network" (submap), ...- Returns:
- Status.
-