diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-17 18:41:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-17 18:41:23 +0800 |
commit | 27735bbdfc4e32e2e5ca11f48591d62b766aa3f5 (patch) | |
tree | ceb02da5048d2f592944ff7bc41186fc81f8e76b /ethereal/assets/ext/ethereum.js | |
parent | 2eab964a00b998068f49b088949730f4896e256c (diff) | |
download | go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.gz go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.bz2 go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.lz go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.xz go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.zst go-tangerine-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.zip |
State dumps from gui
Diffstat (limited to 'ethereal/assets/ext/ethereum.js')
-rw-r--r-- | ethereal/assets/ext/ethereum.js | 16 |
1 files changed, 14 insertions, 2 deletions
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() { +}) + |