aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/webapp.qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-13 22:37:47 +0800
committerobscuren <geffobscura@gmail.com>2014-05-13 22:37:47 +0800
commit1adfc272a856d466e3d513522ee2fa83853b08ab (patch)
tree1618746391e6302d65401581e9804b7900cfbd45 /ethereal/assets/qml/webapp.qml
parent721d3a9a57fbc7478255d52271531f001375b863 (diff)
parent9caf53f8c63cb30a174d2b33ef85176c8f6f8204 (diff)
downloaddexon-1adfc272a856d466e3d513522ee2fa83853b08ab.tar.gz
dexon-1adfc272a856d466e3d513522ee2fa83853b08ab.tar.zst
dexon-1adfc272a856d466e3d513522ee2fa83853b08ab.zip
Merge branch 'release/poc5-rc4'
Diffstat (limited to 'ethereal/assets/qml/webapp.qml')
-rw-r--r--ethereal/assets/qml/webapp.qml31
1 files changed, 29 insertions, 2 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml
index 1f3c3874a..7af006f77 100644
--- a/ethereal/assets/qml/webapp.qml
+++ b/ethereal/assets/qml/webapp.qml
@@ -47,13 +47,37 @@ ApplicationWindow {
try {
switch(data.call) {
+ case "getCoinBase":
+ postData(data._seed, eth.getCoinBase())
+
+ break
+ case "getIsListening":
+ postData(data._seed, eth.getIsListening())
+
+ break
+ case "getIsMining":
+ postData(data._seed, eth.getIsMining())
+
+ break
+ case "getPeerCount":
+ postData(data._seed, eth.getPeerCount())
+
+ break
+
+ case "getTxCountAt":
+ require(1)
+ postData(data._seed, eth.getTxCountAt(data.args[0]))
+
+ break
case "getBlockByNumber":
- var block = eth.getBlock("b9b56cf6f907fbee21db0cd7cbc0e6fea2fe29503a3943e275c5e467d649cb06")
+ var block = eth.getBlock("b9b56cf6f907fbee21db0cd7cbc0e6fea2fe29503a3943e275c5e467d649cb06")
postData(data._seed, block)
+
break
case "getBlockByHash":
- var block = eth.getBlock("b9b56cf6f907fbee21db0cd7cbc0e6fea2fe29503a3943e275c5e467d649cb06")
+ var block = eth.getBlock("b9b56cf6f907fbee21db0cd7cbc0e6fea2fe29503a3943e275c5e467d649cb06")
postData(data._seed, block)
+
break
case "transact":
require(5)
@@ -94,11 +118,14 @@ ApplicationWindow {
postData(data._seed, null)
break;
case "set":
+ console.log("'Set' has been depcrecated")
+ /*
for(var key in data.args) {
if(webview.hasOwnProperty(key)) {
window[key] = data.args[key];
}
}
+ */
break;
case "getSecretToAddress":
require(1)