aboutsummaryrefslogtreecommitdiffstats
path: root/mist/assets/ext/test.html
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-23 01:33:24 +0800
committerobscuren <geffobscura@gmail.com>2014-09-23 01:33:24 +0800
commit154ca03228a9d97a4b2319f525814a16f102430f (patch)
treea6e71cdafb18f011c2472d4792075173c132bee6 /mist/assets/ext/test.html
parent7855a233a7ed4968d93fc76a74501c931574f6eb (diff)
parentc7d666ad61a76e79867c9f7ae783a2cc44485dd0 (diff)
downloadgo-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar.gz
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar.bz2
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar.lz
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar.xz
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar.zst
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.zip
Merge branch 'release/0.6.5'v0.6.5
Diffstat (limited to 'mist/assets/ext/test.html')
-rw-r--r--mist/assets/ext/test.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/mist/assets/ext/test.html b/mist/assets/ext/test.html
new file mode 100644
index 000000000..4bac7d36f
--- /dev/null
+++ b/mist/assets/ext/test.html
@@ -0,0 +1,44 @@
+<!doctype>
+<html>
+<head>
+<title>Tests</title>
+</head>
+
+<body>
+<button onclick="test();">Test me</button>
+
+<script type="text/javascript">
+function test() {
+ var filter = eth.watch({
+ latest: -1,
+ from: "e6716f9544a56c530d868e4bfbacb172315bdead",
+ altered: ["aabb", {id: "eeff", "at": "aabb"}],
+ });
+
+ filter.changed(function(messages) {
+ console.log("messages", messages)
+ })
+
+ filter.getMessages(function(messages) {
+ console.log("getMessages", messages)
+ });
+
+ eth.getEachStorageAt("9ef0f0d81e040012600b0c1abdef7c48f720f88a", function(entries) {
+ for(var i = 0; i < entries.length; i++) {
+ console.log(entries[i].key, " : ", entries[i].value)
+ }
+ })
+
+ eth.getBlock("f70097659f329a09642a27f11338d9269de64f1d4485786e36bfc410832148cd", function(block) {
+ console.log(block)
+ })
+
+ eth.mutan("var a = 10", function(code) {
+ console.log("code", code)
+ });
+}
+</script>
+
+</body>
+
+</html>