aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/ext/ethereum.js
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-04 21:54:33 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-04 21:54:33 +0800
commit7843390ecd52df37a28282d76be198d5456ce385 (patch)
tree42ab782f2bbd2246481d7336c424e835004064ff /ethereal/assets/ext/ethereum.js
parent307fe4a3cd4ff2d3910ed992e6e98a7cd3ca6f87 (diff)
downloaddexon-7843390ecd52df37a28282d76be198d5456ce385.tar
dexon-7843390ecd52df37a28282d76be198d5456ce385.tar.gz
dexon-7843390ecd52df37a28282d76be198d5456ce385.tar.bz2
dexon-7843390ecd52df37a28282d76be198d5456ce385.tar.lz
dexon-7843390ecd52df37a28282d76be198d5456ce385.tar.xz
dexon-7843390ecd52df37a28282d76be198d5456ce385.tar.zst
dexon-7843390ecd52df37a28282d76be198d5456ce385.zip
Implement getStateKeyVal for JS bindings.
Gives JS the option to 'loop' over contract key/val storage
Diffstat (limited to 'ethereal/assets/ext/ethereum.js')
-rw-r--r--ethereal/assets/ext/ethereum.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereal/assets/ext/ethereum.js b/ethereal/assets/ext/ethereum.js
index d4eaf97fd..c58fe24c2 100644
--- a/ethereal/assets/ext/ethereum.js
+++ b/ethereal/assets/ext/ethereum.js
@@ -32,6 +32,10 @@ window.eth = {
postData({call: "getStorage", args: [address, storageAddress]}, cb);
},
+ getStateKeyVals: function(address, cb){
+ postData({call: "getStateKeyVals", args: [address]}, cb);
+ },
+
getKey: function(cb) {
postData({call: "getKey"}, cb);
},