import { EXCHANGE_FETCH, EXCHANGE_FETCH_ERROR, EXCHANGE_FETCH_SUCCESS, EXCHANGE_SET, EXCHANGE_VALIDATE_FETCH, EXCHANGE_VALIDATE_FETCH_ERROR, EXCHANGE_VALIDATE_FETCH_SUCCESS } from "./exchangeActionConstants";

export const fetchExchange = (payload) => ({
    type: EXCHANGE_FETCH,
    payload,
})
export const setExchange = (payload) => ({
    type: EXCHANGE_SET,
    payload,
})
export const validateExchange = (payload) => ({
    type: EXCHANGE_VALIDATE_FETCH,
    payload,
})
export const fetchExchangeSuccess = () => ({
    type: EXCHANGE_FETCH_SUCCESS
})
export const fetchExchangeError = () => ({
    type: EXCHANGE_FETCH_ERROR
})
export const validateExchangeSuccess = () => ({
    type: EXCHANGE_VALIDATE_FETCH_SUCCESS
})
export const validateExchangeError = () => ({
    type: EXCHANGE_VALIDATE_FETCH_ERROR
})