Updated dist files.

This commit is contained in:
Richard Moore 2018-11-27 17:32:47 -05:00
parent 3f76f603d9
commit db383a3121
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
10 changed files with 17 additions and 19 deletions

2
_version.d.ts vendored

@ -1 +1 @@
export declare const version = "4.0.14"; export declare const version = "4.0.15";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "4.0.14"; exports.version = "4.0.15";

@ -106,7 +106,6 @@ function resolveAddresses(provider, value, paramType) {
function runMethod(contract, functionName, estimateOnly) { function runMethod(contract, functionName, estimateOnly) {
var method = contract.interface.functions[functionName]; var method = contract.interface.functions[functionName];
return function () { return function () {
var _this = this;
var params = []; var params = [];
for (var _i = 0; _i < arguments.length; _i++) { for (var _i = 0; _i < arguments.length; _i++) {
params[_i] = arguments[_i]; params[_i] = arguments[_i];
@ -218,19 +217,19 @@ function runMethod(contract, functionName, estimateOnly) {
return wait(confirmations).then(function (receipt) { return wait(confirmations).then(function (receipt) {
receipt.events = receipt.logs.map(function (log) { receipt.events = receipt.logs.map(function (log) {
var event = properties_1.deepCopy(log); var event = properties_1.deepCopy(log);
var parsed = _this.interface.parseLog(log); var parsed = contract.interface.parseLog(log);
if (parsed) { if (parsed) {
event.args = parsed.values; event.args = parsed.values;
event.decode = parsed.decode; event.decode = parsed.decode;
event.event = parsed.name; event.event = parsed.name;
event.eventSignature = parsed.signature; event.eventSignature = parsed.signature;
} }
event.removeListener = function () { return _this.provider; }; event.removeListener = function () { return contract.provider; };
event.getBlock = function () { event.getBlock = function () {
return _this.provider.getBlock(receipt.blockHash); return contract.provider.getBlock(receipt.blockHash);
}; };
event.getTransaction = function () { event.getTransaction = function () {
return _this.provider.getTransaction(receipt.transactionHash); return contract.provider.getTransaction(receipt.transactionHash);
}; };
event.getTransactionReceipt = function () { event.getTransactionReceipt = function () {
return Promise.resolve(receipt); return Promise.resolve(receipt);

11
dist/ethers.js vendored

@ -1,7 +1,7 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethers = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethers = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "4.0.14"; exports.version = "4.0.15";
},{}],2:[function(require,module,exports){ },{}],2:[function(require,module,exports){
"use strict"; "use strict";
@ -154,7 +154,6 @@ function resolveAddresses(provider, value, paramType) {
function runMethod(contract, functionName, estimateOnly) { function runMethod(contract, functionName, estimateOnly) {
var method = contract.interface.functions[functionName]; var method = contract.interface.functions[functionName];
return function () { return function () {
var _this = this;
var params = []; var params = [];
for (var _i = 0; _i < arguments.length; _i++) { for (var _i = 0; _i < arguments.length; _i++) {
params[_i] = arguments[_i]; params[_i] = arguments[_i];
@ -266,19 +265,19 @@ function runMethod(contract, functionName, estimateOnly) {
return wait(confirmations).then(function (receipt) { return wait(confirmations).then(function (receipt) {
receipt.events = receipt.logs.map(function (log) { receipt.events = receipt.logs.map(function (log) {
var event = properties_1.deepCopy(log); var event = properties_1.deepCopy(log);
var parsed = _this.interface.parseLog(log); var parsed = contract.interface.parseLog(log);
if (parsed) { if (parsed) {
event.args = parsed.values; event.args = parsed.values;
event.decode = parsed.decode; event.decode = parsed.decode;
event.event = parsed.name; event.event = parsed.name;
event.eventSignature = parsed.signature; event.eventSignature = parsed.signature;
} }
event.removeListener = function () { return _this.provider; }; event.removeListener = function () { return contract.provider; };
event.getBlock = function () { event.getBlock = function () {
return _this.provider.getBlock(receipt.blockHash); return contract.provider.getBlock(receipt.blockHash);
}; };
event.getTransaction = function () { event.getTransaction = function () {
return _this.provider.getTransaction(receipt.transactionHash); return contract.provider.getTransaction(receipt.transactionHash);
}; };
event.getTransactionReceipt = function () { event.getTransactionReceipt = function () {
return Promise.resolve(receipt); return Promise.resolve(receipt);

2
dist/ethers.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -262,7 +262,7 @@ declare module 'ethers/utils/shims' {
} }
declare module 'ethers/_version' { declare module 'ethers/_version' {
export const version = "4.0.14"; export const version = "4.0.15";
} }
declare module 'ethers/utils/bignumber' { declare module 'ethers/utils/bignumber' {

2
package-lock.json generated

@ -1,6 +1,6 @@
{ {
"name": "ethers", "name": "ethers",
"version": "4.0.14", "version": "4.0.15",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -1,6 +1,6 @@
{ {
"name": "ethers", "name": "ethers",
"version": "4.0.14", "version": "4.0.15",
"description": "Ethereum wallet library.", "description": "Ethereum wallet library.",
"main": "./index.js", "main": "./index.js",
"types": "./index.d.ts", "types": "./index.d.ts",

@ -1 +1 @@
export const version = "4.0.14"; export const version = "4.0.15";