2
0
mirror of https://github.com/status-im/status-go.git synced 2025-02-25 21:25:33 +00:00

209 Commits

Author SHA1 Message Date
Andrea Maria Piana
ddf7c2d1c2 upgrade whisper 2020-02-28 13:27:00 +01:00
Andrea Maria Piana
2ae04f2a2d acknowledge spelling 2020-02-28 13:27:00 +01:00
Andrea Maria Piana
7a64fbf5f7
make apis private ()
* make apis private

* Bump whisper
2020-02-25 08:03:01 +01:00
Adam Babik
91e658aeb6
bump Whisper to 6.2.1 () 2020-02-21 16:22:25 +01:00
Andrea Maria Piana
849492fda9
Add statusUpdate code ()
* Add status-option code

This commits changes the behavior of waku introducing a new status-code,
`2`, that replaces the current single options codes.

* linting
2020-02-21 15:48:53 +01:00
Adam Babik
76b5dc29dc
Integrate Whisper-Waku bridge in status-go () 2020-02-18 12:21:01 +01:00
cca47ef6e1 rename gomarkdown/markdown to status-im/markdown
This resolves a dependency conflict we have with MatterBridge
which was using a newer version of the same package.
This resulted in a JSON marshalling bug that would crash the bridge.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-11 16:06:43 +01:00
Adam Babik
8b61d92d58
Remove protocol and eth-node submodules () 2020-02-10 12:22:37 +01:00
Pedro Pombeiro
6537cae606 Nimbus node support 2020-01-20 13:15:17 +01:00
Andrea Maria Piana
c569d8a4ed
Sync installation messages & contact requests () 2020-01-15 08:25:09 +01:00
Andrea Maria Piana
88a1d0111e
Add Commands ()
This commit adds handling of Transaction commands.
2020-01-10 19:59:01 +01:00
yenda
d3de88f790 fix stickers persistence () 2020-01-10 16:12:09 +01:00
Adam Babik
26a64e57da
bump extkeys and waku submodules 2020-01-10 14:03:17 +01:00
Adam Babik
37a508a97b
Integrate Waku service () 2020-01-08 12:12:23 +01:00
Pedro Pombeiro
8d8880dc62 Get rid of types.Whisper.Poll method 2019-12-19 14:11:48 +01:00
Adam Babik
4f45bceb9a
Drop peers when rate limit is exceeded () 2019-12-16 20:38:50 +01:00
acolytec3
2d2f2fbc51 Add ValidateMnemonic method () 2019-12-16 14:55:02 +01:00
Andrea Maria Piana
baa0767c26
Handle membership update message
This commit does a few things:

1) Handle membership updates using protobuf and adds the relevant
endpoints.
2) Store in memory a map of chats + contacts for faster lookups, which
are then flushed to disk on each update
3) Validate incoming messages

Sorry for the large pr, but you know, v1 :)
2019-12-10 15:20:28 +01:00
Adam Babik
0c6a4e0e65
fix Whisper submodule version; bump go-ethereum version 2019-12-09 16:26:00 +01:00
Adam Babik
6284d45b69
fix docker image build 2019-12-09 16:04:32 +01:00
Adam Babik
4ac4a61e20
Move whisper to status-go monorepo () 2019-12-09 11:06:04 +01:00
Andrea Maria Piana
fd49b0140e
Move to protobuf for Message type ()
* Use a single Message type `v1/message.go` and `message.go` are the same now, and they embed `protobuf.ChatMessage`

* Use `SendChatMessage` for sending chat messages, this is basically the old `Send` but a bit more flexible so we can send different message types (stickers,commands), and not just text.

* Remove dedup from services/shhext. Because now we process in status-protocol, dedup makes less sense, as those messages are going to be processed anyway, so removing for now, we can re-evaluate if bringing it to status-go or not.

