aboutsummaryrefslogtreecommitdiffstats
path: root/lib/web3.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-31 08:30:19 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-31 08:30:19 +0800
commit995861de4d61ffae9e60ae3fc08b2775b2e81f7b (patch)
tree74fa44db33570dbccb8f0265f8e9bccd87592936 /lib/web3.js
parent600c9dd27dde3269a1682b875f82d3db46cee2c9 (diff)
downloadgo-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar
go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.gz
go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.bz2
go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.lz
go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.xz
go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.zst
go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.zip
event options
Diffstat (limited to 'lib/web3.js')
-rw-r--r--lib/web3.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/web3.js b/lib/web3.js
index 7b8bbd28a..6bf8f7bc0 100644
--- a/lib/web3.js
+++ b/lib/web3.js
@@ -278,8 +278,11 @@ var web3 = {
return ret;
};
},
- watch: function (params) {
- return new web3.filter(params, ethWatch);
+
+ /// @param filter may be a string, object or event
+ /// @param indexed is optional, this may be an object with optional event indexed params
+ watch: function (filter, indexed) {
+ return new web3.filter(filter, indexed, ethWatch);
}
},
@@ -288,8 +291,11 @@ var web3 = {
/// shh object prototype
shh: {
- watch: function (params) {
- return new web3.filter(params, shhWatch);
+
+ /// @param filter may be a string, object or event
+ /// @param indexed is optional, this may be an object with optional event indexed params
+ watch: function (filter, indexed) {
+ return new web3.filter(filter, indexed, shhWatch);
}
},