192 lines
4.9 KiB
JavaScript
192 lines
4.9 KiB
JavaScript
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,
|
|
WALLET_TRANSFER_COMMISSION_RESET,
|
|
WALLET_HISTORY_RESET,
|
|
WALLET_LIST_DETAIL_RESET,
|
|
WALLET_LIST_DETAIL_ERROR,
|
|
WALLET_LIST_DETAIL_PENDING,
|
|
WALLET_LIST_DETAIL_SUCCESS,
|
|
WALLET_GET_COMMISSION_PENDING,
|
|
WALLET_GET_COMMISSION_SUCCESS,
|
|
WALLET_GET_COMMISSION_ERROR,
|
|
WALLET_GET_COMMISSION_RESET,
|
|
WALLET_GET_RETREAIT_COMMISSION_PENDING,
|
|
WALLET_GET_RETREAIT_COMMISSION_SUCCESS,
|
|
WALLET_GET_RETREAIT_COMMISSION_ERROR,
|
|
WALLET_GET_RETREAIT_COMMISSION_RESET,
|
|
LINK_CARD_PENDING,
|
|
LINK_CARD_RESET,
|
|
LINK_CARD_SUCCESS,
|
|
LINK_CARD_ERROR,
|
|
WALLET_HISTORY_HYPER_SUPER_PENDING,
|
|
WALLET_HISTORY_HYPER_SUPER__SUCCESS,
|
|
WALLET_HISTORY_HYPER_SUPER__ERROR,
|
|
WALLET_HISTORY_HYPER_SUPER__RESET
|
|
} from "../types/WalletType";
|
|
|
|
|
|
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
|
|
});
|
|
|
|
export const fetchWalletListReset = (error) => ({
|
|
type: WALLET_LIST_RESET,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletListDetailPending = () => ({
|
|
type: WALLET_LIST_DETAIL_PENDING
|
|
});
|
|
|
|
export const fetchWalletListDetailSuccess = (res) => ({
|
|
type: WALLET_LIST_DETAIL_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletListDetailError = (error) => ({
|
|
type: WALLET_LIST_DETAIL_ERROR,
|
|
result: error
|
|
});
|
|
|
|
export const fetchWalletListDetailReset = (error) => ({
|
|
type: WALLET_LIST_DETAIL_RESET,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletHistoryPending = () => ({
|
|
type: WALLET_HISTORY_PENDING
|
|
});
|
|
|
|
export const fetchWalletHistoryReset = () => ({
|
|
type: WALLET_HISTORY_RESET
|
|
});
|
|
|
|
export const fetchWalletHistorySuccess = (res) => ({
|
|
type: WALLET_HISTORY_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletHistoryError = (error) => ({
|
|
type: WALLET_HISTORY_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletHistoryHyperSuperPending = () => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER_PENDING
|
|
});
|
|
|
|
export const fetchWalletHistoryHyperSuperReset = () => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER__RESET
|
|
});
|
|
|
|
export const fetchWalletHistoryHyperSuperSuccess = (res) => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER__SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletHistoryHyperSuperError = (error) => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER__ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletTransferCommissionPending = () => ({
|
|
type: WALLET_TRANSFER_COMMISSION_PENDING
|
|
});
|
|
|
|
export const walletTransferCommissionReset = () => ({
|
|
type: WALLET_TRANSFER_COMMISSION_RESET
|
|
});
|
|
|
|
export const fetchWalletTransferCommissionSuccess = (res) => ({
|
|
type: WALLET_TRANSFER_COMMISSION_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletTransferCommssionError = (error) => ({
|
|
type: WALLET_TRANSFER_COMMISSION_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletGetCommissionPending = () => ({
|
|
type: WALLET_GET_COMMISSION_PENDING
|
|
});
|
|
|
|
export const walletGetCommissionReset = () => ({
|
|
type: WALLET_GET_COMMISSION_RESET
|
|
});
|
|
|
|
export const fetchWalletGetCommissionSuccess = (res) => ({
|
|
type: WALLET_GET_COMMISSION_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalleGetCommissionError = (error) => ({
|
|
type: WALLET_GET_COMMISSION_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchLinkCardPending = () => ({
|
|
type: LINK_CARD_PENDING
|
|
});
|
|
|
|
export const fetchLinkCardReset = () => ({
|
|
type: LINK_CARD_RESET
|
|
});
|
|
|
|
export const fetchLinkCardSuccess = (res) => ({
|
|
type: LINK_CARD_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchLinkCardError = (error) => ({
|
|
type: LINK_CARD_ERROR,
|
|
result: error
|
|
});
|
|
|
|
/* export const fetchWalletGetRetraitCommissionPending = () => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_PENDING
|
|
});
|
|
|
|
export const walletGetRetraitCommissionReset = () => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_RESET
|
|
});
|
|
|
|
export const fetchWalletGetRetraitCommissionSuccess = (res) => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalleGetRetraitCommissionError = (error) => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_ERROR,
|
|
result: error
|
|
}); */ |