Updated dist files.

This commit is contained in:
Richard Moore 2020-01-06 19:00:55 -05:00
parent eb26a6d950
commit a21c430c7a
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
79 changed files with 1782 additions and 437 deletions

@ -3,6 +3,20 @@ Changelog
This change log is managed by `scripts/cmds/update-versions` but may be manually updated. This change log is managed by `scripts/cmds/update-versions` but may be manually updated.
ethers/v5.0.0-beta.163 (2020-01-06 18:57)
-----------------------------------------
- Added function to generate CREATE2 addresses. ([#697](https://github.com/ethers-io/ethers.js/issues/697); [eb26a6d](https://github.com/ethers-io/ethers.js/commit/eb26a6d95022a241c44f859e7b2f29646afb4914))
- Force constructor name to be null (instead of undefined). ([a648f2b](https://github.com/ethers-io/ethers.js/commit/a648f2bd1e5e52a3662896f04fe7025884866972))
- Added documentation uploading script. ([e593aba](https://github.com/ethers-io/ethers.js/commit/e593aba2946c98820b0c2edf9c5dab6cb30c7402))
- Added Czech wordlist to default wordlists export. ([#691](https://github.com/ethers-io/ethers.js/issues/691); [5724fa5](https://github.com/ethers-io/ethers.js/commit/5724fa5d9c6fe73f14ec8bdea1f7226a222537ef))
- Added Czech BIP-39 wordlist. ([#691](https://github.com/ethers-io/ethers.js/issues/691); [f54f06b](https://github.com/ethers-io/ethers.js/commit/f54f06b5c8092997fd3c9055d69a3e0796ce44f3))
- Updated README. ([e809ead](https://github.com/ethers-io/ethers.js/commit/e809eadf8d608cd8c8a78c08a2e3547dd09156cf))
- Updating docs. ([184c459](https://github.com/ethers-io/ethers.js/commit/184c459fab0d089a8a879584b72e5eb3560b33ce))
- Merge branch 'yuetloo-ethers-v5-beta' into ethers-v5-beta ([06cafe3](https://github.com/ethers-io/ethers.js/commit/06cafe3437ef129b47f5f9c02f4759f2c4854d3c))
- Add circleci and parity test files ([fdf0980](https://github.com/ethers-io/ethers.js/commit/fdf0980663ffead0faf3e9b7b233b22ca1574e21))
- Fixed typo in package test dist scripts. ([9c78c7f](https://github.com/ethers-io/ethers.js/commit/9c78c7fee69d07733048d898d58205ae7f5c82d7))
ethers/v5.0.0-beta.162 (2019-11-25 0:02) ethers/v5.0.0-beta.162 (2019-11-25 0:02)
---------------------------------------- ----------------------------------------

1658
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
export declare const version = "abi/5.0.0-beta.142"; export declare const version = "abi/5.0.0-beta.143";

@ -1 +1 @@
export const version = "abi/5.0.0-beta.142"; export const version = "abi/5.0.0-beta.143";

@ -575,6 +575,7 @@ export class ConstructorFragment extends Fragment {
throw new Error("constructor cannot be constant"); throw new Error("constructor cannot be constant");
} }
return new ConstructorFragment(_constructorGuard, { return new ConstructorFragment(_constructorGuard, {
name: null,
type: value.type, type: value.type,
inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []), inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []),
payable: state.payable, payable: state.payable,

@ -1 +1 @@
export declare const version = "abi/5.0.0-beta.142"; export declare const version = "abi/5.0.0-beta.143";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "abi/5.0.0-beta.142"; exports.version = "abi/5.0.0-beta.143";

@ -603,6 +603,7 @@ var ConstructorFragment = /** @class */ (function (_super) {
throw new Error("constructor cannot be constant"); throw new Error("constructor cannot be constant");
} }
return new ConstructorFragment(_constructorGuard, { return new ConstructorFragment(_constructorGuard, {
name: null,
type: value.type, type: value.type,
inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []), inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []),
payable: state.payable, payable: state.payable,

@ -31,7 +31,7 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"tarballHash": "0xadfbb4cb8f2b47899564234f2856265474ba5f2530b2658e43ae931b929b4a93", "tarballHash": "0x5feb254fd7b20266f0834b8f5beca7680c0988a6ba89ec04fede8b2c823b4dfd",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.0-beta.142" "version": "5.0.0-beta.143"
} }

@ -1 +1 @@
export const version = "abi/5.0.0-beta.142"; export const version = "abi/5.0.0-beta.143";

@ -1 +1 @@
export declare const version = "address/5.0.0-beta.133"; export declare const version = "address/5.0.0-beta.134";

@ -1 +1 @@
export const version = "address/5.0.0-beta.133"; export const version = "address/5.0.0-beta.134";

@ -1,3 +1,4 @@
import { BytesLike } from "@ethersproject/bytes";
import { BigNumberish } from "@ethersproject/bignumber"; import { BigNumberish } from "@ethersproject/bignumber";
export declare function getAddress(address: string): string; export declare function getAddress(address: string): string;
export declare function isAddress(address: string): boolean; export declare function isAddress(address: string): boolean;
@ -6,3 +7,4 @@ export declare function getContractAddress(transaction: {
from: string; from: string;
nonce: BigNumberish; nonce: BigNumberish;
}): string; }): string;
export declare function getCreate2Address(from: string, salt: BytesLike, initCodeHash: BytesLike): string;

@ -1,7 +1,7 @@
"use strict"; "use strict";
// We use this for base 36 maths // We use this for base 36 maths
import { BN } from "bn.js"; import { BN } from "bn.js";
import { arrayify, hexDataSlice, isHexString, stripZeros } from "@ethersproject/bytes"; import { arrayify, concat, hexDataLength, hexDataSlice, isHexString, stripZeros } from "@ethersproject/bytes";
import { BigNumber } from "@ethersproject/bignumber"; import { BigNumber } from "@ethersproject/bignumber";
import { keccak256 } from "@ethersproject/keccak256"; import { keccak256 } from "@ethersproject/keccak256";
import { encode } from "@ethersproject/rlp"; import { encode } from "@ethersproject/rlp";
@ -124,3 +124,12 @@ export function getContractAddress(transaction) {
const nonce = stripZeros(arrayify(BigNumber.from(transaction.nonce).toHexString())); const nonce = stripZeros(arrayify(BigNumber.from(transaction.nonce).toHexString()));
return getAddress(hexDataSlice(keccak256(encode([from, nonce])), 12)); return getAddress(hexDataSlice(keccak256(encode([from, nonce])), 12));
} }
export function getCreate2Address(from, salt, initCodeHash) {
if (hexDataLength(salt) !== 32) {
logger.throwArgumentError("salt must be 32 bytes", "salt", salt);
}
if (hexDataLength(initCodeHash) !== 32) {
logger.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash);
}
return getAddress(hexDataSlice(keccak256(concat(["0xff", getAddress(from), salt, initCodeHash])), 12));
}

@ -1 +1 @@
export declare const version = "address/5.0.0-beta.133"; export declare const version = "address/5.0.0-beta.134";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "address/5.0.0-beta.133"; exports.version = "address/5.0.0-beta.134";

@ -1,3 +1,4 @@
import { BytesLike } from "@ethersproject/bytes";
import { BigNumberish } from "@ethersproject/bignumber"; import { BigNumberish } from "@ethersproject/bignumber";
export declare function getAddress(address: string): string; export declare function getAddress(address: string): string;
export declare function isAddress(address: string): boolean; export declare function isAddress(address: string): boolean;
@ -6,3 +7,4 @@ export declare function getContractAddress(transaction: {
from: string; from: string;
nonce: BigNumberish; nonce: BigNumberish;
}): string; }): string;
export declare function getCreate2Address(from: string, salt: BytesLike, initCodeHash: BytesLike): string;

@ -129,3 +129,13 @@ function getContractAddress(transaction) {
return getAddress(bytes_1.hexDataSlice(keccak256_1.keccak256(rlp_1.encode([from, nonce])), 12)); return getAddress(bytes_1.hexDataSlice(keccak256_1.keccak256(rlp_1.encode([from, nonce])), 12));
} }
exports.getContractAddress = getContractAddress; exports.getContractAddress = getContractAddress;
function getCreate2Address(from, salt, initCodeHash) {
if (bytes_1.hexDataLength(salt) !== 32) {
logger.throwArgumentError("salt must be 32 bytes", "salt", salt);
}
if (bytes_1.hexDataLength(initCodeHash) !== 32) {
logger.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash);
}
return getAddress(bytes_1.hexDataSlice(keccak256_1.keccak256(bytes_1.concat(["0xff", getAddress(from), salt, initCodeHash])), 12));
}
exports.getCreate2Address = getCreate2Address;

@ -28,7 +28,7 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"tarballHash": "0x42fd431912caff42462eff8a503ff701df38fe1a9b58443d7318613ce45c87c3", "tarballHash": "0x092997b196f1fc978c9ded04160b0ae1ea83694580b8d5a3489ba3af921b4eba",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.0-beta.133" "version": "5.0.0-beta.134"
} }

@ -1 +1 @@
export const version = "address/5.0.0-beta.133"; export const version = "address/5.0.0-beta.134";

@ -1 +1 @@
export declare const version = "constants/5.0.0-beta.132"; export declare const version = "constants/5.0.0-beta.133";

@ -1 +1 @@
export const version = "constants/5.0.0-beta.132"; export const version = "constants/5.0.0-beta.133";

@ -2,10 +2,8 @@
import { BigNumber } from "@ethersproject/bignumber"; import { BigNumber } from "@ethersproject/bignumber";
const AddressZero = "0x0000000000000000000000000000000000000000"; const AddressZero = "0x0000000000000000000000000000000000000000";
const HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000"; const HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000";
// NFKD (decomposed) // NFKC (composed) // (decomposed)
//const EtherSymbol = "\uD835\uDF63"; const EtherSymbol = "\u039e"; // "\uD835\uDF63";
// NFKC (composed)
const EtherSymbol = "\u039e";
const NegativeOne = BigNumber.from(-1); const NegativeOne = BigNumber.from(-1);
const Zero = BigNumber.from(0); const Zero = BigNumber.from(0);
const One = BigNumber.from(1); const One = BigNumber.from(1);

@ -1 +1 @@
export declare const version = "constants/5.0.0-beta.132"; export declare const version = "constants/5.0.0-beta.133";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "constants/5.0.0-beta.132"; exports.version = "constants/5.0.0-beta.133";

@ -5,10 +5,8 @@ var AddressZero = "0x0000000000000000000000000000000000000000";
exports.AddressZero = AddressZero; exports.AddressZero = AddressZero;
var HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000"; var HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000";
exports.HashZero = HashZero; exports.HashZero = HashZero;
// NFKD (decomposed) // NFKC (composed) // (decomposed)
//const EtherSymbol = "\uD835\uDF63"; var EtherSymbol = "\u039e"; // "\uD835\uDF63";
// NFKC (composed)
var EtherSymbol = "\u039e";
exports.EtherSymbol = EtherSymbol; exports.EtherSymbol = EtherSymbol;
var NegativeOne = bignumber_1.BigNumber.from(-1); var NegativeOne = bignumber_1.BigNumber.from(-1);
exports.NegativeOne = NegativeOne; exports.NegativeOne = NegativeOne;

@ -23,7 +23,7 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"tarballHash": "0x8fc053bcdab1400b86aea6af717a44c8eeed84a193ecf76648819df9afa20e14", "tarballHash": "0x82bcedf66de372c369d59e6eda636b95fe75e037d3216a15c135f6e48332624a",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.0-beta.132" "version": "5.0.0-beta.133"
} }

@ -1 +1 @@
export const version = "constants/5.0.0-beta.132"; export const version = "constants/5.0.0-beta.133";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -4739,7 +4739,7 @@ var lib_esm$2 = /*#__PURE__*/Object.freeze({
Description: Description Description: Description
}); });
const version$4 = "abi/5.0.0-beta.142"; const version$4 = "abi/5.0.0-beta.143";
"use strict"; "use strict";
const logger$4 = new Logger(version$4); const logger$4 = new Logger(version$4);
@ -5314,6 +5314,7 @@ class ConstructorFragment extends Fragment {
throw new Error("constructor cannot be constant"); throw new Error("constructor cannot be constant");
} }
return new ConstructorFragment(_constructorGuard$2, { return new ConstructorFragment(_constructorGuard$2, {
name: null,
type: value.type, type: value.type,
inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []), inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []),
payable: state.payable, payable: state.payable,
@ -6198,7 +6199,7 @@ var index = /*#__PURE__*/Object.freeze({
decode: decode decode: decode
}); });
const version$5 = "address/5.0.0-beta.133"; const version$5 = "address/5.0.0-beta.134";
"use strict"; "use strict";
const logger$6 = new Logger(version$5); const logger$6 = new Logger(version$5);
@ -6318,6 +6319,15 @@ function getContractAddress(transaction) {
const nonce = stripZeros(arrayify(BigNumber.from(transaction.nonce).toHexString())); const nonce = stripZeros(arrayify(BigNumber.from(transaction.nonce).toHexString()));
return getAddress(hexDataSlice(keccak256(encode([from, nonce])), 12)); return getAddress(hexDataSlice(keccak256(encode([from, nonce])), 12));
} }
function getCreate2Address(from, salt, initCodeHash) {
if (hexDataLength(salt) !== 32) {
logger$6.throwArgumentError("salt must be 32 bytes", "salt", salt);
}
if (hexDataLength(initCodeHash) !== 32) {
logger$6.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash);
}
return getAddress(hexDataSlice(keccak256(concat(["0xff", getAddress(from), salt, initCodeHash])), 12));
}
"use strict"; "use strict";
class AddressCoder extends Coder { class AddressCoder extends Coder {
@ -6553,10 +6563,8 @@ class NullCoder extends Coder {
"use strict"; "use strict";
const AddressZero = "0x0000000000000000000000000000000000000000"; const AddressZero = "0x0000000000000000000000000000000000000000";
const HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000"; const HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000";
// NFKD (decomposed) // NFKC (composed) // (decomposed)
//const EtherSymbol = "\uD835\uDF63"; const EtherSymbol = "\u039e"; // "\uD835\uDF63";
// NFKC (composed)
const EtherSymbol = "\u039e";
const NegativeOne$1 = BigNumber.from(-1); const NegativeOne$1 = BigNumber.from(-1);
const Zero$1 = BigNumber.from(0); const Zero$1 = BigNumber.from(0);
const One = BigNumber.from(1); const One = BigNumber.from(1);
@ -12524,7 +12532,7 @@ function parse(rawTransaction) {
var _version$2 = createCommonjsModule(function (module, exports) { var _version$2 = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "wordlists/5.0.0-beta.134"; exports.version = "wordlists/5.0.0-beta.135";
}); });
var _version$3 = unwrapExports(_version$2); var _version$3 = unwrapExports(_version$2);
@ -18928,6 +18936,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
getAddress: getAddress, getAddress: getAddress,
getIcapAddress: getIcapAddress, getIcapAddress: getIcapAddress,
getContractAddress: getContractAddress, getContractAddress: getContractAddress,
getCreate2Address: getCreate2Address,
isAddress: isAddress, isAddress: isAddress,
formatEther: formatEther, formatEther: formatEther,
parseEther: parseEther, parseEther: parseEther,
@ -18959,7 +18968,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
Indexed: Indexed Indexed: Indexed
}); });
const version$l = "ethers/5.0.0-beta.162"; const version$l = "ethers/5.0.0-beta.163";
"use strict"; "use strict";
const errors = Logger.errors; const errors = Logger.errors;

File diff suppressed because one or more lines are too long

@ -4886,7 +4886,7 @@
var _version$8 = createCommonjsModule(function (module, exports) { var _version$8 = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "abi/5.0.0-beta.142"; exports.version = "abi/5.0.0-beta.143";
}); });
var _version$9 = unwrapExports(_version$8); var _version$9 = unwrapExports(_version$8);
@ -5498,6 +5498,7 @@
throw new Error("constructor cannot be constant"); throw new Error("constructor cannot be constant");
} }
return new ConstructorFragment(_constructorGuard, { return new ConstructorFragment(_constructorGuard, {
name: null,
type: value.type, type: value.type,
inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []), inputs: (value.inputs ? value.inputs.map(ParamType.fromObject) : []),
payable: state.payable, payable: state.payable,
@ -6456,7 +6457,7 @@
var _version$a = createCommonjsModule(function (module, exports) { var _version$a = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "address/5.0.0-beta.133"; exports.version = "address/5.0.0-beta.134";
}); });
var _version$b = unwrapExports(_version$a); var _version$b = unwrapExports(_version$a);
@ -6594,6 +6595,16 @@
return getAddress(lib$1.hexDataSlice(lib$4.keccak256(lib$5.encode([from, nonce])), 12)); return getAddress(lib$1.hexDataSlice(lib$4.keccak256(lib$5.encode([from, nonce])), 12));
} }
exports.getContractAddress = getContractAddress; exports.getContractAddress = getContractAddress;
function getCreate2Address(from, salt, initCodeHash) {
if (lib$1.hexDataLength(salt) !== 32) {
logger.throwArgumentError("salt must be 32 bytes", "salt", salt);
}
if (lib$1.hexDataLength(initCodeHash) !== 32) {
logger.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash);
}
return getAddress(lib$1.hexDataSlice(lib$4.keccak256(lib$1.concat(["0xff", getAddress(from), salt, initCodeHash])), 12));
}
exports.getCreate2Address = getCreate2Address;
}); });
var index$6 = unwrapExports(lib$6); var index$6 = unwrapExports(lib$6);
@ -6601,6 +6612,7 @@
var lib_2$4 = lib$6.isAddress; var lib_2$4 = lib$6.isAddress;
var lib_3$3 = lib$6.getIcapAddress; var lib_3$3 = lib$6.getIcapAddress;
var lib_4$3 = lib$6.getContractAddress; var lib_4$3 = lib$6.getContractAddress;
var lib_5$3 = lib$6.getCreate2Address;
var address = createCommonjsModule(function (module, exports) { var address = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
@ -7022,10 +7034,8 @@
exports.AddressZero = AddressZero; exports.AddressZero = AddressZero;
var HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000"; var HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000";
exports.HashZero = HashZero; exports.HashZero = HashZero;
// NFKD (decomposed) // NFKC (composed) // (decomposed)
//const EtherSymbol = "\uD835\uDF63"; var EtherSymbol = "\u039e"; // "\uD835\uDF63";
// NFKC (composed)
var EtherSymbol = "\u039e";
exports.EtherSymbol = EtherSymbol; exports.EtherSymbol = EtherSymbol;
var NegativeOne = lib$2.BigNumber.from(-1); var NegativeOne = lib$2.BigNumber.from(-1);
exports.NegativeOne = NegativeOne; exports.NegativeOne = NegativeOne;
@ -7046,7 +7056,7 @@
var lib_2$5 = lib$7.HashZero; var lib_2$5 = lib$7.HashZero;
var lib_3$4 = lib$7.EtherSymbol; var lib_3$4 = lib$7.EtherSymbol;
var lib_4$4 = lib$7.NegativeOne; var lib_4$4 = lib$7.NegativeOne;
var lib_5$3 = lib$7.Zero; var lib_5$4 = lib$7.Zero;
var lib_6$2 = lib$7.One; var lib_6$2 = lib$7.One;
var lib_7$2 = lib$7.Two; var lib_7$2 = lib$7.Two;
var lib_8$1 = lib$7.WeiPerEther; var lib_8$1 = lib$7.WeiPerEther;
@ -7597,7 +7607,7 @@
var lib_2$6 = lib$8.parseBytes32String; var lib_2$6 = lib$8.parseBytes32String;
var lib_3$5 = lib$8.nameprep; var lib_3$5 = lib$8.nameprep;
var lib_4$5 = lib$8._toEscapedUtf8String; var lib_4$5 = lib$8._toEscapedUtf8String;
var lib_5$4 = lib$8.toUtf8Bytes; var lib_5$5 = lib$8.toUtf8Bytes;
var lib_6$3 = lib$8.toUtf8CodePoints; var lib_6$3 = lib$8.toUtf8CodePoints;
var lib_7$3 = lib$8.toUtf8String; var lib_7$3 = lib$8.toUtf8String;
var lib_8$2 = lib$8.UnicodeNormalizationForm; var lib_8$2 = lib$8.UnicodeNormalizationForm;
@ -7865,7 +7875,7 @@
var lib_2$7 = lib$9.namehash; var lib_2$7 = lib$9.namehash;
var lib_3$6 = lib$9.id; var lib_3$6 = lib$9.id;
var lib_4$6 = lib$9.messagePrefix; var lib_4$6 = lib$9.messagePrefix;
var lib_5$5 = lib$9.hashMessage; var lib_5$6 = lib$9.hashMessage;
var _interface = createCommonjsModule(function (module, exports) { var _interface = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
@ -8316,7 +8326,7 @@
var lib_2$8 = lib$a.EventFragment; var lib_2$8 = lib$a.EventFragment;
var lib_3$7 = lib$a.FormatTypes; var lib_3$7 = lib$a.FormatTypes;
var lib_4$7 = lib$a.Fragment; var lib_4$7 = lib$a.Fragment;
var lib_5$6 = lib$a.FunctionFragment; var lib_5$7 = lib$a.FunctionFragment;
var lib_6$4 = lib$a.ParamType; var lib_6$4 = lib$a.ParamType;
var lib_7$4 = lib$a.AbiCoder; var lib_7$4 = lib$a.AbiCoder;
var lib_8$3 = lib$a.defaultAbiCoder; var lib_8$3 = lib$a.defaultAbiCoder;
@ -8456,7 +8466,7 @@
var lib_2$9 = lib$b.BlockForkEvent; var lib_2$9 = lib$b.BlockForkEvent;
var lib_3$8 = lib$b.TransactionForkEvent; var lib_3$8 = lib$b.TransactionForkEvent;
var lib_4$8 = lib$b.TransactionOrderForkEvent; var lib_4$8 = lib$b.TransactionOrderForkEvent;
var lib_5$7 = lib$b.Provider; var lib_5$8 = lib$b.Provider;
var _version$i = createCommonjsModule(function (module, exports) { var _version$i = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
@ -13593,7 +13603,7 @@
var _version$s = createCommonjsModule(function (module, exports) { var _version$s = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "wordlists/5.0.0-beta.134"; exports.version = "wordlists/5.0.0-beta.135";
}); });
var _version$t = unwrapExports(_version$s); var _version$t = unwrapExports(_version$s);
@ -14041,7 +14051,7 @@
var lib_2$f = lib$h.HDNode; var lib_2$f = lib$h.HDNode;
var lib_3$c = lib$h.mnemonicToSeed; var lib_3$c = lib$h.mnemonicToSeed;
var lib_4$a = lib$h.mnemonicToEntropy; var lib_4$a = lib$h.mnemonicToEntropy;
var lib_5$8 = lib$h.entropyToMnemonic; var lib_5$9 = lib$h.entropyToMnemonic;
var lib_6$5 = lib$h.isValidMnemonic; var lib_6$5 = lib$h.isValidMnemonic;
var _version$w = createCommonjsModule(function (module, exports) { var _version$w = createCommonjsModule(function (module, exports) {
@ -16218,7 +16228,7 @@
var lib_2$g = lib$i.getJsonWalletAddress; var lib_2$g = lib$i.getJsonWalletAddress;
var lib_3$d = lib$i.isCrowdsaleWallet; var lib_3$d = lib$i.isCrowdsaleWallet;
var lib_4$b = lib$i.isKeystoreWallet; var lib_4$b = lib$i.isKeystoreWallet;
var lib_5$9 = lib$i.decryptKeystore; var lib_5$a = lib$i.decryptKeystore;
var lib_6$6 = lib$i.encryptKeystore; var lib_6$6 = lib$i.encryptKeystore;
var lib_7$5 = lib$i.decryptJsonWallet; var lib_7$5 = lib$i.decryptJsonWallet;
@ -20998,7 +21008,7 @@
var lib_2$j = lib$m.getNetwork; var lib_2$j = lib$m.getNetwork;
var lib_3$e = lib$m.BaseProvider; var lib_3$e = lib$m.BaseProvider;
var lib_4$c = lib$m.AlchemyProvider; var lib_4$c = lib$m.AlchemyProvider;
var lib_5$a = lib$m.CloudflareProvider; var lib_5$b = lib$m.CloudflareProvider;
var lib_6$7 = lib$m.EtherscanProvider; var lib_6$7 = lib$m.EtherscanProvider;
var lib_7$6 = lib$m.FallbackProvider; var lib_7$6 = lib$m.FallbackProvider;
var lib_8$4 = lib$m.IpcProvider; var lib_8$4 = lib$m.IpcProvider;
@ -21209,7 +21219,7 @@
var lib_2$l = lib$o.formatUnits; var lib_2$l = lib$o.formatUnits;
var lib_3$g = lib$o.parseUnits; var lib_3$g = lib$o.parseUnits;
var lib_4$d = lib$o.formatEther; var lib_4$d = lib$o.formatEther;
var lib_5$b = lib$o.parseEther; var lib_5$c = lib$o.parseEther;
var utils$3 = createCommonjsModule(function (module, exports) { var utils$3 = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
@ -21233,6 +21243,7 @@
exports.ParamType = lib$a.ParamType; exports.ParamType = lib$a.ParamType;
exports.getAddress = lib$6.getAddress; exports.getAddress = lib$6.getAddress;
exports.getCreate2Address = lib$6.getCreate2Address;
exports.getContractAddress = lib$6.getContractAddress; exports.getContractAddress = lib$6.getContractAddress;
exports.getIcapAddress = lib$6.getIcapAddress; exports.getIcapAddress = lib$6.getIcapAddress;
exports.isAddress = lib$6.isAddress; exports.isAddress = lib$6.isAddress;
@ -21334,77 +21345,78 @@
var utils_8 = utils$3.Interface; var utils_8 = utils$3.Interface;
var utils_9 = utils$3.ParamType; var utils_9 = utils$3.ParamType;
var utils_10 = utils$3.getAddress; var utils_10 = utils$3.getAddress;
var utils_11 = utils$3.getContractAddress; var utils_11 = utils$3.getCreate2Address;
var utils_12 = utils$3.getIcapAddress; var utils_12 = utils$3.getContractAddress;
var utils_13 = utils$3.isAddress; var utils_13 = utils$3.getIcapAddress;
var utils_14 = utils$3.base64; var utils_14 = utils$3.isAddress;
var utils_15 = utils$3.arrayify; var utils_15 = utils$3.base64;
var utils_16 = utils$3.concat; var utils_16 = utils$3.arrayify;
var utils_17 = utils$3.hexDataSlice; var utils_17 = utils$3.concat;
var utils_18 = utils$3.hexDataLength; var utils_18 = utils$3.hexDataSlice;
var utils_19 = utils$3.hexlify; var utils_19 = utils$3.hexDataLength;
var utils_20 = utils$3.hexStripZeros; var utils_20 = utils$3.hexlify;
var utils_21 = utils$3.hexValue; var utils_21 = utils$3.hexStripZeros;
var utils_22 = utils$3.hexZeroPad; var utils_22 = utils$3.hexValue;
var utils_23 = utils$3.isHexString; var utils_23 = utils$3.hexZeroPad;
var utils_24 = utils$3.joinSignature; var utils_24 = utils$3.isHexString;
var utils_25 = utils$3.zeroPad; var utils_25 = utils$3.joinSignature;
var utils_26 = utils$3.splitSignature; var utils_26 = utils$3.zeroPad;
var utils_27 = utils$3.stripZeros; var utils_27 = utils$3.splitSignature;
var utils_28 = utils$3.hashMessage; var utils_28 = utils$3.stripZeros;
var utils_29 = utils$3.id; var utils_29 = utils$3.hashMessage;
var utils_30 = utils$3.isValidName; var utils_30 = utils$3.id;
var utils_31 = utils$3.namehash; var utils_31 = utils$3.isValidName;
var utils_32 = utils$3.defaultPath; var utils_32 = utils$3.namehash;
var utils_33 = utils$3.entropyToMnemonic; var utils_33 = utils$3.defaultPath;
var utils_34 = utils$3.HDNode; var utils_34 = utils$3.entropyToMnemonic;
var utils_35 = utils$3.isValidMnemonic; var utils_35 = utils$3.HDNode;
var utils_36 = utils$3.mnemonicToEntropy; var utils_36 = utils$3.isValidMnemonic;
var utils_37 = utils$3.mnemonicToSeed; var utils_37 = utils$3.mnemonicToEntropy;
var utils_38 = utils$3.getJsonWalletAddress; var utils_38 = utils$3.mnemonicToSeed;
var utils_39 = utils$3.keccak256; var utils_39 = utils$3.getJsonWalletAddress;
var utils_40 = utils$3.Logger; var utils_40 = utils$3.keccak256;
var utils_41 = utils$3.sha256; var utils_41 = utils$3.Logger;
var utils_42 = utils$3.solidityKeccak256; var utils_42 = utils$3.sha256;
var utils_43 = utils$3.solidityPack; var utils_43 = utils$3.solidityKeccak256;
var utils_44 = utils$3.soliditySha256; var utils_44 = utils$3.solidityPack;
var utils_45 = utils$3.randomBytes; var utils_45 = utils$3.soliditySha256;
var utils_46 = utils$3.checkProperties; var utils_46 = utils$3.randomBytes;
var utils_47 = utils$3.deepCopy; var utils_47 = utils$3.checkProperties;
var utils_48 = utils$3.defineReadOnly; var utils_48 = utils$3.deepCopy;
var utils_49 = utils$3.getStatic; var utils_49 = utils$3.defineReadOnly;
var utils_50 = utils$3.resolveProperties; var utils_50 = utils$3.getStatic;
var utils_51 = utils$3.shallowCopy; var utils_51 = utils$3.resolveProperties;
var utils_52 = utils$3.RLP; var utils_52 = utils$3.shallowCopy;
var utils_53 = utils$3.computePublicKey; var utils_53 = utils$3.RLP;
var utils_54 = utils$3.recoverPublicKey; var utils_54 = utils$3.computePublicKey;
var utils_55 = utils$3.SigningKey; var utils_55 = utils$3.recoverPublicKey;
var utils_56 = utils$3.formatBytes32String; var utils_56 = utils$3.SigningKey;
var utils_57 = utils$3.nameprep; var utils_57 = utils$3.formatBytes32String;
var utils_58 = utils$3.parseBytes32String; var utils_58 = utils$3.nameprep;
var utils_59 = utils$3._toEscapedUtf8String; var utils_59 = utils$3.parseBytes32String;
var utils_60 = utils$3.toUtf8Bytes; var utils_60 = utils$3._toEscapedUtf8String;
var utils_61 = utils$3.toUtf8CodePoints; var utils_61 = utils$3.toUtf8Bytes;
var utils_62 = utils$3.toUtf8String; var utils_62 = utils$3.toUtf8CodePoints;
var utils_63 = utils$3.computeAddress; var utils_63 = utils$3.toUtf8String;
var utils_64 = utils$3.parseTransaction; var utils_64 = utils$3.computeAddress;
var utils_65 = utils$3.recoverAddress; var utils_65 = utils$3.parseTransaction;
var utils_66 = utils$3.serializeTransaction; var utils_66 = utils$3.recoverAddress;
var utils_67 = utils$3.commify; var utils_67 = utils$3.serializeTransaction;
var utils_68 = utils$3.formatEther; var utils_68 = utils$3.commify;
var utils_69 = utils$3.parseEther; var utils_69 = utils$3.formatEther;
var utils_70 = utils$3.formatUnits; var utils_70 = utils$3.parseEther;
var utils_71 = utils$3.parseUnits; var utils_71 = utils$3.formatUnits;
var utils_72 = utils$3.verifyMessage; var utils_72 = utils$3.parseUnits;
var utils_73 = utils$3.fetchJson; var utils_73 = utils$3.verifyMessage;
var utils_74 = utils$3.poll; var utils_74 = utils$3.fetchJson;
var utils_75 = utils$3.SupportedAlgorithms; var utils_75 = utils$3.poll;
var utils_76 = utils$3.UnicodeNormalizationForm; var utils_76 = utils$3.SupportedAlgorithms;
var utils_77 = utils$3.UnicodeNormalizationForm;
var _version$K = createCommonjsModule(function (module, exports) { var _version$K = createCommonjsModule(function (module, exports) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "ethers/5.0.0-beta.162"; exports.version = "ethers/5.0.0-beta.163";
}); });
var _version$L = unwrapExports(_version$K); var _version$L = unwrapExports(_version$K);
@ -21518,7 +21530,7 @@
var lib_2$m = lib$p.Signer; var lib_2$m = lib$p.Signer;
var lib_3$h = lib$p.Wallet; var lib_3$h = lib$p.Wallet;
var lib_4$e = lib$p.VoidSigner; var lib_4$e = lib$p.VoidSigner;
var lib_5$c = lib$p.getDefaultProvider; var lib_5$d = lib$p.getDefaultProvider;
var lib_6$8 = lib$p.providers; var lib_6$8 = lib$p.providers;
var lib_7$7 = lib$p.Contract; var lib_7$7 = lib$p.Contract;
var lib_8$5 = lib$p.ContractFactory; var lib_8$5 = lib$p.ContractFactory;
@ -21544,7 +21556,7 @@
exports.default = index$p; exports.default = index$p;
exports.errors = lib_12$2; exports.errors = lib_12$2;
exports.ethers = lib_1$p; exports.ethers = lib_1$p;
exports.getDefaultProvider = lib_5$c; exports.getDefaultProvider = lib_5$d;
exports.logger = lib_13$2; exports.logger = lib_13$2;
exports.providers = lib_6$8; exports.providers = lib_6$8;
exports.utils = lib_14$2; exports.utils = lib_14$2;

File diff suppressed because one or more lines are too long

@ -1 +1 @@
export declare const version = "ethers/5.0.0-beta.162"; export declare const version = "ethers/5.0.0-beta.163";

@ -1 +1 @@
export const version = "ethers/5.0.0-beta.162"; export const version = "ethers/5.0.0-beta.163";

@ -1,5 +1,5 @@
import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi"; import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi";
import { getAddress, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address"; import { getAddress, getCreate2Address, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address";
import * as base64 from "@ethersproject/base64"; import * as base64 from "@ethersproject/base64";
import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes"; import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes";
import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash"; import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash";
@ -24,4 +24,4 @@ import { CoerceFunc } from "@ethersproject/abi";
import { Bytes, BytesLike, Hexable } from "@ethersproject/bytes"; import { Bytes, BytesLike, Hexable } from "@ethersproject/bytes";
import { ConnectionInfo, FetchJsonResponse, OnceBlockable, PollOptions } from "@ethersproject/web"; import { ConnectionInfo, FetchJsonResponse, OnceBlockable, PollOptions } from "@ethersproject/web";
import { EncryptOptions, ProgressCallback } from "@ethersproject/json-wallets"; import { EncryptOptions, ProgressCallback } from "@ethersproject/json-wallets";
export { AbiCoder, defaultAbiCoder, Fragment, EventFragment, FunctionFragment, ParamType, FormatTypes, Logger, RLP, fetchJson, poll, checkProperties, deepCopy, defineReadOnly, getStatic, resolveProperties, shallowCopy, arrayify, concat, stripZeros, zeroPad, defaultPath, HDNode, SigningKey, Interface, base64, hexlify, isHexString, hexStripZeros, hexValue, hexZeroPad, hexDataLength, hexDataSlice, nameprep, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, isValidName, id, getAddress, getIcapAddress, getContractAddress, isAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, recoverAddress, computePublicKey, recoverPublicKey, verifyMessage, mnemonicToEntropy, entropyToMnemonic, isValidMnemonic, mnemonicToSeed, SupportedAlgorithms, UnicodeNormalizationForm, Bytes, BytesLike, Hexable, CoerceFunc, Indexed, ConnectionInfo, OnceBlockable, PollOptions, FetchJsonResponse, EncryptOptions, ProgressCallback }; export { AbiCoder, defaultAbiCoder, Fragment, EventFragment, FunctionFragment, ParamType, FormatTypes, Logger, RLP, fetchJson, poll, checkProperties, deepCopy, defineReadOnly, getStatic, resolveProperties, shallowCopy, arrayify, concat, stripZeros, zeroPad, defaultPath, HDNode, SigningKey, Interface, base64, hexlify, isHexString, hexStripZeros, hexValue, hexZeroPad, hexDataLength, hexDataSlice, nameprep, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, isValidName, id, getAddress, getIcapAddress, getContractAddress, getCreate2Address, isAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, recoverAddress, computePublicKey, recoverPublicKey, verifyMessage, mnemonicToEntropy, entropyToMnemonic, isValidMnemonic, mnemonicToSeed, SupportedAlgorithms, UnicodeNormalizationForm, Bytes, BytesLike, Hexable, CoerceFunc, Indexed, ConnectionInfo, OnceBlockable, PollOptions, FetchJsonResponse, EncryptOptions, ProgressCallback };

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi"; import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi";
import { getAddress, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address"; import { getAddress, getCreate2Address, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address";
import * as base64 from "@ethersproject/base64"; import * as base64 from "@ethersproject/base64";
import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes"; import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes";
import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash"; import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash";
@ -25,7 +25,7 @@ import { SupportedAlgorithms } from "@ethersproject/sha2";
import { UnicodeNormalizationForm } from "@ethersproject/strings"; import { UnicodeNormalizationForm } from "@ethersproject/strings";
//////////////////////// ////////////////////////
// Exports // Exports
export { AbiCoder, defaultAbiCoder, Fragment, EventFragment, FunctionFragment, ParamType, FormatTypes, Logger, RLP, fetchJson, poll, checkProperties, deepCopy, defineReadOnly, getStatic, resolveProperties, shallowCopy, arrayify, concat, stripZeros, zeroPad, defaultPath, HDNode, SigningKey, Interface, base64, hexlify, isHexString, hexStripZeros, hexValue, hexZeroPad, hexDataLength, hexDataSlice, nameprep, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, isValidName, id, getAddress, getIcapAddress, getContractAddress, isAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, recoverAddress, computePublicKey, recoverPublicKey, verifyMessage, mnemonicToEntropy, entropyToMnemonic, isValidMnemonic, mnemonicToSeed, export { AbiCoder, defaultAbiCoder, Fragment, EventFragment, FunctionFragment, ParamType, FormatTypes, Logger, RLP, fetchJson, poll, checkProperties, deepCopy, defineReadOnly, getStatic, resolveProperties, shallowCopy, arrayify, concat, stripZeros, zeroPad, defaultPath, HDNode, SigningKey, Interface, base64, hexlify, isHexString, hexStripZeros, hexValue, hexZeroPad, hexDataLength, hexDataSlice, nameprep, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, isValidName, id, getAddress, getIcapAddress, getContractAddress, getCreate2Address, isAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, recoverAddress, computePublicKey, recoverPublicKey, verifyMessage, mnemonicToEntropy, entropyToMnemonic, isValidMnemonic, mnemonicToSeed,
//////////////////////// ////////////////////////
// Enums // Enums
SupportedAlgorithms, UnicodeNormalizationForm, Indexed }; SupportedAlgorithms, UnicodeNormalizationForm, Indexed };

@ -1 +1 @@
export declare const version = "ethers/5.0.0-beta.162"; export declare const version = "ethers/5.0.0-beta.163";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "ethers/5.0.0-beta.162"; exports.version = "ethers/5.0.0-beta.163";

@ -1,5 +1,5 @@
import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi"; import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi";
import { getAddress, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address"; import { getAddress, getCreate2Address, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address";
import * as base64 from "@ethersproject/base64"; import * as base64 from "@ethersproject/base64";
import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes"; import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes";
import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash"; import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash";
@ -24,4 +24,4 @@ import { CoerceFunc } from "@ethersproject/abi";
import { Bytes, BytesLike, Hexable } from "@ethersproject/bytes"; import { Bytes, BytesLike, Hexable } from "@ethersproject/bytes";
import { ConnectionInfo, FetchJsonResponse, OnceBlockable, PollOptions } from "@ethersproject/web"; import { ConnectionInfo, FetchJsonResponse, OnceBlockable, PollOptions } from "@ethersproject/web";
import { EncryptOptions, ProgressCallback } from "@ethersproject/json-wallets"; import { EncryptOptions, ProgressCallback } from "@ethersproject/json-wallets";
export { AbiCoder, defaultAbiCoder, Fragment, EventFragment, FunctionFragment, ParamType, FormatTypes, Logger, RLP, fetchJson, poll, checkProperties, deepCopy, defineReadOnly, getStatic, resolveProperties, shallowCopy, arrayify, concat, stripZeros, zeroPad, defaultPath, HDNode, SigningKey, Interface, base64, hexlify, isHexString, hexStripZeros, hexValue, hexZeroPad, hexDataLength, hexDataSlice, nameprep, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, isValidName, id, getAddress, getIcapAddress, getContractAddress, isAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, recoverAddress, computePublicKey, recoverPublicKey, verifyMessage, mnemonicToEntropy, entropyToMnemonic, isValidMnemonic, mnemonicToSeed, SupportedAlgorithms, UnicodeNormalizationForm, Bytes, BytesLike, Hexable, CoerceFunc, Indexed, ConnectionInfo, OnceBlockable, PollOptions, FetchJsonResponse, EncryptOptions, ProgressCallback }; export { AbiCoder, defaultAbiCoder, Fragment, EventFragment, FunctionFragment, ParamType, FormatTypes, Logger, RLP, fetchJson, poll, checkProperties, deepCopy, defineReadOnly, getStatic, resolveProperties, shallowCopy, arrayify, concat, stripZeros, zeroPad, defaultPath, HDNode, SigningKey, Interface, base64, hexlify, isHexString, hexStripZeros, hexValue, hexZeroPad, hexDataLength, hexDataSlice, nameprep, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, formatBytes32String, parseBytes32String, hashMessage, namehash, isValidName, id, getAddress, getIcapAddress, getContractAddress, getCreate2Address, isAddress, formatEther, parseEther, formatUnits, parseUnits, commify, keccak256, sha256, randomBytes, solidityPack, solidityKeccak256, soliditySha256, splitSignature, joinSignature, parseTransaction, serializeTransaction, getJsonWalletAddress, computeAddress, recoverAddress, computePublicKey, recoverPublicKey, verifyMessage, mnemonicToEntropy, entropyToMnemonic, isValidMnemonic, mnemonicToSeed, SupportedAlgorithms, UnicodeNormalizationForm, Bytes, BytesLike, Hexable, CoerceFunc, Indexed, ConnectionInfo, OnceBlockable, PollOptions, FetchJsonResponse, EncryptOptions, ProgressCallback };

@ -19,6 +19,7 @@ exports.Interface = abi_1.Interface;
exports.ParamType = abi_1.ParamType; exports.ParamType = abi_1.ParamType;
var address_1 = require("@ethersproject/address"); var address_1 = require("@ethersproject/address");
exports.getAddress = address_1.getAddress; exports.getAddress = address_1.getAddress;
exports.getCreate2Address = address_1.getCreate2Address;
exports.getContractAddress = address_1.getContractAddress; exports.getContractAddress = address_1.getContractAddress;
exports.getIcapAddress = address_1.getIcapAddress; exports.getIcapAddress = address_1.getIcapAddress;
exports.isAddress = address_1.isAddress; exports.isAddress = address_1.isAddress;

@ -52,7 +52,7 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"tarballHash": "0x795543e9aa9e30f91995b293d7b25bdadb8cc4ea5da9333bdec70293dc06e8eb", "tarballHash": "0xea25cec628fb9fe5d927142276ce133dd4c9b1a84e46e01a0ab65c9d91840f88",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.0-beta.162" "version": "5.0.0-beta.163"
} }

@ -1 +1 @@
export const version = "ethers/5.0.0-beta.162"; export const version = "ethers/5.0.0-beta.163";

@ -1 +1 @@
export declare const version = "testcases/5.0.0-beta.135"; export declare const version = "testcases/5.0.0-beta.136";

@ -1 +1 @@
export const version = "testcases/5.0.0-beta.135"; export const version = "testcases/5.0.0-beta.136";

@ -3,8 +3,8 @@ import fs from "fs";
import { resolve } from "path"; import { resolve } from "path";
import { saveTests } from ".."; import { saveTests } from "..";
const testcases = []; const testcases = [];
["en", "es", "fr", "it", "ja", "ko", "zh_cn", "zh_tw"].forEach((locale) => { ["cz", "en", "es", "fr", "it", "ja", "ko", "zh_cn", "zh_tw"].forEach((locale) => {
let content = fs.readFileSync(resolve(__dirname, "../input/wordlists", "lang-" + locale + ".txt")).toString(); let content = fs.readFileSync(resolve(__dirname, "../../input/wordlists", "lang-" + locale + ".txt")).toString();
testcases.push({ testcases.push({
content: content, content: content,
locale: locale locale: locale

@ -6,7 +6,7 @@ import { randomBytes, randomHexString, randomNumber } from "./random";
export { randomBytes, randomHexString, randomNumber }; export { randomBytes, randomHexString, randomNumber };
export function saveTests(tag, data) { export function saveTests(tag, data) {
//let filename = path.resolve(__dirname, 'testcases', tag + '.json.gz'); //let filename = path.resolve(__dirname, 'testcases', tag + '.json.gz');
let filename = path.resolve('../testcases', tag + '.json.gz'); let filename = path.resolve(__dirname, '../testcases', tag + '.json.gz');
fs.writeFileSync(filename, zlib.gzipSync(JSON.stringify(data, undefined, ' ') + '\n')); fs.writeFileSync(filename, zlib.gzipSync(JSON.stringify(data, undefined, ' ') + '\n'));
console.log('Save testcase: ' + filename); console.log('Save testcase: ' + filename);
} }

@ -1 +1 @@
export declare const version = "testcases/5.0.0-beta.135"; export declare const version = "testcases/5.0.0-beta.136";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "testcases/5.0.0-beta.135"; exports.version = "testcases/5.0.0-beta.136";

@ -7,8 +7,8 @@ var fs_1 = __importDefault(require("fs"));
var path_1 = require("path"); var path_1 = require("path");
var __1 = require(".."); var __1 = require("..");
var testcases = []; var testcases = [];
["en", "es", "fr", "it", "ja", "ko", "zh_cn", "zh_tw"].forEach(function (locale) { ["cz", "en", "es", "fr", "it", "ja", "ko", "zh_cn", "zh_tw"].forEach(function (locale) {
var content = fs_1.default.readFileSync(path_1.resolve(__dirname, "../input/wordlists", "lang-" + locale + ".txt")).toString(); var content = fs_1.default.readFileSync(path_1.resolve(__dirname, "../../input/wordlists", "lang-" + locale + ".txt")).toString();
testcases.push({ testcases.push({
content: content, content: content,
locale: locale locale: locale

@ -12,7 +12,7 @@ exports.randomHexString = random_1.randomHexString;
exports.randomNumber = random_1.randomNumber; exports.randomNumber = random_1.randomNumber;
function saveTests(tag, data) { function saveTests(tag, data) {
//let filename = path.resolve(__dirname, 'testcases', tag + '.json.gz'); //let filename = path.resolve(__dirname, 'testcases', tag + '.json.gz');
var filename = path_1.default.resolve('../testcases', tag + '.json.gz'); var filename = path_1.default.resolve(__dirname, '../testcases', tag + '.json.gz');
fs_1.default.writeFileSync(filename, browserify_zlib_1.default.gzipSync(JSON.stringify(data, undefined, ' ') + '\n')); fs_1.default.writeFileSync(filename, browserify_zlib_1.default.gzipSync(JSON.stringify(data, undefined, ' ') + '\n'));
console.log('Save testcase: ' + filename); console.log('Save testcase: ' + filename);
} }

@ -38,7 +38,7 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"tarballHash": "0xca982fbef69e487dfb86edc202411eca47628c6ebb1fe369dd3fa37b5fd9c45e", "tarballHash": "0x94352bec3380a7007a97eb4c344dbd5758036941cc0e594d83132b14f32b7f56",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.0-beta.135" "version": "5.0.0-beta.136"
} }

@ -1 +1 @@
export const version = "testcases/5.0.0-beta.135"; export const version = "testcases/5.0.0-beta.136";

@ -1 +1 @@
export declare const version = "tests/5.0.0-beta.144"; export declare const version = "tests/5.0.0-beta.145";

@ -1 +1 @@
export const version = "tests/5.0.0-beta.144"; export const version = "tests/5.0.0-beta.145";

@ -37,7 +37,7 @@ export function Reporter(runner) {
} }
runner.on('suite', function (suite) { runner.on('suite', function (suite) {
if (!suite.title) { if (!suite.title) {
log('Testing: Found ' + suite.suites.length + ' test suites'); log('Testing: ' + (suite.suites ? 'Found ' + suite.suites.length + ' test suites' : ''));
} }
else { else {
let filename = (suite.file || '').split('/').pop(); let filename = (suite.file || '').split('/').pop();

@ -0,0 +1,18 @@
'use strict';
import assert from "assert";
import { resolve } from "path";
import fs from "fs";
import { solc } from "@ethersproject/cli";
describe('Test solc', function () {
it('compiles contracts with imported library', function () {
this.timeout(1200000);
const filename = resolve(__dirname, '../contracts/test-solc/consumer.sol');
const source = fs.readFileSync(filename).toString();
const code = solc.compile(source, { filename, optimize: true })
.filter(((contract) => contract.name === 'Consumer'))[0];
const { bytecode, interface: iface } = code;
assert(bytecode.length > 2, 'The bytecode should should have a length');
assert(bytecode.startsWith('0x'), 'The bytecode should start with 0x');
assert(iface.functions['f()'], 'The interface should have function f()');
});
});

@ -18,14 +18,4 @@ describe('Check Wordlists', function () {
let wordlist = (ethers.wordlists)[test.locale]; let wordlist = (ethers.wordlists)[test.locale];
checkWordlist(test.content, wordlist); checkWordlist(test.content, wordlist);
}); });
/*
checkWordlist('./wordlists/lang-es.txt', ethers.wordlists.es);
checkWordlist('./wordlists/lang-fr.txt', ethers.wordlists.fr);
checkWordlist('./wordlists/lang-it.txt', ethers.wordlists.it);
checkWordlist('./wordlists/lang-ja.txt', ethers.wordlists.ja);
checkWordlist('./wordlists/lang-ko.txt', ethers.wordlists.ko);
checkWordlist('./wordlists/lang-zh_cn.txt', ethers.wordlists.zh);
checkWordlist('./wordlists/lang-zh_cn.txt', ethers.wordlists.zh_cn);
checkWordlist('./wordlists/lang-zh_tw.txt', ethers.wordlists.zh_tw);
*/
}); });

@ -1 +1 @@
export declare const version = "tests/5.0.0-beta.144"; export declare const version = "tests/5.0.0-beta.145";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "tests/5.0.0-beta.144"; exports.version = "tests/5.0.0-beta.145";

@ -38,7 +38,7 @@ function Reporter(runner) {
} }
runner.on('suite', function (suite) { runner.on('suite', function (suite) {
if (!suite.title) { if (!suite.title) {
log('Testing: Found ' + suite.suites.length + ' test suites'); log('Testing: ' + (suite.suites ? 'Found ' + suite.suites.length + ' test suites' : ''));
} }
else { else {
var filename = (suite.file || '').split('/').pop(); var filename = (suite.file || '').split('/').pop();

@ -0,0 +1,22 @@
'use strict';
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var assert_1 = __importDefault(require("assert"));
var path_1 = require("path");
var fs_1 = __importDefault(require("fs"));
var cli_1 = require("@ethersproject/cli");
describe('Test solc', function () {
it('compiles contracts with imported library', function () {
this.timeout(1200000);
var filename = path_1.resolve(__dirname, '../contracts/test-solc/consumer.sol');
var source = fs_1.default.readFileSync(filename).toString();
var code = cli_1.solc.compile(source, { filename: filename, optimize: true })
.filter((function (contract) { return contract.name === 'Consumer'; }))[0];
var bytecode = code.bytecode, iface = code.interface;
assert_1.default(bytecode.length > 2, 'The bytecode should should have a length');
assert_1.default(bytecode.startsWith('0x'), 'The bytecode should start with 0x');
assert_1.default(iface.functions['f()'], 'The interface should have function f()');
});
});

@ -22,14 +22,4 @@ describe('Check Wordlists', function () {
var wordlist = (ethers_1.ethers.wordlists)[test.locale]; var wordlist = (ethers_1.ethers.wordlists)[test.locale];
checkWordlist(test.content, wordlist); checkWordlist(test.content, wordlist);
}); });
/*
checkWordlist('./wordlists/lang-es.txt', ethers.wordlists.es);
checkWordlist('./wordlists/lang-fr.txt', ethers.wordlists.fr);
checkWordlist('./wordlists/lang-it.txt', ethers.wordlists.it);
checkWordlist('./wordlists/lang-ja.txt', ethers.wordlists.ja);
checkWordlist('./wordlists/lang-ko.txt', ethers.wordlists.ko);
checkWordlist('./wordlists/lang-zh_cn.txt', ethers.wordlists.zh);
checkWordlist('./wordlists/lang-zh_cn.txt', ethers.wordlists.zh_cn);
checkWordlist('./wordlists/lang-zh_tw.txt', ethers.wordlists.zh_tw);
*/
}); });

@ -4,8 +4,8 @@
"ethers": "./lib/browser-ethers.js" "ethers": "./lib/browser-ethers.js"
}, },
"dependencies": { "dependencies": {
"@ethersproject/testcases": ">=5.0.0-beta.131",
"@ethersproject/cli": ">=5.0.0-beta.145", "@ethersproject/cli": ">=5.0.0-beta.145",
"@ethersproject/testcases": ">=5.0.0-beta.131",
"@types/mocha": "^5.2.0", "@types/mocha": "^5.2.0",
"ethers": ">=5.0.0-beta.156", "ethers": ">=5.0.0-beta.156",
"mocha-phantomjs-core": "2.1.2" "mocha-phantomjs-core": "2.1.2"
@ -35,7 +35,7 @@
"scripts": { "scripts": {
"test": "exit 1" "test": "exit 1"
}, },
"tarballHash": "0x5d5efc5d4607c61d3b5ed6b7af4830c06e2164b8578cf34f83410ecf27754a80", "tarballHash": "0xb952be2aa3827db142206825efd73b9b1d3071631d1ae6cf7c848659aa4fdccc",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.0-beta.144" "version": "5.0.0-beta.145"
} }

@ -1 +1 @@
export const version = "tests/5.0.0-beta.144"; export const version = "tests/5.0.0-beta.145";

@ -1 +1 @@
export declare const version = "wordlists/5.0.0-beta.134"; export declare const version = "wordlists/5.0.0-beta.135";

@ -1 +1 @@
export const version = "wordlists/5.0.0-beta.134"; export const version = "wordlists/5.0.0-beta.135";

@ -2,6 +2,7 @@
// Wordlists // Wordlists
// See: https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md // See: https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md
import { logger, Wordlist } from "./wordlist"; import { logger, Wordlist } from "./wordlist";
import { langCz as cz } from "./lang-cz";
import { langEn as en } from "./lang-en"; import { langEn as en } from "./lang-en";
import { langEs as es } from "./lang-es"; import { langEs as es } from "./lang-es";
import { langFr as fr } from "./lang-fr"; import { langFr as fr } from "./lang-fr";
@ -10,6 +11,7 @@ import { langKo as ko } from "./lang-ko";
import { langIt as it } from "./lang-it"; import { langIt as it } from "./lang-it";
import { langZhCn as zh_cn, langZhTw as zh_tw } from "./lang-zh"; import { langZhCn as zh_cn, langZhTw as zh_tw } from "./lang-zh";
const wordlists = { const wordlists = {
cz: cz,
en: en, en: en,
es: es, es: es,
fr: fr, fr: fr,

@ -0,0 +1,8 @@
import { Wordlist } from "./wordlist";
declare class LangCz extends Wordlist {
constructor();
getWord(index: number): string;
getWordIndex(word: string): number;
}
declare const langCz: LangCz;
export { langCz };

File diff suppressed because one or more lines are too long

@ -1 +1 @@
export declare const version = "wordlists/5.0.0-beta.134"; export declare const version = "wordlists/5.0.0-beta.135";

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "wordlists/5.0.0-beta.134"; exports.version = "wordlists/5.0.0-beta.135";

@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var wordlist_1 = require("./wordlist"); var wordlist_1 = require("./wordlist");
exports.logger = wordlist_1.logger; exports.logger = wordlist_1.logger;
exports.Wordlist = wordlist_1.Wordlist; exports.Wordlist = wordlist_1.Wordlist;
var lang_cz_1 = require("./lang-cz");
var lang_en_1 = require("./lang-en"); var lang_en_1 = require("./lang-en");
var lang_es_1 = require("./lang-es"); var lang_es_1 = require("./lang-es");
var lang_fr_1 = require("./lang-fr"); var lang_fr_1 = require("./lang-fr");
@ -13,6 +14,7 @@ var lang_ko_1 = require("./lang-ko");
var lang_it_1 = require("./lang-it"); var lang_it_1 = require("./lang-it");
var lang_zh_1 = require("./lang-zh"); var lang_zh_1 = require("./lang-zh");
var wordlists = { var wordlists = {
cz: lang_cz_1.langCz,
en: lang_en_1.langEn, en: lang_en_1.langEn,
es: lang_es_1.langEs, es: lang_es_1.langEs,
fr: lang_fr_1.langFr, fr: lang_fr_1.langFr,

8
packages/wordlists/lib/lang-cz.d.ts vendored Normal file

@ -0,0 +1,8 @@
import { Wordlist } from "./wordlist";
declare class LangCz extends Wordlist {
constructor();
getWord(index: number): string;
getWordIndex(word: string): number;
}
declare const langCz: LangCz;
export { langCz };

File diff suppressed because one or more lines are too long

@ -28,7 +28,7 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"tarballHash": "0x7915aa38b2a31078307500890f5b1559134334e04d86062e3b24e4115b236389", "tarballHash": "0xe32bd1fd981edfe799027c0748ce31c33478b5af30df8768b972b175448f0c42",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"version": "5.0.0-beta.134" "version": "5.0.0-beta.135"
} }

@ -1 +1 @@
export const version = "wordlists/5.0.0-beta.134"; export const version = "wordlists/5.0.0-beta.135";