pub fn validate_response( action: Action, payload: &str, ) -> Result<Value, Violation>
Decodes and validates the CALLRESULT payload for action, returning it as JSON.
action