In this repo we provide the DFlow Motoko SDK and an example App to showcase how to integrate DFlow into your application.
The receiving canister must implement the following 4 functions to handle money flow event updates:
onFlowCreation: (args: Flow) -> ();
onFlowUpdate: (args: Flow) -> ();
onFlowDeletion: (args: Flow) -> ();
onFlowLiquidation: (args: Flow) -> ();