Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rates): removed usage of socket for getting rates #6384

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/blockchain-wallet-v4-frontend/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
overwrite: true
schema: "https://api.dev.blockchain.info/nft-market-api/graphql/"
documents: "src/**/*.graphql"
schema: 'https://api.dev.blockchain.info/nft-market-api/graphql/'
documents: 'src/**/*.graphql'
generates:
src/generated/graphql.types.ts:
plugins:
- "typescript"
- "typescript-operations"
- "urql-introspection"
- "typescript-urql"
- 'typescript'
- 'typescript-operations'
- 'urql-introspection'
- 'typescript-urql'
./graphql.schema.json:
plugins:
- "introspection"
- 'introspection'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fork } from 'redux-saga/effects'

import webSocket from './webSocket/sagaRegister'

export default ({ api, coinsSocket, ratesSocket }) =>
export default ({ api, coinsSocket }) =>
function* middlewareSaga() {
yield fork(webSocket({ api, coinsSocket, ratesSocket }))
yield fork(webSocket({ api, coinsSocket }))
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import webSocket from './webSocket/sagas'

export default ({ api, coinsSocket, ratesSocket }) => ({
export default ({ api, coinsSocket }) => ({
webSocket: webSocket({
api,
coinsSocket,
ratesSocket
coinsSocket
})
})
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as coins from './coins/actionTypes'
import * as rates from './rates/actionTypes'
import * as xlm from './xlm/actionTypes'

export { coins, rates, xlm }
export { coins, xlm }
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as coins from './coins/actions'
import * as rates from './rates/actions'
import * as xlm from './xlm/actions'

export { coins, rates, xlm }
export { coins, xlm }

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { fork } from 'redux-saga/effects'

import coins from './coins/sagaRegister'
import rates from './rates/sagaRegister'
import xlm from './xlm/sagaRegister'

export default ({ api, coinsSocket, ratesSocket }) =>
export default ({ api, coinsSocket }) =>
function* webSocketSaga() {
yield fork(xlm())
yield fork(rates({ api, ratesSocket }))
yield fork(coins({ api, coinsSocket }))
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import coins from './coins/sagas'
import rates from './rates/sagas'
import xlm from './xlm/sagas'

export default ({ api, coinsSocket, ratesSocket }) => ({
rates: rates({ api, ratesSocket }),
export default ({ api, coinsSocket }) => ({
sds: coins({ api, coinsSocket }),
xlm: xlm()
})
3 changes: 1 addition & 2 deletions packages/blockchain-wallet-v4-frontend/src/data/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ import * as components from './components/model'
import * as form from './form/model'
import * as logs from './logs/model'
import * as profile from './modules/profile/model'
import * as rates from './modules/rates/model'

export { coins, components, form, logs, profile, rates }
export { coins, components, form, logs, profile }
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as addressesBch from './addressesBch/actionTypes'
import * as profile from './profile/actionTypes'
import * as rates from './rates/actionTypes'
import * as securityCenter from './securityCenter/actionTypes'
import * as settings from './settings/actionTypes'

export { addressesBch, profile, rates, securityCenter, settings }
export { addressesBch, profile, securityCenter, settings }
Loading
Loading