import { ExecuterActions } from '@arthur2079/queue-manager-core'; import { StepEventType, SwapActionTypes, SwapStorage } from '../types'; import { notifier } from '../services/eventEmitter'; export function start({ schedule, next, getStorage, }: ExecuterActions): void { const swap = getStorage().swapDetails; notifier({ event: { type: StepEventType.STARTED }, swap, step: null }); schedule(SwapActionTypes.SCHEDULE_NEXT_STEP); next(); }