@Deprecated
public abstract class Contract
extends java.lang.Object
Constructor and Description |
---|
Contract()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
CertificateEntry.Key |
getCertificateKey()
Deprecated.
|
abstract javax.json.JsonObject |
invoke(Ledger ledger,
javax.json.JsonObject argument,
java.util.Optional<javax.json.JsonObject> properties)
Deprecated.
Invokes the contract to
Ledger with the specified argument and the pre-registered
contract properties. |
protected javax.json.JsonObject |
invoke(java.lang.String contractId,
Ledger ledger,
javax.json.JsonObject argument)
Deprecated.
Invokes the specified contract to
Ledger with the specified argument. |
boolean |
isRoot()
Deprecated.
|
public boolean isRoot()
@Nullable public CertificateEntry.Key getCertificateKey()
public abstract javax.json.JsonObject invoke(Ledger ledger, javax.json.JsonObject argument, java.util.Optional<javax.json.JsonObject> properties)
Ledger
with the specified argument and the pre-registered
contract properties. An implementation of the Contract
should throw ContractContextException
if it faces application-level contextual error (such as lack of
balance in payment application).ledger
- tamper-evident ledgerargument
- json-formatted argumentproperties
- json-formatted pre-registered contract propertiesprotected final javax.json.JsonObject invoke(java.lang.String contractId, Ledger ledger, javax.json.JsonObject argument)
Ledger
with the specified argument.contractId
- another contract to invokeledger
- tamper-evident ledgerargument
- json-formatted result