* Change the various retrieveX method to a single one:
`RetrieveAll` will be processing those messages that it can process (Currently only `Message`), and return the rest in `RawMessages` (still transit). The format for the response is:
`Chats`: -> The chats updated by receiving the message
`Messages`: -> The messages retrieved (already matched to a chat)
`Contacts`: -> The contacts updated by the messages
`RawMessages` -> Anything else that can't be parsed, eventually as we move everything to status-protocol-go this will go away.
2019-12-05 17:25:34 +01:00
f4d4c66d5b upgrade whisper: 1.6.1 > 1.6.2
This adds new Prometheus metrics

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-12-02 13:17:52 +01:00
Pedro Pombeiro
26b6d7c36a Create a home submodule for Eth node bridges- Rename StatusBackend to GethStatusBackend 2019-11-27 17:02:09 +01:00
Adam Babik
47ccf32cdb
Upgrade zap to v1.13.0 () 2019-11-25 21:16:00 +01:00
Adam Babik
10635d555f
Make extkeys as a submodule () 2019-11-22 13:58:03 +01:00
Pedro Pombeiro
ed5a5c154d
Move to monorepo structure ()
Move to a monorepo structure with submodules

- Rename status-protocol-go to status-go/protocol
2019-11-21 17:19:22 +01:00
Pedro Pombeiro
2dd74da23d Integrate Nimbus status-protocol-go 2019-11-18 14:30:03 +01:00
Adam Babik
c199c8f342
Update Whisper and introduce rate limiting () 2019-11-18 11:22:23 +01:00
Pedro Pombeiro
6ce437255e Remove FCM implementation 2019-11-17 17:54:55 +01:00
4c313c7032 add tcp-pinger for measuring rtt of mailservers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-15 13:18:08 +01:00
Andrea Maria Piana
9d7c570593
Add PrepareContent and upgrade status-go () 2019-11-15 09:52:28 +01:00
Andrea Maria Piana
89659f85b4
Upgrade status-protocol-go () 2019-11-08 08:36:12 +01:00
Andrea Maria Piana
a659685e3f
Add parsed message ()
This commits add a field (parsedMessage) to the json payload sent to
status-react.
This field is the parsed version of the transit message.
The code is all in dedup, I will re-organize it once we made all the
necesseary changes.
2019-11-06 17:23:11 +01:00
Adam Babik
183d626256
Implement mailserver Deliver() with MessagesRequest ()
The main difference is that it takes `whisper.MessagesRequest` as an argument instead of `whisper.Envelope`.
2019-11-04 21:15:21 +01:00
c1f17cb4a3 use prometheus/client_golang for metrics
also re-implement mailserver metrics

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-04 13:18:50 +01:00
Andrea Maria Piana
9f2a4b378f
Verify ens endpoint, only against mainnet ()
* String payload

* Verify ENS Names

* Update status-protocol-go
2019-11-04 11:08:22 +01:00
Adam Babik
a244b01a26
Upgrade migrate () 2019-10-14 16:10:48 +02:00
Pedro Pombeiro
c874960215
Use status-protocol-go/bridge/geth ()
* Use status-protocol-go/bridge/geth
2019-10-14 09:53:38 +02:00
Pedro Pombeiro
d87caf57e3
Add dependabot config file ()
* Add dependabot config file

* Fix status-protocol-go dependency
2019-10-11 07:00:46 +02:00
294399916e add script for easier setup of mailserver
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-10-10 11:27:32 +02:00
Pedro Pombeiro
a2f106e4c5
Update for status-protocol-go API changes () 2019-10-09 16:22:53 +02:00
Adam Babik
26880b83d7
Upgrade geth to 1.9.5 and Whisper () 2019-10-04 17:21:24 +02:00
Andrea Maria Piana
40e66e6186
upgrade status-protocol-go () 2019-09-26 11:26:33 +02:00
Andrea Maria Piana
9a3ed980c9
Generate gfycat and identicon in status-protocol-go () 2019-09-26 09:01:17 +02:00
Andrea Maria Piana
1a47893e75
Upgrade status-protocol-go () 2019-09-02 11:29:06 +02:00
Andrea Maria Piana
b8ea79a3f0
Upgrade status-protocol-go () 2019-08-29 08:33:46 +02:00
Andrea Maria Piana
e118e89107
Add persistent datasync, use single database and handle negotiated filters () 2019-08-27 14:04:15 +02:00
Andrea Maria Piana
06dc227071
Add Metadata to messages, expose new messenger methods ()
* Add Metadata to messages, expose new messenger methods

This commits modifies deduplicator so that it takes a `StatusMessage`
instead of `WhisperMessage` and also returns a `Metadata` field which is
then passed back by the client when confirming messages, which fixes the
issue we had with not confirming pfs messages.
2019-08-20 13:20:25 +02:00
Adam Babik
8383feea04 add API to shhext to manage messages 2019-08-12 19:44:31 +02:00