event options

This commit is contained in:
Marek Kotewicz
2015-01-31 01:30:19 +01:00
parent 600c9dd27d
commit 995861de4d
8 changed files with 104 additions and 36 deletions

View File

@ -20,13 +20,16 @@
* @date 2014
*/
var abi = require('./abi');
var implementationOfEvent = function (address, signature) {
return function (options) {
// valid options are 'earliest', 'latest', 'offset' and 'max', as defined for 'eth.watch'
return function (indexed, options) {
var o = options || {};
o.address = o.address || address;
o.topics = o.topics || [];
o.topics.push(signature);
o.address = address;
o.topic = [];
o.topic.push(signature);
return o;
};
};