• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / marketplace / 7106317436

05 Dec 2023 08:40PM UTC coverage: 43.446% (+0.02%) from 43.428%
7106317436

Pull #2069

github

web-flow
Merge cb0a6e4ae into 84c8b4379
Pull Request #2069: feat: add notifications to marketplace

2670 of 7393 branches covered (0.0%)

Branch coverage included in aggregate %.

4681 of 9527 relevant lines covered (49.13%)

24.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.89
/webapp/src/modules/collection/actions.ts
1
import { Collection, CollectionFilters } from '@dcl/schemas'
2
import { action } from 'typesafe-actions'
3

4
// FETCH COLLECTIONS
5

6
export const FETCH_COLLECTIONS_REQUEST = '[Request] Fetch collections'
29✔
7
export const FETCH_COLLECTIONS_SUCCESS = '[Success] Fetch collections'
29✔
8
export const FETCH_COLLECTIONS_FAILURE = '[Failure] Fetch collections'
29✔
9

10
export const fetchCollectionsRequest = (
29✔
11
  filters: CollectionFilters,
12
  shouldFetchItems?: boolean
13
) => action(FETCH_COLLECTIONS_REQUEST, { filters, shouldFetchItems })
7✔
14
export const fetchCollectionsSuccess = (
29✔
15
  collections: Collection[],
16
  count: number
17
) =>
18
  action(FETCH_COLLECTIONS_SUCCESS, {
5✔
19
    collections,
20
    count
21
  })
22
export const fetchCollectionsFailure = (error: string) =>
29✔
23
  action(FETCH_COLLECTIONS_FAILURE, { error })
3✔
24

25
export type FetchCollectionsRequestAction = ReturnType<
26
  typeof fetchCollectionsRequest
27
>
28
export type FetchCollectionsSuccessAction = ReturnType<
29
  typeof fetchCollectionsSuccess
30
>
31
export type FetchCollectionsFailureAction = ReturnType<
32
  typeof fetchCollectionsFailure
33
>
34

35
// FETCH SINGLE COLLECTION
36

37
export const FETCH_SINGLE_COLLECTION_REQUEST =
38
  '[Request] Fetch single collection'
29✔
39
export const FETCH_SINGLE_COLLECTION_SUCCESS =
40
  '[Success] Fetch single collection'
29✔
41
export const FETCH_SINGLE_COLLECTION_FAILURE =
42
  '[Failure] Fetch single collection'
29✔
43

44
export const fetchSingleCollectionRequest = (
29✔
45
  contractAddress: string,
46
  shouldFetchItems?: boolean
47
) =>
48
  action(FETCH_SINGLE_COLLECTION_REQUEST, {
11✔
49
    contractAddress,
50
    shouldFetchItems
51
  })
52
export const fetchSingleCollectionSuccess = (collection: Collection) =>
29✔
53
  action(FETCH_SINGLE_COLLECTION_SUCCESS, {
×
54
    collection
55
  })
56
export const fetchSingleCollectionFailure = (error: string) =>
29✔
57
  action(FETCH_SINGLE_COLLECTION_FAILURE, {
×
58
    error
59
  })
60

61
export type FetchSingleCollectionRequestAction = ReturnType<
62
  typeof fetchSingleCollectionRequest
63
>
64
export type FetchSingleCollectionSuccessAction = ReturnType<
65
  typeof fetchSingleCollectionSuccess
66
>
67
export type FetchSingleCollectionFailureAction = ReturnType<
68
  typeof fetchSingleCollectionFailure
69
>
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc