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

decentraland / marketplace / 8194016372

07 Mar 2024 07:54PM UTC coverage: 66.152% (-0.09%) from 66.242%
8194016372

Pull #2167

github

LautaroPetaccio
fix: Add toasts
Pull Request #2167: feat: Use new cross chain transaction payload action

2507 of 4904 branches covered (51.12%)

Branch coverage included in aggregate %.

8 of 13 new or added lines in 6 files covered. (61.54%)

6 existing lines in 5 files now uncovered.

7601 of 10376 relevant lines covered (73.26%)

70.55 hits per line

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

96.36
/webapp/src/modules/sagas.ts
1
import { all } from 'redux-saga/effects'
28✔
2
import { AuthIdentity } from 'decentraland-crypto-fetch'
3
import { ApplicationName } from 'decentraland-dapps/dist/modules/features/types'
28✔
4
import { authorizationSaga } from 'decentraland-dapps/dist/modules/authorization/sagas'
28✔
5
import { FiatGateway } from 'decentraland-dapps/dist/modules/gateway/types'
28✔
6
import { createAnalyticsSaga } from 'decentraland-dapps/dist/modules/analytics/sagas'
28✔
7
import { createProfileSaga } from 'decentraland-dapps/dist/modules/profile/sagas'
28✔
8
import { transactionSaga } from 'decentraland-dapps/dist/modules/transaction/sagas'
28✔
9
import { createIdentitySaga } from 'decentraland-dapps/dist/modules/identity/sagas'
28✔
10
import { featuresSaga } from 'decentraland-dapps/dist/modules/features/sagas'
28✔
11
import { createGatewaySaga } from 'decentraland-dapps/dist/modules/gateway/sagas'
28✔
12
import { locationSaga } from 'decentraland-dapps/dist/modules/location/sagas'
28✔
13
import { createLambdasClient } from 'dcl-catalyst-client/dist/client/LambdasClient'
28✔
14
import { createContentClient } from 'dcl-catalyst-client/dist/client/ContentClient'
28✔
15
import { NetworkGatewayType } from 'decentraland-ui/dist/components/BuyManaWithFiatModal/Network'
28✔
16
import { createFetchComponent } from '@well-known-components/fetch-component'
28✔
17

18
import { config } from '../config'
28✔
19
import { peerUrl } from '../lib/environment'
28✔
20
import { analyticsSagas as marketplaceAnalyticsSagas } from './analytics/sagas'
28✔
21
import { bidSaga } from './bid/sagas'
28✔
22
import { nftSaga } from './nft/sagas'
28✔
23
import { orderSaga } from './order/sagas'
28✔
24
import { proximitySaga } from './proximity/sagas'
28✔
25
import { routingSaga } from './routing/sagas'
28✔
26
import { tileSaga } from './tile/sagas'
28✔
27
import { toastSaga } from './toast/sagas'
28✔
28
import { translationSaga } from './translation/sagas'
28✔
29
import { uiSaga } from './ui/sagas'
28✔
30
import { walletSaga } from './wallet/sagas'
28✔
31
import { itemSaga } from './item/sagas'
28✔
32
import { collectionSaga } from './collection/sagas'
28✔
33
import { saleSaga } from './sale/sagas'
28✔
34
import { accountSaga } from './account/sagas'
28✔
35
import { storeSaga } from './store/sagas'
28✔
36
import { identitySaga } from './identity/sagas'
28✔
37
import { rentalSaga } from './rental/sagas'
28✔
38
import { modalSaga } from './modal/sagas'
28✔
39
import { eventSaga } from './event/sagas'
28✔
40
import { contractSaga } from './contract/sagas'
28✔
41
import { transakSaga } from './transak/sagas'
28✔
42
import { assetSaga } from './asset/sagas'
28✔
43
import { favoritesSaga } from './favorites/sagas'
28✔
44
import { loginSaga } from './login/sagas'
28✔
45
import { ensSaga } from './ens/sagas'
28✔
46

