59 lines
1.4 KiB
JavaScript
59 lines
1.4 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
|
|
} 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 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 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
|
|
}); |