Commit Graph

375 Commits

Author SHA1 Message Date
Franck Royer 820307ef8c
Do not list own public key as recipient 2021-06-25 16:18:15 +10:00
Franck Royer 452f4285eb
Move most EthCrypto usage to crypto.ts 2021-06-25 16:18:15 +10:00
Franck Royer 93665feac8
Generate fresh new keypair, do not use signature as entropy 2021-06-25 16:18:15 +10:00
Franck Royer bd0ad81d17
Disable generate button if key is already present 2021-06-25 16:18:15 +10:00
Franck Royer d6d548a09e
Save private key in storage
In clear for now.
2021-06-25 16:18:14 +10:00
Franck Royer 01c1c253b4
Install linter 2021-06-22 13:21:24 +10:00
Franck Royer 3a7c7a1bb7
Fix spelling 2021-06-22 13:21:23 +10:00
Franck Royer ce2bfde12d
Remove webvitals 2021-06-22 13:21:23 +10:00
Franck Royer b3bb363a50
Upgrade node types 2021-06-22 13:21:23 +10:00
Franck Royer 0425821ea3
Remove all tests
Issue with `TextDecoder is not defined` and we are not testing anything
at the moment.
2021-06-22 13:21:23 +10:00
Franck Royer 891897fe63
Remove test as not able to run it with waffle
The PoC works so we know the functionality is here, this was here
to prevent regression.
2021-06-22 13:21:23 +10:00
Franck Royer 68faba24c1
Move Eth-DM notes to root dir 2021-06-21 15:48:56 +10:00
Franck Royer 73abcdda46
Prod build uses prod fleet 2021-06-21 14:49:18 +10:00
Franck Royer 85b4879410
Concatenate signature to have enough entropy for eth-crypto 2021-06-21 13:51:11 +10:00
Franck Royer af2b2691f1
The signature is an hex string, not utf-8 2021-06-21 13:26:33 +10:00
Franck Royer f05e3a6bb3
Add key to list items 2021-06-18 15:18:37 +10:00
Franck Royer c6f73199cb
Remove unused import 2021-06-18 15:12:12 +10:00
Franck Royer 66fcb2e48b
Enable recipient selection and message input 2021-06-18 15:11:54 +10:00
Franck Royer 0c825fe391
Use lightpush for all messages 2021-06-18 15:11:09 +10:00
Franck Royer 6e54e65131
Use material UI 2021-06-18 13:53:12 +10:00
Franck Royer 41533d51e5
Prettier message display 2021-06-18 10:04:38 +10:00
Franck Royer 11f92df0ba
Use light push instead of relay
See #209.
2021-06-17 16:24:05 +10:00
Franck Royer 0c6cb64b72
Ensure observers are deleted 2021-06-17 16:24:05 +10:00
Franck Royer 8e8e3a366c
Only use test fleet for now 2021-06-17 16:24:05 +10:00
Franck Royer ddf6a9501a
Fix for metamask 2021-06-17 16:24:04 +10:00
Franck Royer fc987f8f58
Publish eth-dm on GH pages 2021-06-17 16:24:04 +10:00
Franck Royer 7dcb52444b
Display waku readiness 2021-06-17 16:24:04 +10:00
Franck Royer 4e7f75868f
Clean up observer when component dismount 2021-06-17 10:41:00 +10:00
Franck Royer 1d3f0e4c8a
Use npm
As it better handles file dependencies by creating a symlink.
2021-06-17 10:41:00 +10:00
Franck Royer 3fa1574696
Display direct messages 2021-06-17 10:41:00 +10:00
Franck Royer 329ed71fb6
Remove unused component 2021-06-17 10:40:59 +10:00
Franck Royer ed5b7ba542
Send Dummy messages 2021-06-17 10:40:59 +10:00
Franck Royer 69033f4ea5
Receive public key from network and verify it 2021-06-17 10:40:59 +10:00
Franck Royer 3bd6b76916
Publish public key to waku network 2021-06-17 10:40:59 +10:00
Franck Royer ee38388326
Init repo, add crypto functions 2021-06-17 10:40:59 +10:00
Franck Royer 939b5fb20a
Auto select peer if none provided for store and light push protocols 2021-06-16 23:51:20 +10:00
Franck Royer c293e268e8
Do not send message if a modifier is pressed to enable multiline msgs 2021-06-11 14:38:31 +10:00
Franck Royer 8073021d82
Do not fail if a chat message is malformed 2021-06-11 14:38:22 +10:00
Franck Royer 1bb1f8f6b6
Use tcp protocol only
Due to #201, Websocket protocol is not added by default if the caller
specifies a protocol for libp2p.