47
const analyticsSaga = createAnalyticsSaga()
28✔
48
const profileSaga = (getIdentity: () => AuthIdentity | undefined) =>
28✔
49
  createProfileSaga({ getIdentity, peerUrl })
237✔
50
const lambdasClient = createLambdasClient({
28✔
51
  url: `${peerUrl}/lambdas`,
52
  fetcher: createFetchComponent()
53
})
54
const contentClient = createContentClient({
28✔
55
  url: `${peerUrl}/content`,
56
  fetcher: createFetchComponent()
57
})
58

59
const newIdentitySaga = createIdentitySaga({
28✔
60
  authURL: config.get('AUTH_URL')
61
})
62

63
const gatewaySaga = createGatewaySaga({
28✔
64
  [FiatGateway.WERT]: {
65
    marketplaceServerURL: config.get('MARKETPLACE_SERVER_URL'),
66
    url: config.get('WERT_API_URL')
67
  },
68
  [NetworkGatewayType.MOON_PAY]: {
69
    apiBaseUrl: config.get('MOON_PAY_API_URL'),
70
    apiKey: config.get('MOON_PAY_API_KEY'),
71
    pollingDelay: +config.get('MOON_PAY_POLLING_DELAY'),
72
    widgetBaseUrl: config.get('MOON_PAY_WIDGET_URL')
73
  },
74
  [NetworkGatewayType.TRANSAK]: {
75
    apiBaseUrl: config.get('TRANSAK_API_URL'),
76
    key: config.get('TRANSAK_KEY'),
77
    env: config.get('TRANSAK_ENV'),
78
    pollingDelay: +config.get('TRANSAK_POLLING_DELAY'),
79
    pusher: {
80
      appKey: config.get('TRANSAK_PUSHER_APP_KEY'),
81
      appCluster: config.get('TRANSAK_PUSHER_APP_CLUSTER')
82
    }
83
  }
84
})
85

86
const getCrossChainProvider = async () => {
28✔
NEW
87
  const { AxelarProvider } = await import(
×
88
    'decentraland-transactions/crossChain'
89
  )
NEW
90
  return AxelarProvider
×
91
}
92

93
export function* rootSaga(getIdentity: () => AuthIdentity | undefined) {
237✔
94
  yield all([
237✔
95
    analyticsSaga(),
96
    assetSaga(),
97
    authorizationSaga(),
98
    bidSaga(),
99
    itemSaga(getIdentity),
100
    nftSaga(getIdentity),
101
    orderSaga(),
102
    profileSaga(getIdentity)(),
103
    proximitySaga(),
104
    routingSaga(),
105
    tileSaga(),
106
    toastSaga(),
107
    transactionSaga({
108
      crossChainProviderUrl: config.get('SQUID_API_URL'),
109
      crossChainProviderRetryDelay: Number(config.get('SQUID_RETRY_DELAY')),
110
      getCrossChainProvider
111
    }),
112
    translationSaga(),
113
    uiSaga(),
114
    walletSaga(),
115
    collectionSaga(),
116
    saleSaga(),
117
    accountSaga(lambdasClient),
118
    collectionSaga(),
119
    storeSaga(contentClient),
120
    identitySaga(),
121
    newIdentitySaga(),
122
    marketplaceAnalyticsSagas(),
123
    featuresSaga({
124
      polling: {
125
        apps: [ApplicationName.MARKETPLACE, ApplicationName.DAPPS],
126
        delay: 60000 /** 60 seconds */
127
      }
128
    }),
129
    rentalSaga(),
130
    modalSaga(),
131
    eventSaga(),
132
    contractSaga(),
133
    gatewaySaga(),
134
    locationSaga(),
135
    transakSaga(),
136
    favoritesSaga(getIdentity),
137
    loginSaga(),
138
    ensSaga()
139
  ])
140
}
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