aboutsummaryrefslogtreecommitdiffstats
path: root/lib/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/event.js')
-rw-r--r--lib/event.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/event.js b/lib/event.js
new file mode 100644
index 000000000..724acde81
--- /dev/null
+++ b/lib/event.js
@@ -0,0 +1,16 @@
+
+var abi = require('./abi');
+
+var implementationOfEvent = function (event, address, signature) {
+
+ return function (options) {
+ var o = options || {};
+ o.address = o.address || address;
+ o.topics = o.topics || [];
+ o.topics.push(signature);
+ return o;
+ };
+};
+
+module.exports = implementationOfEvent;
+