// runningActions iterates through the Actions() running on an // ActionReceiver, and converts them to a slice of params.ActionResult. func runningActions(ar state.ActionReceiver) ([]params.ActionResult, error) { return common.ConvertActions(ar, ar.RunningActions) }
// completedActions iterates through the Actions() that have run to // completion for an ActionReceiver, and converts them to a slice of // params.ActionResult. func completedActions(ar state.ActionReceiver) ([]params.ActionResult, error) { return common.ConvertActions(ar, ar.CompletedActions) }
func (shim backendShim) ConvertActions(ar state.ActionReceiver, fn common.GetActionsFn) ([]params.ActionResult, error) { return common.ConvertActions(ar, fn) }