Package com.jelurida.ardor.contracts
Class WhaleAlert
A contact which monitors new transactions and asset trades and report alerts
when high value transaction or trade is observed.
Configuration: "slackWebHookUrl" - points to web-hook of slack channel for notifications "thresholds" - array of thresholds defining holding and threshold to monitor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(InitializationContext context) Contract initialization.processBlock(BlockContext context) processRequest(RequestContext context) Methods inherited from class nxt.addons.AbstractContract
isDuplicate, processInvocation, processTransaction, processVoucherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.addons.Contract
minProductVersion, shutdown
-
Constructor Details
-
WhaleAlert
public WhaleAlert()
-
-
Method Details
-
init
Description copied from interface:ContractContract initialization.Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.
- Parameters:
context- the contract context
-
processBlock
- Specified by:
processBlockin interfaceContract<Object,Object> - Overrides:
processBlockin classAbstractContract<Object,Object>
-
processRequest
- Specified by:
processRequestin interfaceContract<Object,Object> - Overrides:
processRequestin classAbstractContract<Object,Object>
-