2016-02-22 22:04:42 +00:00
|
|
|
{
|
2016-05-19 16:32:38 +00:00
|
|
|
"name": "StatusIm",
|
2016-02-22 22:04:42 +00:00
|
|
|
"version": "0.0.1",
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2018-04-06 03:54:52 +00:00
|
|
|
"start": "node node_modules/react-native/local-cli/cli.js start"
|
2016-02-22 22:04:42 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-08-11 02:39:58 +00:00
|
|
|
"@babel/generator": "7.0.0",
|
|
|
|
"@babel/helper-builder-react-jsx": "7.0.0",
|
|
|
|
"@babel/plugin-transform-block-scoping": "7.0.0",
|
|
|
|
"@babel/preset-env": "7.1.0",
|
2018-10-09 09:53:49 +00:00
|
|
|
"@babel/register": "7.0.0",
|
2018-08-23 01:54:29 +00:00
|
|
|
"@tradle/react-native-http": "2.0.1",
|
2017-10-19 04:38:20 +00:00
|
|
|
"assert": "1.4.1",
|
|
|
|
"asyncstorage-down": "4.0.1",
|
2019-01-14 09:42:29 +00:00
|
|
|
"bignumber.js": "git+https://github.com/status-im/bignumber.js.git#v4.0.2-status",
|
2018-01-16 23:52:15 +00:00
|
|
|
"buffer": "3.6.0",
|
2017-10-19 04:38:20 +00:00
|
|
|
"chance": "1.0.12",
|
|
|
|
"create-react-class": "15.6.2",
|
|
|
|
"dns.js": "1.0.1",
|
|
|
|
"emojilib": "2.2.9",
|
2018-09-10 15:07:54 +00:00
|
|
|
"eth-phishing-detect": "1.1.13",
|
2017-10-19 04:38:20 +00:00
|
|
|
"events": "1.1.1",
|
2019-03-04 18:34:20 +00:00
|
|
|
"hi-base32": "0.5.0",
|
2017-10-19 04:38:20 +00:00
|
|
|
"homoglyph-finder": "1.1.1",
|
2019-02-02 17:21:05 +00:00
|
|
|
"i18n-js": "^3.1.0",
|
2019-03-04 12:38:41 +00:00
|
|
|
"identicon.js": "git+https://github.com/status-im/identicon.js.git#v1.2.1-status",
|
2018-09-05 06:39:24 +00:00
|
|
|
"js-sha3": "^0.8.0",
|
2017-10-19 04:38:20 +00:00
|
|
|
"process": "0.11.10",
|
|
|
|
"prop-types": "15.6.0",
|
2018-01-16 23:52:15 +00:00
|
|
|
"punycode": "1.4.1",
|
2017-10-19 04:38:20 +00:00
|
|
|
"querystring-es3": "0.2.1",
|
2019-03-04 12:38:41 +00:00
|
|
|
"react": "16.8.3",
|
2018-09-25 14:41:02 +00:00
|
|
|
"react-dom": "16.4.2",
|
2019-07-02 16:39:44 +00:00
|
|
|
"react-native": "git+https://github.com/status-im/react-native.git#v0.59.10",
|
2018-08-23 01:54:29 +00:00
|
|
|
"react-native-background-timer": "2.1.0-alpha.6",
|
2019-01-18 11:07:55 +00:00
|
|
|
"react-native-camera": "git+https://github.com/status-im/react-native-camera.git#v1.1.5-1-status",
|
2018-12-09 14:58:03 +00:00
|
|
|
"react-native-config": "git+https://github.com/status-im/react-native-config.git#0.11.2-1",
|
2017-10-19 04:38:20 +00:00
|
|
|
"react-native-crypto": "2.1.1",
|
2019-06-04 17:00:19 +00:00
|
|
|
"react-native-dialogs": "1.0.4",
|
2018-01-09 02:36:48 +00:00
|
|
|
"react-native-fetch-polyfill": "1.1.2",
|
2019-07-09 14:11:18 +00:00
|
|
|
"react-native-firebase": "5.1.1",
|
2018-08-23 01:54:29 +00:00
|
|
|
"react-native-fs": "2.11.15",
|
2019-06-12 06:25:18 +00:00
|
|
|
"react-native-gesture-handler": "^1.3.0",
|
2018-11-05 15:34:59 +00:00
|
|
|
"react-native-http-bridge": "0.6.1",
|
2017-10-19 04:38:20 +00:00
|
|
|
"react-native-image-crop-picker": "0.18.1",
|
2019-01-18 11:07:55 +00:00
|
|
|
"react-native-image-resizer": "git+https://github.com/status-im/react-native-image-resizer.git#1.0.0-1-status",
|
2017-10-19 04:38:20 +00:00
|
|
|
"react-native-invertible-scroll-view": "1.1.0",
|
2018-12-09 14:58:03 +00:00
|
|
|
"react-native-keychain": "git+https://github.com/status-im/react-native-keychain.git#v.3.0.0-status",
|
2019-02-02 17:21:05 +00:00
|
|
|
"react-native-languages": "^3.0.2",
|
2019-04-30 05:18:05 +00:00
|
|
|
"react-native-mail": "git+https://github.com/status-im/react-native-mail.git#v3.0.8_status",
|
2019-07-05 12:21:00 +00:00
|
|
|
"react-native-navigation-twopane": "git+https://github.com/status-im/react-native-navigation-twopane.git#v0.0.2-status",
|
2019-01-18 11:07:55 +00:00
|
|
|
"react-native-os": "git+https://github.com/status-im/react-native-os.git#v1.1.0-1-status",
|
2019-03-04 12:38:41 +00:00
|
|
|
"react-native-qrcode": "git+https://github.com/status-im/react-native-qrcode.git#v0.2.8",
|
2018-08-23 01:54:29 +00:00
|
|
|
"react-native-randombytes": "3.5.0",
|
2018-09-24 14:41:58 +00:00
|
|
|
"react-native-safe-area-view": "0.9.0",
|
2019-06-20 16:14:56 +00:00
|
|
|
"react-native-screens": "^1.0.0-alpha.22",
|
2019-01-15 12:28:17 +00:00
|
|
|
"react-native-securerandom": "git+https://github.com/status-im/react-native-securerandom.git#0.1.1-2",
|
2019-05-07 06:37:43 +00:00
|
|
|
"react-native-shake": "^3.3.1",
|
2018-08-23 01:54:29 +00:00
|
|
|
"react-native-splash-screen": "3.1.1",
|
2019-07-10 11:05:29 +00:00
|
|
|
"react-native-status-keycard": "2.5.7",
|
2019-03-04 12:38:41 +00:00
|
|
|
"react-native-svg": "^9.2.4",
|
|
|
|
"react-native-svg-transformer": "^0.12.1",
|
2019-01-18 11:07:55 +00:00
|
|
|
"react-native-tcp": "git+https://github.com/status-im/react-native-tcp.git#v3.3.0-1-status",
|
2019-05-30 14:01:20 +00:00
|
|
|
"react-native-touch-id": "^4.4.1",
|
2019-06-04 17:00:19 +00:00
|
|
|
"react-native-udp": "git+https://github.com/status-im/react-native-udp.git#v2.3.1-1-status",
|
2019-03-04 18:34:20 +00:00
|
|
|
"react-native-webview": "^5.2.1",
|
2019-03-04 12:38:41 +00:00
|
|
|
"react-native-webview-bridge": "git+https://github.com/status-im/react-native-webview-bridge.git#fix/classnames-colision",
|
2019-06-12 06:25:18 +00:00
|
|
|
"react-navigation": "^3.11.0",
|
2019-06-07 11:01:27 +00:00
|
|
|
"realm": "2.28.1",
|
2019-01-15 12:28:17 +00:00
|
|
|
"rn-snoopy": "git+https://github.com/status-im/rn-snoopy.git#v2.0.2-status",
|
2018-01-16 23:52:15 +00:00
|
|
|
"string_decoder": "0.10.31",
|
2018-09-05 06:39:24 +00:00
|
|
|
"text-encoding": "^0.6.4",
|
2018-01-16 23:52:15 +00:00
|
|
|
"url": "0.10.3",
|
Adds topic negotiation and partitioned topic
All the code has been implemented in statusgo: status-im/status-go#1466
Basically all the whisper filter management is done at that level.
Technical description
On startup we load all chats and send a list of them to status go:
For a public chat: {:chatId "status"}, we create a single filter, based on the name of the chat.
For each contact added by us, each user in a group chat and each one to one chat open, we send:
{:chatId "0x", :oneToOne true}. This will create a chats, to listen to their contact code.
Any previously negotiated topic is also returned.
Once loaded, we create our filters, and upsert the mailserver topics, both of which are solely based on the filters loaded.
In order to remove a chat, we delete/stopwatching first the the filter in status-react and then ask status-go to remove the filter. For a public chat we always remove, for a one-to-one we remove only if the user is not in our contacts, or in a group chat or we have a chat open. Negotiated topics are never removed, as otherwise the other user won't be able to contact us anymore.
On stopping whisper we don't have to ask status-go to remove filters as they are removed automatically.
Some more logic can be pushed in status-go, but that will be in subsequent PRs.
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-06-05 11:34:04 +00:00
|
|
|
"web3": "git+https://github.com/status-im/web3.js.git#0.20.3-status.alpha.3",
|
2019-03-04 18:34:20 +00:00
|
|
|
"web3-utils": "1.0.0-beta.36"
|
2019-07-03 19:00:51 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"coveralls": "^3.0.4",
|
|
|
|
"nyc": "^14.1.1"
|
2016-02-22 22:04:42 +00:00
|
|
|
}
|
2016-07-22 08:53:12 +00:00
|
|
|
}
|