In the case cli-chat. We were using both tcp and ws.
As the web-chat already demonstrates usage of websocket protocol, we
cli-chat to tcp only.
2021-06-09 16:58:08 +10:00
Franck Royer f17a008278
Separate the libp2p create options from Waku's 2021-06-09 15:00:02 +10:00
Franck Royer 0d00328715
Split useEffect calls
Better React practice.
2021-06-04 15:25:53 +10:00
Franck Royer 6b48c55266
Persist nick 2021-06-04 15:15:07 +10:00
Franck Royer b90b66c5f6
Add comment 2021-06-04 14:59:40 +10:00
Franck Royer 03febcc276
Update toy-chat content topic
As per https://github.com/status-im/nim-waku/pull/583
2021-06-03 17:54:46 +10:00
Franck Royer 553c0154d9
Use waku message timestamp as better unique key 2021-05-28 22:38:00 +10:00
Franck Royer ca74f7f87a
Update chat content topic to new testnet value
Resolves #180
2021-05-28 14:32:05 +10:00
Franck Royer f23310aaf5
Remove outdated comment 2021-05-19 12:29:30 +10:00
Franck Royer 90e224577f
Add `--help` command 2021-05-19 12:29:30 +10:00
Franck Royer 2ea17bfdfa
Use light push to send messages if it's passed 2021-05-19 12:29:29 +10:00
Franck Royer fb7e9f2b9e
Get messages from store in chronological order 2021-05-19 12:29:29 +10:00
Franck Royer c4c259f47a
Connect cli chat to prod fleet upon passing `--prod` 2021-05-18 13:51:11 +10:00
Franck Royer a69c483c46
Connect to prod fleet by default, test fleet for local development 2021-05-18 13:51:11 +10:00
Franck Royer 3f5484f6ed
Use callback option in web-chat 2021-05-17 16:32:34 +10:00
Franck Royer 4b6fe84392
Use one object as we are increasing the number of parameters 2021-05-17 16:32:33 +10:00
Franck Royer 79bef35460
Add and use `getStatusFleetNodes` to connect to Status' wakunodes 2021-05-15 19:52:05 +10:00
Franck Royer c6ce32dc54
Enable dialing several nodes 2021-05-15 19:45:24 +10:00
Franck Royer 0dc2ee8d40
Use status fleet instead of jdev 2021-05-14 15:49:35 +10:00
Franck Royer 89b35eb4df
Disable send button if no peer available
Yet keep it enabled if user tries to send a command.

Resolves #136
2021-05-13 20:48:33 +10:00
Franck Royer 065593b0cf
Revert naming to js-waku
To align with go-waku and nim-waku and keep bors working.
2021-05-13 20:27:38 +10:00
Franck Royer 6f7c1e0ca3
Enhance addPeerToAddressBook
So that consumer does not need to import multiaddr and peer-id.
2021-05-13 13:42:40 +10:00
Franck Royer 82d026c6d5
Rename repo to waku-js 2021-05-13 11:01:41 +10:00
Franck Royer 702201f7be
Set first release version to 0.1.0 2021-05-13 11:01:41 +10:00
Franck Royer 43627d27d8
Rename package to waku-js 2021-05-13 10:36:28 +10:00
Franck Royer 28572fccff
Rename to web3-waku in examples 2021-05-11 14:05:13 +10:00
Franck Royer 3663ce260d
Rework exports for an easy use of the library 2021-05-10 16:41:58 +10:00
Franck Royer 83c17fdcc2
Remove ChatMessage
The aim of this class was to remove the items in the chat list
with duplicate keys. However, the implementation does not achieve this
goal.
2021-05-10 16:35:55 +10:00
Franck Royer e91f7933c9
Pass proto in constructor
Makes the relation between the protobuf class and the wrapper more
direct. Conversion only happens at creates or on getters.
2021-05-10 16:29:25 +10:00
Franck Royer ba6b67cc53
Enable observers to filter by contentTopic 2021-05-10 14:54:08 +10:00
Franck Royer 54f32bacad
Use new observer interface in examples 2021-05-10 12:38:44 +10:00
Franck Royer a6d815974e
Connect to 2 test fleet nodes 2021-05-07 10:41:38 +10:00
Franck Royer 775a288a5c
Log more around usage of waku store 2021-05-07 10:41:38 +10:00
Franck Royer 381151a29a
Connect directly to websockify
To avoid websocket timeout issue
2021-05-06 11:48:01 +10:00
Franck Royer 94ff4ca40f
Use one cspell file for all project inc examples 2021-05-05 16:40:23 +10:00
Franck Royer 316edff778
Move web-chat to examples folder 2021-05-05 16:35:14 +10:00
Franck Royer abd5709f86
Move cli chat to examples folder 2021-05-05 10:53:40 +10:00