ilink-world/redux/actions/WalletActions.js

54 lines
1.3 KiB
JavaScript
Raw Normal View History

2020-04-28 09:22:36 +00:00
import {
WALLET_LIST_PENDING,
WALLET_LIST_SUCCESS,
WALLET_LIST_ERROR,
WALLET_HISTORY_PENDING,
WALLET_HISTORY_SUCCESS,
WALLET_HISTORY_ERROR,
WALLET_TRANSFER_COMMISSION_PENDING,
WALLET_TRANSFER_COMMISSION_SUCCESS,
WALLET_TRANSFER_COMMISSION_ERROR
} from "../types/WalletType";
2020-04-17 22:03:04 +00:00
export const fetchWalletListPending = () => ({
type: WALLET_LIST_PENDING
});
export const fetchWalletListSuccess = (res) => ({
type: WALLET_LIST_SUCCESS,
result: res,
});
export const fetchWalletListError = (error) => ({
type: WALLET_LIST_ERROR,
result: error
2020-04-28 09:22:36 +00:00
});
export const fetchWalletHistoryPending = () => ({
type: WALLET_HISTORY_PENDING
});
export const fetchWalletHistorySuccess = (res) => ({
type: WALLET_HISTORY_SUCCESS,
result: res,
});
export const fetchWalletHistoryError = (error) => ({
type: WALLET_HISTORY_ERROR,
result: error
});
export const fetchWalletTransferCommissionPending = () => ({
type: WALLET_TRANSFER_COMMISSION_PENDING
});
export const fetchWalletTransferCommissionSuccess = (res) => ({
type: WALLET_TRANSFER_COMMISSION_SUCCESS,
result: res,
});
export const fetchWalletTransferCommssionError = (error) => ({
type: WALLET_TRANSFER_COMMISSION_ERROR,
result: error
2020-04-17 22:03:04 +00:00
});