2019-07-01 21:49:51 +02:00
|
|
|
import * as CLAIM_VALUES from 'constants/claim';
|
2018-04-05 04:57:29 +02:00
|
|
|
import * as ACTIONS from 'constants/action_types';
|
2019-07-01 21:49:51 +02:00
|
|
|
import * as LICENSES from 'constants/licenses';
|
|
|
|
import * as PAGES from 'constants/pages';
|
2018-05-27 22:30:07 +02:00
|
|
|
import * as SETTINGS from 'constants/settings';
|
2018-10-23 05:31:57 +02:00
|
|
|
import * as SORT_OPTIONS from 'constants/sort_options';
|
2019-07-01 21:49:51 +02:00
|
|
|
import * as THUMBNAIL_STATUSES from 'constants/thumbnail_upload_statuses';
|
|
|
|
import * as TRANSACTIONS from 'constants/transaction_types';
|
2019-09-25 18:30:26 +02:00
|
|
|
import * as TX_LIST from 'constants/transaction_list';
|
2020-04-25 22:31:53 +02:00
|
|
|
import * as ABANDON_STATES from 'constants/abandon_states';
|
2020-04-10 14:16:27 +02:00
|
|
|
import * as TXO_LIST from 'constants/txo_list';
|
2019-10-07 18:33:06 +02:00
|
|
|
import * as SPEECH_URLS from 'constants/speech_urls';
|
2019-12-11 15:45:18 +01:00
|
|
|
import * as DAEMON_SETTINGS from 'constants/daemon_settings';
|
2019-12-12 20:51:07 +01:00
|
|
|
import * as SHARED_PREFERENCES from 'constants/shared_preferences';
|
2019-07-02 22:33:57 +02:00
|
|
|
import { DEFAULT_KNOWN_TAGS, DEFAULT_FOLLOWED_TAGS, MATURE_TAGS } from 'constants/tags';
|
2019-10-31 12:46:42 +01:00
|
|
|
import Lbry, { apiCall } from 'lbry';
|
2020-03-10 03:10:30 +01:00
|
|
|
import LbryFirst from 'lbry-first';
|
2018-01-11 13:12:37 +01:00
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
// constants
|
2019-02-18 17:24:18 +01:00
|
|
|
export {
|
|
|
|
ACTIONS,
|
2019-07-01 21:49:51 +02:00
|
|
|
CLAIM_VALUES,
|
|
|
|
LICENSES,
|
2019-02-18 17:24:18 +01:00
|
|
|
THUMBNAIL_STATUSES,
|
|
|
|
SETTINGS,
|
2019-12-11 15:45:18 +01:00
|
|
|
DAEMON_SETTINGS,
|
2019-02-18 17:24:18 +01:00
|
|
|
TRANSACTIONS,
|
2019-09-25 18:30:26 +02:00
|
|
|
TX_LIST,
|
2020-04-10 14:16:27 +02:00
|
|
|
TXO_LIST,
|
2020-04-25 22:31:53 +02:00
|
|
|
ABANDON_STATES,
|
2019-02-18 17:24:18 +01:00
|
|
|
SORT_OPTIONS,
|
|
|
|
PAGES,
|
2019-07-02 22:33:57 +02:00
|
|
|
DEFAULT_KNOWN_TAGS,
|
|
|
|
DEFAULT_FOLLOWED_TAGS,
|
|
|
|
MATURE_TAGS,
|
2019-10-07 18:33:06 +02:00
|
|
|
SPEECH_URLS,
|
2019-12-12 20:51:07 +01:00
|
|
|
SHARED_PREFERENCES,
|
2019-02-18 17:24:18 +01:00
|
|
|
};
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
// common
|
2019-10-31 12:46:42 +01:00
|
|
|
export { Lbry, apiCall };
|
2020-03-10 03:10:30 +01:00
|
|
|
export { LbryFirst };
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
regexInvalidURI,
|
|
|
|
regexAddress,
|
|
|
|
parseURI,
|
|
|
|
buildURI,
|
|
|
|
normalizeURI,
|
|
|
|
isURIValid,
|
|
|
|
isURIClaimable,
|
2018-04-24 20:14:47 +02:00
|
|
|
isNameValid,
|
2018-05-21 19:20:22 +02:00
|
|
|
convertToShareLink,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'lbryURI';
|
|
|
|
|
2019-10-15 05:35:38 +02:00
|
|
|
// middlware
|
|
|
|
export { buildSharedStateMiddleware } from 'redux/middleware/shared-state';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
// actions
|
2018-11-12 19:01:14 +01:00
|
|
|
export { doToast, doDismissToast, doError, doDismissError } from 'redux/actions/notifications';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
export {
|
2018-05-25 13:34:12 +02:00
|
|
|
doFetchClaimsByChannel,
|
2018-04-05 04:57:29 +02:00
|
|
|
doFetchClaimListMine,
|
|
|
|
doAbandonClaim,
|
2020-04-10 14:16:27 +02:00
|
|
|
doAbandonTxo,
|
2018-04-05 04:57:29 +02:00
|
|
|
doResolveUris,
|
|
|
|
doResolveUri,
|
2019-04-23 19:22:14 +02:00
|
|
|
doFetchChannelListMine,
|
|
|
|
doCreateChannel,
|
2019-07-01 03:16:44 +02:00
|
|
|
doUpdateChannel,
|
2019-06-11 20:11:18 +02:00
|
|
|
doClaimSearch,
|
2019-09-12 21:06:49 +02:00
|
|
|
doImportChannel,
|
2020-02-10 16:49:45 +01:00
|
|
|
doRepost,
|
|
|
|
doClearRepostError,
|
2020-07-03 00:03:55 +02:00
|
|
|
doClearChannelErrors,
|
2020-04-25 22:31:53 +02:00
|
|
|
doCheckPublishNameAvailability,
|
2020-05-08 22:47:33 +02:00
|
|
|
doPurchaseList,
|
2020-06-17 03:56:51 +02:00
|
|
|
doCheckPendingClaims,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/actions/claims';
|
|
|
|
|
2020-05-19 04:13:18 +02:00
|
|
|
export { doClearPurchasedUriSuccess, doPurchaseUri, doFileGet } from 'redux/actions/file';
|
2019-05-21 21:18:07 +02:00
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
doFetchFileInfo,
|
|
|
|
doFileList,
|
2020-04-25 22:31:53 +02:00
|
|
|
doFetchFileInfos,
|
2018-10-23 05:31:57 +02:00
|
|
|
doSetFileListSort,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/actions/file_info';
|
|
|
|
|
2019-07-01 21:49:51 +02:00
|
|
|
export {
|
|
|
|
doResetThumbnailStatus,
|
|
|
|
doClearPublish,
|
|
|
|
doUpdatePublishForm,
|
|
|
|
doUploadThumbnail,
|
|
|
|
doPrepareEdit,
|
|
|
|
doPublish,
|
2020-05-07 13:41:56 +02:00
|
|
|
doCheckReflectingFiles,
|
2019-07-01 21:49:51 +02:00
|
|
|
} from 'redux/actions/publish';
|
|
|
|
|
2019-03-20 14:54:36 +01:00
|
|
|
export { savePosition } from 'redux/actions/content';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
doUpdateBalance,
|
|
|
|
doBalanceSubscribe,
|
|
|
|
doFetchTransactions,
|
2020-04-10 14:16:27 +02:00
|
|
|
doFetchTxoPage,
|
|
|
|
doUpdateTxoPageParams,
|
2018-04-05 04:57:29 +02:00
|
|
|
doGetNewAddress,
|
|
|
|
doCheckAddressIsMine,
|
|
|
|
doSendDraftTransaction,
|
|
|
|
doSetDraftTransactionAmount,
|
|
|
|
doSetDraftTransactionAddress,
|
2018-10-25 18:57:55 +02:00
|
|
|
doSendTip,
|
2018-07-18 04:55:40 +02:00
|
|
|
doWalletEncrypt,
|
|
|
|
doWalletDecrypt,
|
|
|
|
doWalletUnlock,
|
|
|
|
doWalletStatus,
|
2019-12-11 20:27:52 +01:00
|
|
|
doWalletReconnect,
|
2018-10-17 20:22:17 +02:00
|
|
|
doSetTransactionListFilter,
|
2018-11-07 16:55:44 +01:00
|
|
|
doUpdateBlockHeight,
|
2019-10-30 08:55:15 +01:00
|
|
|
doClearSupport,
|
2020-03-25 03:46:35 +01:00
|
|
|
doSupportAbandonForClaim,
|
2020-12-30 23:25:57 +01:00
|
|
|
doFetchUtxoCounts,
|
|
|
|
doUtxoConsolidate,
|
2021-01-27 16:01:55 +01:00
|
|
|
doTipClaimMass,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/actions/wallet';
|
|
|
|
|
2019-10-15 05:35:38 +02:00
|
|
|
export { doPopulateSharedUserState, doPreferenceGet, doPreferenceSet } from 'redux/actions/sync';
|
2019-09-10 20:14:40 +02:00
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
// utils
|
2019-07-17 22:50:58 +02:00
|
|
|
export { batchActions } from 'util/batch-actions';
|
|
|
|
export { parseQueryParams, toQueryString } from 'util/query-params';
|
|
|
|
export { formatCredits, formatFullPrice, creditsToString } from 'util/format-credits';
|
2019-07-30 17:48:45 +02:00
|
|
|
export { isClaimNsfw, createNormalizedClaimSearchKey } from 'util/claim';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
// reducers
|
|
|
|
export { claimsReducer } from 'redux/reducers/claims';
|
2019-07-01 21:49:51 +02:00
|
|
|
export { contentReducer } from 'redux/reducers/content';
|
2018-04-05 04:57:29 +02:00
|
|
|
export { fileInfoReducer } from 'redux/reducers/file_info';
|
|
|
|
export { notificationsReducer } from 'redux/reducers/notifications';
|
2019-07-01 21:49:51 +02:00
|
|
|
export { publishReducer } from 'redux/reducers/publish';
|
|
|
|
export { walletReducer } from 'redux/reducers/wallet';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
// selectors
|
2019-03-20 14:54:36 +01:00
|
|
|
export { makeSelectContentPositionForUri } from 'redux/selectors/content';
|
|
|
|
|
2018-11-12 19:01:14 +01:00
|
|
|
export { selectToast, selectError } from 'redux/selectors/notifications';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
export {
|
|
|
|
makeSelectClaimForUri,
|
|
|
|
makeSelectClaimIsMine,
|
|
|
|
makeSelectFetchingChannelClaims,
|
2018-05-25 13:34:12 +02:00
|
|
|
makeSelectClaimsInChannelForPage,
|
2019-11-22 02:36:06 +01:00
|
|
|
makeSelectTotalPagesInChannelSearch,
|
|
|
|
makeSelectTotalClaimsInChannelSearch,
|
2018-04-05 04:57:29 +02:00
|
|
|
makeSelectMetadataForUri,
|
2019-05-06 19:57:07 +02:00
|
|
|
makeSelectMetadataItemForUri,
|
|
|
|
makeSelectThumbnailForUri,
|
|
|
|
makeSelectCoverForUri,
|
2018-04-05 04:57:29 +02:00
|
|
|
makeSelectTitleForUri,
|
2019-05-06 04:00:45 +02:00
|
|
|
makeSelectDateForUri,
|
2019-07-01 03:16:44 +02:00
|
|
|
makeSelectAmountForUri,
|
2020-12-11 05:03:32 +01:00
|
|
|
makeSelectEffectiveAmountForUri,
|
2019-06-10 04:45:47 +02:00
|
|
|
makeSelectTagsForUri,
|
2020-10-27 20:42:53 +01:00
|
|
|
makeSelectTagInClaimOrChannelForUri,
|
2021-03-09 07:23:25 +01:00
|
|
|
makeSelectTotalStakedAmountForChannelUri,
|
|
|
|
makeSelectStakedLevelForChannelUri,
|
2018-04-05 04:57:29 +02:00
|
|
|
makeSelectContentTypeForUri,
|
|
|
|
makeSelectIsUriResolving,
|
2020-12-14 01:17:16 +01:00
|
|
|
makeSelectPendingClaimForUri,
|
2018-04-05 04:57:29 +02:00
|
|
|
makeSelectTotalItemsForChannel,
|
|
|
|
makeSelectTotalPagesForChannel,
|
2018-07-11 01:15:39 +02:00
|
|
|
makeSelectNsfwCountFromUris,
|
|
|
|
makeSelectNsfwCountForChannel,
|
2019-11-25 21:11:32 +01:00
|
|
|
makeSelectOmittedCountForChannel,
|
2019-04-23 21:02:32 +02:00
|
|
|
makeSelectClaimIsNsfw,
|
2018-10-18 19:46:31 +02:00
|
|
|
makeSelectChannelForClaimUri,
|
2020-10-14 20:07:00 +02:00
|
|
|
makeSelectChannelPermUrlForClaimUri,
|
|
|
|
makeSelectMyChannelPermUrlForName,
|
2018-10-25 18:57:55 +02:00
|
|
|
makeSelectClaimIsPending,
|
2020-05-07 13:41:56 +02:00
|
|
|
makeSelectReflectingClaimForUri,
|
2019-02-19 02:30:10 +01:00
|
|
|
makeSelectClaimsInChannelForCurrentPageState,
|
2019-07-08 20:28:14 +02:00
|
|
|
makeSelectShortUrlForUri,
|
2019-08-20 22:00:26 +02:00
|
|
|
makeSelectCanonicalUrlForUri,
|
2019-09-04 17:57:48 +02:00
|
|
|
makeSelectPermanentUrlForUri,
|
2019-08-11 18:30:29 +02:00
|
|
|
makeSelectSupportsForUri,
|
2020-05-08 22:47:33 +02:00
|
|
|
makeSelectMyPurchasesForPage,
|
|
|
|
makeSelectClaimWasPurchased,
|
2020-07-24 16:40:29 +02:00
|
|
|
makeSelectAbandoningClaimById,
|
|
|
|
makeSelectIsAbandoningClaimForUri,
|
2020-12-04 01:25:41 +01:00
|
|
|
selectPendingIds,
|
2020-05-07 13:41:56 +02:00
|
|
|
selectReflectingById,
|
2021-03-05 19:32:27 +01:00
|
|
|
makeSelectClaimForClaimId,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectClaimsById,
|
|
|
|
selectClaimsByUri,
|
|
|
|
selectAllClaimsByChannel,
|
|
|
|
selectMyClaimsRaw,
|
|
|
|
selectAbandoningIds,
|
|
|
|
selectMyActiveClaims,
|
|
|
|
selectAllFetchingChannelClaims,
|
|
|
|
selectIsFetchingClaimListMine,
|
|
|
|
selectMyClaims,
|
|
|
|
selectMyClaimsWithoutChannels,
|
2020-06-17 03:56:51 +02:00
|
|
|
selectMyChannelUrls,
|
2019-06-11 20:36:01 +02:00
|
|
|
selectMyClaimUrisWithoutChannels,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectAllMyClaimsByOutpoint,
|
|
|
|
selectMyClaimsOutpoints,
|
|
|
|
selectFetchingMyChannels,
|
|
|
|
selectMyChannelClaims,
|
|
|
|
selectResolvingUris,
|
|
|
|
selectPlayingUri,
|
|
|
|
selectChannelClaimCounts,
|
2019-02-19 02:30:10 +01:00
|
|
|
selectCurrentChannelPage,
|
2019-06-11 20:11:18 +02:00
|
|
|
selectFetchingClaimSearch,
|
2019-07-31 21:14:51 +02:00
|
|
|
selectFetchingClaimSearchByQuery,
|
2019-07-30 17:48:45 +02:00
|
|
|
selectClaimSearchByQuery,
|
2019-08-13 17:27:32 +02:00
|
|
|
selectClaimSearchByQueryLastPageReached,
|
2019-09-15 13:00:14 +02:00
|
|
|
selectUpdatingChannel,
|
|
|
|
selectUpdateChannelError,
|
2019-08-27 06:42:52 +02:00
|
|
|
selectCreatingChannel,
|
2019-09-13 21:52:52 +02:00
|
|
|
selectCreateChannelError,
|
2019-09-12 21:06:49 +02:00
|
|
|
selectChannelImportPending,
|
2019-09-25 23:37:21 +02:00
|
|
|
makeSelectMyStreamUrlsForPage,
|
|
|
|
selectMyStreamUrlsCount,
|
2020-02-10 16:49:45 +01:00
|
|
|
selectRepostError,
|
|
|
|
selectRepostLoading,
|
2020-03-25 03:46:35 +01:00
|
|
|
selectClaimIdsByUri,
|
2020-04-25 22:31:53 +02:00
|
|
|
selectMyClaimsPage,
|
|
|
|
selectMyClaimsPageNumber,
|
|
|
|
selectMyClaimsPageItemCount,
|
|
|
|
selectFetchingMyClaimsPageError,
|
2020-05-08 22:47:33 +02:00
|
|
|
selectMyPurchases,
|
|
|
|
selectIsFetchingMyPurchases,
|
|
|
|
selectFetchingMyPurchasesError,
|
|
|
|
selectMyPurchasesCount,
|
2020-05-18 22:40:33 +02:00
|
|
|
selectPurchaseUriSuccess,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/selectors/claims';
|
|
|
|
|
|
|
|
export {
|
|
|
|
makeSelectFileInfoForUri,
|
|
|
|
makeSelectDownloadingForUri,
|
|
|
|
makeSelectLoadingForUri,
|
|
|
|
selectFileInfosByOutpoint,
|
|
|
|
selectIsFetchingFileList,
|
|
|
|
selectIsFetchingFileListDownloadedOrPublished,
|
|
|
|
selectDownloadingByOutpoint,
|
|
|
|
selectUrisLoading,
|
|
|
|
selectFileInfosDownloaded,
|
|
|
|
selectDownloadingFileInfos,
|
|
|
|
selectTotalDownloadProgress,
|
2018-10-23 05:31:57 +02:00
|
|
|
selectFileListDownloadedSort,
|
|
|
|
selectFileListPublishedSort,
|
2019-06-10 04:45:47 +02:00
|
|
|
selectDownloadedUris,
|
2019-08-02 08:21:28 +02:00
|
|
|
makeSelectMediaTypeForUri,
|
|
|
|
makeSelectUriIsStreamable,
|
|
|
|
makeSelectDownloadPathForUri,
|
|
|
|
makeSelectFileNameForUri,
|
2019-08-14 18:52:24 +02:00
|
|
|
makeSelectFilePartlyDownloaded,
|
2019-10-03 23:14:35 +02:00
|
|
|
makeSelectSearchDownloadUrlsForPage,
|
|
|
|
makeSelectSearchDownloadUrlsCount,
|
2019-09-25 23:37:21 +02:00
|
|
|
selectDownloadUrlsCount,
|
2020-05-18 22:40:33 +02:00
|
|
|
makeSelectStreamingUrlForUri,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/selectors/file_info';
|
|
|
|
|
2019-07-01 21:49:51 +02:00
|
|
|
export {
|
2019-07-05 04:20:56 +02:00
|
|
|
makeSelectPublishFormValue,
|
2019-07-01 21:49:51 +02:00
|
|
|
selectPublishFormValues,
|
|
|
|
selectIsStillEditing,
|
|
|
|
selectMyClaimForUri,
|
|
|
|
selectIsResolvingPublishUris,
|
|
|
|
selectTakeOverAmount,
|
|
|
|
} from 'redux/selectors/publish';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
selectBalance,
|
2019-04-18 09:56:16 +02:00
|
|
|
selectTotalBalance,
|
2019-09-24 00:56:53 +02:00
|
|
|
selectReservedBalance,
|
|
|
|
selectClaimsBalance,
|
|
|
|
selectSupportsBalance,
|
|
|
|
selectTipsBalance,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectTransactionsById,
|
2019-05-14 06:50:21 +02:00
|
|
|
selectSupportsByOutpoint,
|
2019-08-11 18:30:29 +02:00
|
|
|
selectTotalSupports,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectTransactionItems,
|
|
|
|
selectRecentTransactions,
|
|
|
|
selectHasTransactions,
|
|
|
|
selectIsFetchingTransactions,
|
|
|
|
selectIsSendingSupport,
|
|
|
|
selectReceiveAddress,
|
|
|
|
selectGettingNewAddress,
|
|
|
|
selectDraftTransaction,
|
|
|
|
selectDraftTransactionAmount,
|
|
|
|
selectDraftTransactionAddress,
|
|
|
|
selectDraftTransactionError,
|
|
|
|
selectBlocks,
|
2018-07-18 04:55:40 +02:00
|
|
|
selectWalletIsEncrypted,
|
|
|
|
selectWalletState,
|
|
|
|
selectWalletEncryptPending,
|
|
|
|
selectWalletEncryptSucceeded,
|
2018-07-18 20:42:34 +02:00
|
|
|
selectWalletEncryptResult,
|
2018-07-18 04:55:40 +02:00
|
|
|
selectWalletDecryptPending,
|
|
|
|
selectWalletDecryptSucceeded,
|
2018-07-18 20:42:34 +02:00
|
|
|
selectWalletDecryptResult,
|
2018-07-18 04:55:40 +02:00
|
|
|
selectWalletUnlockPending,
|
|
|
|
selectWalletUnlockSucceeded,
|
2018-07-18 20:42:34 +02:00
|
|
|
selectWalletUnlockResult,
|
2018-10-17 20:22:17 +02:00
|
|
|
selectTransactionListFilter,
|
2019-09-23 04:25:12 +02:00
|
|
|
selectFilteredTransactions,
|
2020-04-10 14:16:27 +02:00
|
|
|
selectTxoPageParams,
|
|
|
|
selectTxoPage,
|
|
|
|
selectTxoPageNumber,
|
|
|
|
selectTxoItemCount,
|
|
|
|
selectIsFetchingTxos,
|
|
|
|
selectFetchingTxosError,
|
2019-11-01 18:17:55 +01:00
|
|
|
makeSelectLatestTransactions,
|
2019-09-23 04:25:12 +02:00
|
|
|
makeSelectFilteredTransactionsForPage,
|
|
|
|
selectFilteredTransactionCount,
|
2019-12-18 17:47:18 +01:00
|
|
|
selectIsWalletReconnecting,
|
2020-03-25 03:46:35 +01:00
|
|
|
selectPendingSupportTransactions,
|
2020-04-01 20:26:38 +02:00
|
|
|
selectAbandonClaimSupportError,
|
2020-03-25 03:46:35 +01:00
|
|
|
makeSelectPendingAmountByUri,
|
2020-12-30 23:25:57 +01:00
|
|
|
selectIsFetchingUtxoCounts,
|
|
|
|
selectIsConsolidatingUtxos,
|
2021-01-27 16:01:55 +01:00
|
|
|
selectIsMassClaimingTips,
|
2020-12-30 23:25:57 +01:00
|
|
|
selectUtxoCounts,
|
|
|
|
selectPendingOtherTransactions,
|
2021-02-03 23:52:01 +01:00
|
|
|
selectPendingConsolidateTxid,
|
|
|
|
selectPendingMassClaimTxid,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/selectors/wallet';
|