Triggers
Every guard has an associated trigger that determines when the check is run. Triggers are pre-determined for each guard. A trigger is a lightweight piece of logic that is run to determine if the full check is relevant for a given transaction.

In the above example, this guard triggers on transactions that emit an Approval event for a specific token contract. This guard checks for approvals that may indicate phishing and therefore does not need to run the check unless an approval occurs.
Last updated