-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { action } from 'typesafe-actions' | ||
import { WorldsWalletStats } from 'lib/api/worlds' | ||
|
||
// Fetch Wallet Worlds Stats | ||
export const FETCH_WALLET_WORLDS_STATS_REQUEST = '[Request] Fetch Wallet Worlds Stats' | ||
export const FETCH_WALLET_WORLDS_STATS_SUCCESS = '[Success] Fetch Wallet Worlds Stats' | ||
export const FETCH_WALLET_WORLDS_STATS_FAILURE = '[Failure] Fetch Wallet Worlds Stats' | ||
// Fetch Worlds Wallet Stats | ||
export const FETCH_WORLDS_WALLET_STATS_REQUEST = '[Request] Fetch Worlds Wallet Stats' | ||
export const FETCH_WORLDS_WALLET_STATS_SUCCESS = '[Success] Fetch Worlds Wallet Stats' | ||
export const FETCH_WORLDS_WALLET_STATS_FAILURE = '[Failure] Fetch Worlds Wallet Stats' | ||
|
||
export const fetchWalletWorldsStatsRequest = (address: string) => action(FETCH_WALLET_WORLDS_STATS_REQUEST, { address }) | ||
export const fetchWalletWorldsStatsSuccess = (address: string, stats: WorldsWalletStats) => | ||
action(FETCH_WALLET_WORLDS_STATS_SUCCESS, { address, stats }) | ||
export const fetchWalletWorldsStatsFailure = (address: string, error: string) => | ||
action(FETCH_WALLET_WORLDS_STATS_FAILURE, { address, error }) | ||
export const fetchWorldsWalletStatsRequest = (address: string) => action(FETCH_WORLDS_WALLET_STATS_REQUEST, { address }) | ||
export const fetchWorldsWalletStatsSuccess = (address: string, stats: WorldsWalletStats) => | ||
action(FETCH_WORLDS_WALLET_STATS_SUCCESS, { address, stats }) | ||
export const fetchWorldsWalletStatsFailure = (address: string, error: string) => | ||
action(FETCH_WORLDS_WALLET_STATS_FAILURE, { address, error }) | ||
|
||
export type FetchWalletWorldsStatsRequestAction = ReturnType<typeof fetchWalletWorldsStatsRequest> | ||
export type FetchWalletWorldsStatsSuccessAction = ReturnType<typeof fetchWalletWorldsStatsSuccess> | ||
export type FetchWalletWorldsStatsFailureAction = ReturnType<typeof fetchWalletWorldsStatsFailure> | ||
export type FetchWalletWorldsStatsRequestAction = ReturnType<typeof fetchWorldsWalletStatsRequest> | ||
export type FetchWalletWorldsStatsSuccessAction = ReturnType<typeof fetchWorldsWalletStatsSuccess> | ||
export type FetchWalletWorldsStatsFailureAction = ReturnType<typeof fetchWorldsWalletStatsFailure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters