Skip to content

Commit

Permalink
Updating dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 25, 2019
1 parent 5eb393d commit 9f88f8c
Show file tree
Hide file tree
Showing 18 changed files with 63 additions and 48 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ Changelog

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

ethers/v5.0.0-beta.140 (2019-06-12 1:25)
ethers/v5.0.0-beta.141 (2019-06-24 21:25)
-----------------------------------------

- Fix non-ES6 import in keccak256. ([5eb393d](https://github.com/ethers-io/ethers.js/commit/5eb393d828328b34567566d3c0d622b4aef1e202))
- Refactored wordlist exports to export Wordlist directly. ([746d255](https://github.com/ethers-io/ethers.js/commit/746d255b741844b615583b2de3ffd07631b4e872))

ethers/v5.0.0-beta.140 (2019-06-12 01:25)
----------------------------------------

- Move from node-fetch to cross-fetch; better browser fallback implementation. ([826ffbc](https://github.com/ethers-io/ethers.js/commit/826ffbc7c4ed1c301f30e6f264eedeaf3c243ca8))
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.131";
export declare const version = "5.0.0-beta.132";
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.131";
exports.version = "5.0.0-beta.132";
19 changes: 10 additions & 9 deletions packages/contracts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ var Contract = /** @class */ (function () {
errors.checkNew(_newTarget, Contract);
// @TODO: Maybe still check the addressOrName looks like a valid address or name?
//address = getAddress(address);
console.log(properties_1.getStatic(_newTarget, "getInterface"));
properties_1.defineReadOnly(this, "interface", properties_1.getStatic((_newTarget), "getInterface")(contractInterface));
if (abstract_signer_1.Signer.isSigner(signerOrProvider)) {
properties_1.defineReadOnly(this, "provider", signerOrProvider.provider || null);
Expand Down Expand Up @@ -716,14 +715,16 @@ var ContractFactory = /** @class */ (function () {
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
// Get the deployment transaction (with optional overrides)
var tx = this.getDeployTransaction.apply(this, args);
// Send the deployment transaction
return this.signer.sendTransaction(tx).then(function (tx) {
var address = (_this.constructor).getContractAddress(tx);
var contract = (_this.constructor).getContract(address, _this.interface, _this.signer);
properties_1.defineReadOnly(contract, "deployTransaction", tx);
return contract;
return resolveAddresses(this.signer, args, this.interface.deploy.inputs).then(function (args) {
// Get the deployment transaction (with optional overrides)
var tx = _this.getDeployTransaction.apply(_this, args);
// Send the deployment transaction
return _this.signer.sendTransaction(tx).then(function (tx) {
var address = (_this.constructor).getContractAddress(tx);
var contract = (_this.constructor).getContract(address, _this.interface, _this.signer);
properties_1.defineReadOnly(contract, "deployTransaction", tx);
return contract;
});
});
};
ContractFactory.prototype.attach = function (address) {
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.131",
"version": "5.0.0-beta.132",
"description": "Error utility functions for ethers.",
"main": "index.js",
"scripts": {
Expand All @@ -27,5 +27,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0xaed564e716d22adb2783f4f301176f7c214fc8470dd9edc40e6a0daa77b65328"
"tarballHash": "0x92ac81d787734c2c5d35e449c515f0f57fdb6aa7db138e6f6599ddcfb2e09269"
}
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.131";
export const version = "5.0.0-beta.132";
19 changes: 10 additions & 9 deletions packages/contracts/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ export class Contract {

// @TODO: Maybe still check the addressOrName looks like a valid address or name?
//address = getAddress(address);
console.log(getStatic(new.target, "getInterface"));
defineReadOnly(this, "interface", getStatic<InterfaceFunc>(new.target, "getInterface")(contractInterface));

if (Signer.isSigner(signerOrProvider)) {
Expand Down Expand Up @@ -889,16 +888,18 @@ export class ContractFactory {
}

deploy(...args: Array<any>): Promise<Contract> {
return resolveAddresses(this.signer, args, this.interface.deploy.inputs).then((args) => {

// Get the deployment transaction (with optional overrides)
let tx = this.getDeployTransaction(...args);
// Get the deployment transaction (with optional overrides)
let tx = this.getDeployTransaction(...args);

// Send the deployment transaction
return this.signer.sendTransaction(tx).then((tx) => {
let address = (<any>(this.constructor)).getContractAddress(tx);
let contract = (<any>(this.constructor)).getContract(address, this.interface, this.signer);
defineReadOnly(contract, "deployTransaction", tx);
return contract;
// Send the deployment transaction
return this.signer.sendTransaction(tx).then((tx) => {
let address = (<any>(this.constructor)).getContractAddress(tx);
let contract = (<any>(this.constructor)).getContract(address, this.interface, this.signer);
defineReadOnly(contract, "deployTransaction", tx);
return contract;
});
});
}

Expand Down
26 changes: 15 additions & 11 deletions packages/ethers/dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -13120,7 +13120,6 @@ var Contract = /** @class */ (function () {
errors.checkNew(_newTarget, Contract);
// @TODO: Maybe still check the addressOrName looks like a valid address or name?
//address = getAddress(address);
console.log(properties_1.getStatic(_newTarget, "getInterface"));
properties_1.defineReadOnly(this, "interface", properties_1.getStatic((_newTarget), "getInterface")(contractInterface));
if (abstract_signer_1.Signer.isSigner(signerOrProvider)) {
properties_1.defineReadOnly(this, "provider", signerOrProvider.provider || null);
Expand Down Expand Up @@ -13532,14 +13531,16 @@ var ContractFactory = /** @class */ (function () {
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
// Get the deployment transaction (with optional overrides)
var tx = this.getDeployTransaction.apply(this, args);
// Send the deployment transaction
return this.signer.sendTransaction(tx).then(function (tx) {
var address = (_this.constructor).getContractAddress(tx);
var contract = (_this.constructor).getContract(address, _this.interface, _this.signer);
properties_1.defineReadOnly(contract, "deployTransaction", tx);
return contract;
return resolveAddresses(this.signer, args, this.interface.deploy.inputs).then(function (args) {
// Get the deployment transaction (with optional overrides)
var tx = _this.getDeployTransaction.apply(_this, args);
// Send the deployment transaction
return _this.signer.sendTransaction(tx).then(function (tx) {
var address = (_this.constructor).getContractAddress(tx);
var contract = (_this.constructor).getContract(address, _this.interface, _this.signer);
properties_1.defineReadOnly(contract, "deployTransaction", tx);
return contract;
});
});
};
ContractFactory.prototype.attach = function (address) {
Expand Down Expand Up @@ -14996,11 +14997,14 @@ exports.searchPath = searchPath;

},{"@ethersproject/bytes":64,"@ethersproject/strings":102}],80:[function(require,module,exports){
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var sha3 = require("js-sha3");
var js_sha3_1 = __importDefault(require("js-sha3"));
var bytes_1 = require("@ethersproject/bytes");
function keccak256(data) {
return '0x' + sha3.keccak_256(bytes_1.arrayify(data));
return '0x' + js_sha3_1.default.keccak_256(bytes_1.arrayify(data));
}
exports.keccak256 = keccak256;

Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
"publishConfig": {
"tag": "next"
},
"tarballHash": "0xa0d7fdfd65da93078a44f91f55feb051f7329880f184f8ac9617d0b75c3d8dc8"
"tarballHash": "0xe85792a6937c87220bfa6fd5b744c54b75014d3a36c86e8001c73603c22f2b3d"
}
2 changes: 1 addition & 1 deletion packages/keccak256/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.124";
export declare const version = "5.0.0-beta.125";
2 changes: 1 addition & 1 deletion packages/keccak256/_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.124";
exports.version = "5.0.0-beta.125";
7 changes: 5 additions & 2 deletions packages/keccak256/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var sha3 = require("js-sha3");
var js_sha3_1 = __importDefault(require("js-sha3"));
var bytes_1 = require("@ethersproject/bytes");
function keccak256(data) {
return '0x' + sha3.keccak_256(bytes_1.arrayify(data));
return '0x' + js_sha3_1.default.keccak_256(bytes_1.arrayify(data));
}
exports.keccak256 = keccak256;
4 changes: 2 additions & 2 deletions packages/keccak256/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/keccak256",
"version": "5.0.0-beta.124",
"version": "5.0.0-beta.125",
"description": "Error utility functions for ethers.",
"main": "index.js",
"scripts": {
Expand All @@ -19,5 +19,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0xa98932040e5874dff6fe54c61917a7ae1fd4cc40cbcba3c684c67e416c49b574"
"tarballHash": "0xef127b17ba325b05d0ca2f84c462fe2d795b9cfdf3528234f9fda2ae9570010f"
}
2 changes: 1 addition & 1 deletion packages/keccak256/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.124";
export const version = "5.0.0-beta.125";
4 changes: 2 additions & 2 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/tests",
"version": "5.0.0-beta.130",
"version": "5.0.0-beta.131",
"description": "Testing package for ethers.",
"main": "index.js",
"browser": {
Expand Down Expand Up @@ -32,5 +32,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0xee14c9239f79ec542032a71998db4924010d8dc9ffefc6c57398ae64a57317ad"
"tarballHash": "0x326bf339535f70d55f12f393d6dff6eb8a8ea9599929086d9bc5c53e7e2bb09b"
}
2 changes: 1 addition & 1 deletion packages/tests/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.130";
export const version = "5.0.0-beta.131";
2 changes: 1 addition & 1 deletion packages/tests/tests/_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.130";
exports.version = "5.0.0-beta.131";

0 comments on commit 9f88f8c

Please sign in to comment.