Is there a way to get the index (ordinal) of the current action that is being processed?
If you could access
apply_context you could do
get_action_id() but afaik that isn't exposed inside an action.
What I would like is to be able to know the contract that is being executed that I'm being notified of inside a notification handler like