Add raw filter

This commit is contained in:
Andrea Maria Piana 2019-05-21 15:09:07 +02:00
parent d5b6d21871
commit 29677754c8
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
6 changed files with 197 additions and 23 deletions

9
dist/web3-light.js vendored
View File

@ -5873,12 +5873,7 @@ RawFilter.prototype.watch = function (callback) {
RawFilter.prototype.stopWatching = function (callback) {
this.requestManager.stopPolling(this.filterId);
this.callbacks = [];
// remove filter async
if (callback) {
this.implementation.uninstallFilter(this.filterId, callback);
} else {
return this.implementation.uninstallFilter(this.filterId);
}
callback()
};
RawFilter.prototype.get = function (callback) {
@ -5912,7 +5907,7 @@ RawFilter.prototype.get = function (callback) {
return this;
};
module.exports = Filter;
module.exports = RawFilter;
},{"../../utils/utils":20,"../formatters":30}],42:[function(require,module,exports){

File diff suppressed because one or more lines are too long

9
dist/web3.js vendored
View File

@ -5873,12 +5873,7 @@ RawFilter.prototype.watch = function (callback) {
RawFilter.prototype.stopWatching = function (callback) {
this.requestManager.stopPolling(this.filterId);
this.callbacks = [];
// remove filter async
if (callback) {
this.implementation.uninstallFilter(this.filterId, callback);
} else {
return this.implementation.uninstallFilter(this.filterId);
}
callback()
};
RawFilter.prototype.get = function (callback) {
@ -5912,7 +5907,7 @@ RawFilter.prototype.get = function (callback) {
return this;
};
module.exports = Filter;
module.exports = RawFilter;
},{"../../utils/utils":20,"../formatters":30}],42:[function(require,module,exports){

189
dist/web3.js.map vendored Normal file

File diff suppressed because one or more lines are too long

2
dist/web3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -190,12 +190,7 @@ RawFilter.prototype.watch = function (callback) {
RawFilter.prototype.stopWatching = function (callback) {
this.requestManager.stopPolling(this.filterId);
this.callbacks = [];
// remove filter async
if (callback) {
this.implementation.uninstallFilter(this.filterId, callback);
} else {
return this.implementation.uninstallFilter(this.filterId);
}
callback()
};
RawFilter.prototype.get = function (callback) {
@ -229,5 +224,5 @@ RawFilter.prototype.get = function (callback) {
return this;
};
module.exports = Filter;
module.exports = RawFilter;