Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 21, 2019
1 parent efaafb2 commit a62af37
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Changelog

This change log is managed by `scripts/cmds/update-versions` but may be manually updated.

ethers/v5.0.0-beta.146 (2019-07-20 21:06)
-----------------------------------------

- Keep extra filter topics when using Frgment filters in Contracts. ([efaafb2](https://github.com/ethers-io/ethers.js/commit/efaafb203feaf703de803df7e346652372e9fb75))
- Updated package.json description for Contract package. ([#561](https://github.com/ethers-io/ethers.js/issues/561); [d88ee45](https://github.com/ethers-io/ethers.js/commit/d88ee45937b3484b68f72e3f72ad6c29556c984b))

ethers/v5.0.0-beta.145 (2019-07-20 20:12)
-----------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.133";
export declare const version = "5.0.0-beta.134";
2 changes: 1 addition & 1 deletion packages/contracts/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.133";
exports.version = "5.0.0-beta.134";
17 changes: 13 additions & 4 deletions packages/contracts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,21 @@ var ErrorRunningEvent = /** @class */ (function (_super) {
}(RunningEvent));
var FragmentRunningEvent = /** @class */ (function (_super) {
__extends(FragmentRunningEvent, _super);
function FragmentRunningEvent(address, contractInterface, fragment) {
function FragmentRunningEvent(address, contractInterface, fragment, topics) {
var _this = this;
var filter = {
address: address,
topics: [contractInterface.getEventTopic(fragment)]
address: address
};
var topic = contractInterface.getEventTopic(fragment);
if (topics) {
if (topic !== topics[0]) {
errors.throwArgumentError("topic mismatch", "topics", topics);
}
filter.topics = topics.slice();
}
else {
filter.topics = [topic];
}
_this = _super.call(this, getEventTag(filter), filter) || this;
properties_1.defineReadOnly(_this, "address", address);
properties_1.defineReadOnly(_this, "interface", contractInterface);
Expand Down Expand Up @@ -487,7 +496,7 @@ var Contract = /** @class */ (function () {
if (eventName.topics[0]) {
var fragment = this.interface.getEvent(eventName.topics[0]);
if (fragment) {
return this._normalizeRunningEvent(new FragmentRunningEvent(this.address, this.interface, fragment));
return this._normalizeRunningEvent(new FragmentRunningEvent(this.address, this.interface, fragment, eventName.topics));
}
}
filter.topics = eventName.topics;
Expand Down
4 changes: 2 additions & 2 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/contracts",
"version": "5.0.0-beta.133",
"version": "5.0.0-beta.134",
"description": "Contract abstraction meta-class for ethers.",
"main": "index.js",
"scripts": {
Expand All @@ -27,5 +27,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0x36273887374b3b52f35f3d051b3851d6cb121cfb4c3ead3a2b269a115aaee88e"
"tarballHash": "0x6b25925f92f10c31dc8d9a61012e7f70ae09094896da0d252e59f42823981c27"
}
2 changes: 1 addition & 1 deletion packages/contracts/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.133";
export const version = "5.0.0-beta.134";
2 changes: 1 addition & 1 deletion packages/ethers/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.145";
export declare const version = "5.0.0-beta.146";
2 changes: 1 addition & 1 deletion packages/ethers/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.145";
exports.version = "5.0.0-beta.146";
19 changes: 14 additions & 5 deletions packages/ethers/dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -13216,12 +13216,21 @@ var ErrorRunningEvent = /** @class */ (function (_super) {
}(RunningEvent));
var FragmentRunningEvent = /** @class */ (function (_super) {
__extends(FragmentRunningEvent, _super);
function FragmentRunningEvent(address, contractInterface, fragment) {
function FragmentRunningEvent(address, contractInterface, fragment, topics) {
var _this = this;
var filter = {
address: address,
topics: [contractInterface.getEventTopic(fragment)]
address: address
};
var topic = contractInterface.getEventTopic(fragment);
if (topics) {
if (topic !== topics[0]) {
errors.throwArgumentError("topic mismatch", "topics", topics);
}
filter.topics = topics.slice();
}
else {
filter.topics = [topic];
}
_this = _super.call(this, getEventTag(filter), filter) || this;
properties_1.defineReadOnly(_this, "address", address);
properties_1.defineReadOnly(_this, "interface", contractInterface);
Expand Down Expand Up @@ -13453,7 +13462,7 @@ var Contract = /** @class */ (function () {
if (eventName.topics[0]) {
var fragment = this.interface.getEvent(eventName.topics[0]);
if (fragment) {
return this._normalizeRunningEvent(new FragmentRunningEvent(this.address, this.interface, fragment));
return this._normalizeRunningEvent(new FragmentRunningEvent(this.address, this.interface, fragment, eventName.topics));
}
}
filter.topics = eventName.topics;
Expand Down Expand Up @@ -14000,7 +14009,7 @@ exports.info = info;
},{}],68:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.145";
exports.version = "5.0.0-beta.146";

},{}],69:[function(require,module,exports){
"use strict";
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethers",
"version": "5.0.0-beta.145",
"version": "5.0.0-beta.146",
"description": "Error utility functions for ethers.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -56,5 +56,5 @@
"publishConfig": {
"tag": "next"
},
"tarballHash": "0x57ea79d5daa640261d53c6b8d85374c4f7c7e2bcd772749939666b3e9c0fa31e"
"tarballHash": "0x9360b235b2db232c03a9ffd7a5608a778a815c9c6cb62ec48733a60a6b179e15"
}
2 changes: 1 addition & 1 deletion packages/ethers/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.145";
export const version = "5.0.0-beta.146";

0 comments on commit a62af37

Please sign in to comment.