-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dynamic custodial): remove custodial only assets from redux core
- Loading branch information
plondon
committed
Jul 27, 2021
1 parent
e5a81a4
commit 4fdbd93
Showing
91 changed files
with
198 additions
and
1,508 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
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
5 changes: 0 additions & 5 deletions
5
packages/blockchain-wallet-v4-frontend/src/data/components/algoTransactions/actionTypes.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/blockchain-wallet-v4-frontend/src/data/components/algoTransactions/actions.ts
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
packages/blockchain-wallet-v4-frontend/src/data/components/algoTransactions/sagaRegister.ts
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/blockchain-wallet-v4-frontend/src/data/components/algoTransactions/sagas.ts
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/blockchain-wallet-v4-frontend/src/data/components/cloutTransactions/actionTypes.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/blockchain-wallet-v4-frontend/src/data/components/cloutTransactions/actions.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
packages/blockchain-wallet-v4-frontend/src/data/components/cloutTransactions/sagaRegister.ts
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/blockchain-wallet-v4-frontend/src/data/components/cloutTransactions/sagas.ts
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/blockchain-wallet-v4-frontend/src/data/components/coinTransactions/actionTypes.ts
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const TRANSACTIONS_INITIALIZED = '@EVENT.COIN_TX.TRANSACTIONS_INITIALIZED' | ||
|
||
export const COIN_TRANSACTIONS_LOAD_MORE = '@EVENT.COIN_TX.TRANSACTIONS_LOAD_MORE' |
14 changes: 14 additions & 0 deletions
14
packages/blockchain-wallet-v4-frontend/src/data/components/coinTransactions/actions.ts
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import * as AT from './actionTypes' | ||
import { CoinTransactionsActionTypes } from './types' | ||
|
||
export const initialized = (coin: string): CoinTransactionsActionTypes => ({ | ||
payload: { coin }, | ||
type: AT.TRANSACTIONS_INITIALIZED | ||
}) | ||
|
||
export const loadMore = (coin: string): CoinTransactionsActionTypes => ({ | ||
payload: { | ||
coin | ||
}, | ||
type: AT.COIN_TRANSACTIONS_LOAD_MORE | ||
}) |
13 changes: 13 additions & 0 deletions
13
packages/blockchain-wallet-v4-frontend/src/data/components/coinTransactions/sagaRegister.ts
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { takeEvery, takeLatest } from 'redux-saga/effects' | ||
|
||
import * as AT from './actionTypes' | ||
import sagas from './sagas' | ||
|
||
export default () => { | ||
const coinTransactionsSagas = sagas() | ||
|
||
return function* coinTransactionsSaga() { | ||
yield takeEvery(AT.TRANSACTIONS_INITIALIZED, coinTransactionsSagas.initialized) | ||
yield takeLatest(AT.COIN_TRANSACTIONS_LOAD_MORE, coinTransactionsSagas.loadMore) | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/blockchain-wallet-v4-frontend/src/data/components/coinTransactions/sagas.ts
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { put } from 'redux-saga/effects' | ||
|
||
import { actions } from 'data' | ||
|
||
import * as A from './actions' | ||
|
||
export const logLocation = 'components/coinTransactions/sagas' | ||
|
||
export default () => { | ||
const initialized = function* (action: ReturnType<typeof A.initialized>) { | ||
try { | ||
yield put(actions.core.data.coins.fetchTransactions(action.payload.coin, true)) | ||
} catch (e) { | ||
yield put(actions.logs.logErrorMessage(logLocation, 'initialized', e)) | ||
} | ||
} | ||
|
||
const loadMore = function* (action: ReturnType<typeof A.loadMore>) { | ||
try { | ||
yield put(actions.core.data.coins.fetchTransactions(action.payload.coin)) | ||
} catch (e) { | ||
yield put(actions.logs.logErrorMessage(logLocation, 'loadMore', e)) | ||
} | ||
} | ||
return { | ||
initialized, | ||
loadMore | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/blockchain-wallet-v4-frontend/src/data/components/coinTransactions/types.ts
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as AT from './actionTypes' | ||
|
||
// actions | ||
interface CoinTransactionsInitializedActionType { | ||
payload: { | ||
coin: string | ||
} | ||
type: typeof AT.TRANSACTIONS_INITIALIZED | ||
} | ||
interface CoinTransactionsLoadMoreActionType { | ||
payload: { | ||
coin: string | ||
} | ||
type: typeof AT.COIN_TRANSACTIONS_LOAD_MORE | ||
} | ||
|
||
export type CoinTransactionsActionTypes = | ||
| CoinTransactionsInitializedActionType | ||
| CoinTransactionsLoadMoreActionType |
3 changes: 0 additions & 3 deletions
3
packages/blockchain-wallet-v4-frontend/src/data/components/dogeTransactions/actionTypes.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/blockchain-wallet-v4-frontend/src/data/components/dogeTransactions/actions.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
packages/blockchain-wallet-v4-frontend/src/data/components/dogeTransactions/sagaRegister.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.