public class IgnisArdorRates extends AbstractContract
Constructor and Description |
---|
IgnisArdorRates() |
Modifier and Type | Method and Description |
---|---|
void |
processBlock(BlockContext context)
Write the Ignis per Ardor exchange rate to an account property every pre-defined number of blocks defined by the
contract parameter "frequency".
|
void |
processRequest(RequestContext context)
Send the exchange rate in response to a simple API call
|
void |
processTransaction(TransactionContext context)
Send the Ignis per Ardor exchange rate as an encrypted message back to the sender of the trigger transaction.
|
getContractParams, processInvocation, processVoucher, setContractParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
minProductVersion
public void processBlock(BlockContext context)
processBlock
in interface Contract
processBlock
in class AbstractContract
context
- the block contextpublic void processTransaction(TransactionContext context)
processTransaction
in interface Contract
processTransaction
in class AbstractContract
context
- the transaction contextpublic void processRequest(RequestContext context)
processRequest
in interface Contract
processRequest
in class AbstractContract
context
- the api request context