From 27735bbdfc4e32e2e5ca11f48591d62b766aa3f5 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 17 Aug 2014 12:41:23 +0200 Subject: State dumps from gui --- ethereal/assets/ext/ethereum.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'ethereal/assets/ext/ethereum.js') diff --git a/ethereal/assets/ext/ethereum.js b/ethereal/assets/ext/ethereum.js index fb8bd23a7..697a404a3 100644 --- a/ethereal/assets/ext/ethereum.js +++ b/ethereal/assets/ext/ethereum.js @@ -6,7 +6,8 @@ window.eth = { test: function() { var t = undefined; - navigator.qt.onmessage = function(d) { t = d; } + postData({call: "test"}) + navigator.qt.onmessage = function(d) {console.log("onmessage called"); t = d; } for(;;) { if(t !== undefined) { return t @@ -14,7 +15,8 @@ window.eth = { } }, - mutan: function(code) { + mutan: function(code, cb) { + postData({call: "mutan", args: [code]}, cb) }, toHex: function(str) { @@ -281,3 +283,13 @@ navigator.qt.onmessage = function(ev) { } } } + +eth.on("chain:changed", function() { +}) + +eth.on("messages", { /* filters */}, function(messages){ +}) + +eth.on("pending:changed", function() { +}) + -- cgit v1.2.3