-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ZECTEST as test coin, setup socket initialization when a dlight/p…
…rivate enabled coin is added, and teardown when it is removed
- Loading branch information
1 parent
588b3d2
commit 2a966b5
Showing
38 changed files
with
844 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Android", | ||
"program": "${workspaceRoot}/.vscode/launchReactNative.js", | ||
"type": "reactnative", | ||
"request": "launch", | ||
"platform": "android", | ||
"sourceMaps": true, | ||
"cwd": "${workspaceFolder}", | ||
}, | ||
{ | ||
"name": "Debug iOS", | ||
"program": "${workspaceRoot}/.vscode/launchReactNative.js", | ||
"type": "reactnative", | ||
"request": "launch", | ||
"platform": "ios", | ||
"target": "iPhone 5s", | ||
"cwd": "${workspaceFolder}", | ||
"sourceMaps": true, | ||
} | ||
] | ||
} |
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 @@ | ||
let AsyncAlerts = [] | ||
let AlertResponse = false | ||
|
||
function mockRnAlertAsync() { | ||
return { | ||
AlertAsync: (title, desc, buttons, options) => { | ||
AsyncAlerts.push({title, desc, buttons, options}) | ||
return new Promise((resolve) => { | ||
resolve(AlertResponse) | ||
}) | ||
}, | ||
getAlerts: () => AsyncAlerts, | ||
setAlertResponse: (response) => { | ||
AlertResponse = response | ||
} | ||
} | ||
} | ||
|
||
module.exports = mockRnAlertAsync |
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
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
const mockAgamaWalletLibElectrums = require('../__mocks__/agama-wallet-lib/agama-wallet-lib-electrums') | ||
const mockVerusLightClient = require('../__mocks__/react-native-verus-light-client/mock') | ||
const mockRnAlertAsync = require('../__mocks__/react-native-alert-async/mock') | ||
const mockRedux = require('../__mocks__/redux/mock') | ||
|
||
jest.mock('agama-wallet-lib/src/electrum-servers', () => mockAgamaWalletLibElectrums()); | ||
jest.mock('react-native-verus-light-client', () => mockVerusLightClient()); | ||
jest.mock('react-native-alert-async', () => mockRnAlertAsync()); | ||
jest.mock('redux', () => mockRedux()); | ||
|
||
global.fetch = require('../__mocks__/react-native-fetch/fetch') |
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
69 changes: 38 additions & 31 deletions
69
src/actions/actions/Coins.js → src/actions/actions/coins/Coins.js
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
Oops, something went wrong.