aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-16 00:09:27 +0800
committerobscuren <geffobscura@gmail.com>2014-12-16 00:09:27 +0800
commit993280ec03a8bd8e108da7e222c98efa8482084b (patch)
tree84039e17ec3c73e20818837eb63dd0cf83c5f32c /cmd/mist
parent6ff9d5770b332da6d767bc315a54c5a815143aff (diff)
downloadgo-tangerine-993280ec03a8bd8e108da7e222c98efa8482084b.tar.gz
go-tangerine-993280ec03a8bd8e108da7e222c98efa8482084b.tar.zst
go-tangerine-993280ec03a8bd8e108da7e222c98efa8482084b.zip
Added whisper test
Diffstat (limited to 'cmd/mist')
-rw-r--r--cmd/mist/assets/qml/views/whisper.qml46
1 files changed, 46 insertions, 0 deletions
diff --git a/cmd/mist/assets/qml/views/whisper.qml b/cmd/mist/assets/qml/views/whisper.qml
new file mode 100644
index 000000000..631f1981e
--- /dev/null
+++ b/cmd/mist/assets/qml/views/whisper.qml
@@ -0,0 +1,46 @@
+
+import QtQuick 2.0
+import QtQuick.Controls 1.0;
+import QtQuick.Layouts 1.0;
+import QtQuick.Dialogs 1.0;
+import QtQuick.Window 2.1;
+import QtQuick.Controls.Styles 1.1
+import Ethereum 1.0
+
+Rectangle {
+ id: root
+ property var title: "Whisper"
+ property var iconSource: "../facet.png"
+ property var menuItem
+
+ objectName: "whisperView"
+ anchors.fill: parent
+
+ property var identity: ""
+ Component.onCompleted: {
+ identity = shh.newIdentity()
+ console.log("New identity:", identity)
+ }
+
+ RowLayout {
+ TextField {
+ id: to
+ placeholderText: "To"
+ }
+ TextField {
+ id: data
+ placeholderText: "Data"
+ }
+ TextField {
+ id: topics
+ placeholderText: "topic1, topic2, topic3, ..."
+ }
+
+ Button {
+ text: "Send"
+ onClicked: {
+ shh.post(eth.toHex(data.text), "", identity, topics.text.split(","), 500, 50)
+ }
+ }
+ }
+}