Updated dist files (sorted package.json to reduce package version change chatter).

This commit is contained in:
Richard Moore 2019-11-23 21:38:13 +09:00
parent 2f0e679f0b
commit f308ba3540
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
290 changed files with 1687 additions and 1383 deletions

@ -69,15 +69,17 @@ function setupConfig(outDir, moduleType, targetType) {
if (info._ethers_nobuild) { return; }
if (info.browser) {
if (typeof(info.browser) === "string") {
info.browser = update(info.browser);
[ "browser", "_browser" ].forEach((key) => {
if (info[key]) {
if (typeof(info[key]) === "string") {
info[key] = update(info[key]);
} else {
for (let key in info.browser) {
info.browser[key] = update(info.browser[key]);
for (let k in info[key]) {
info[key][k] = update(info[key][k]);
}
}
}
});
savePackage(dirname, info);
let path = resolve(__dirname, "../packages", dirname, "tsconfig.json");

44
admin/cmds/set-option.js Executable file

@ -0,0 +1,44 @@
const { setupBuild } = require("../build");
const { loadPackage, savePackage } = require("../local");
const arg = process.argv[2];
(async function() {
switch(arg) {
case "esm":
setupBuild(true);
break;
case "cjs":
setupBuild(false);
break;
case "browser-lang-en": {
const info = loadPackage("wordlists");
if (info._browser) {
info.browser = info._browser;
delete info._browser;
savePackage("wordlists", info);
}
break;
}
case "browser-lang-all": {
const info = loadPackage("wordlists");
if (info.browser) {
info._browser = info.browser;
delete info.browser;
savePackage("wordlists", info);
}
break;
}
default:
console.log("unknown option");
return 1;
}
return 0;
})().then((result) => {
process.exit(result);
});

@ -8,8 +8,14 @@ const targets = sourceEthers.match(/export\s*{\s*((.|\s)*)}/)[1].trim();
const output = `"use strict";
// To modify this file, you must update ./admin/cmds/update-exports.js
import * as ethers from "./ethers";
if ((<any>global)._ethers == null) {
(<any>global)._ethers = ethers;
}
export { ethers };
export {

@ -15,13 +15,7 @@ const colorify = require("./log").colorify;
function getScrypt(message, password, salt) {
let progressBar = prompt.getProgressBar(message);
return new Promise((resolve, reject) => {
scrypt(Buffer.from(password), Buffer.from(salt), (1 << 17), 8, 1, 64, (error, progress, key) => {
if (error) { return reject(error); }
progressBar(progress);
if (key) { resolve(key); }
});
});
return scrypt.scrypt(Buffer.from(password), Buffer.from(salt), (1 << 17), 8, 1, 64, progressBar);
}
function Config(filename) {

@ -15,8 +15,20 @@ const keccak256 = (function() {
const { dirnames, loadPackage, ROOT } = require("./depgraph");
const { resolve, saveJson } = require("./utils");
function sorted(obj) {
if (Array.isArray(obj)) { return obj.map(sorted); }
if (obj == null || typeof(obj) !== "object") { return obj; }
const keys = Object.keys(obj);
keys.sort();
const result = { };
keys.forEach((key) => { result[key] = sorted(obj[key]); });
return result;
}
function savePackage(dirname, info) {
return saveJson(resolve(ROOT, dirname, "package.json"), info);
return saveJson(resolve(ROOT, dirname, "package.json"), sorted(info));
}
async function createTarball(dirname) {

@ -14,7 +14,7 @@
"build-all": "npm run build-esm && npm run build-cjs",
"clean": "node ./admin/cmds/reset-build.js && tsc --build --clean ./tsconfig.project.json",
"_dist_prepare": "npm run clean && npm run bootstrap && npm run build && node ./admin/cmds/update-exports.js",
"_dist_ethers": "rollup -c && rollup -c --configMinify && rollup -c --configModule && rollup -c --configModule --configMinify && rollup -c rollup-wordlists.config.js",
"_dist_ethers": "npm run _distMinLangAll && npm run _distMinLangEn && rollup -c && rollup -c --configModule",
"_dist_tests": "rollup -c --configTest && rollup -c --configTest --configMinify && rollup -c --configTest --configModule && rollup -c --configTest --configModule --configMinify",
"_test_prepare": "npm run _dist_prepare && npm run _dist_tests",
"_test_node": "cd packages/tests && mocha --no-colors --reporter ./reporter ./lib/test-*.js",

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

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

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

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

@ -1,11 +1,5 @@
{
"name": "@ethersproject/abi",
"version": "5.0.0-beta.141",
"description": "Utilities and Classes for parsing, formatting and managing Ethereum ABIs.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/address": ">=5.0.0-beta.128",
"@ethersproject/bignumber": ">=5.0.0-beta.130",
@ -17,12 +11,16 @@
"@ethersproject/properties": ">=5.0.0-beta.131",
"@ethersproject/strings": ">=5.0.0-beta.130"
},
"description": "Utilities and Classes for parsing, formatting and managing Ethereum ABIs.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/abi",
"publishConfig": {
"access": "public"
},
@ -30,8 +28,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0xadfbb4cb8f2b47899564234f2856265474ba5f2530b2658e43ae931b929b4a93",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x8ab039f54add63e60520103856dcec83107f301a5d712a92cc6207a0ddbf3ffc"
"version": "5.0.0-beta.142"
}

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

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

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

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

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

@ -1,11 +1,5 @@
{
"name": "@ethersproject/abstract-provider",
"version": "5.0.0-beta.134",
"description": "An Abstract Class for describing an Ethereum Provider for ethers.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/bignumber": ">=5.0.0-beta.130",
"@ethersproject/bytes": ">=5.0.0-beta.129",
@ -15,12 +9,16 @@
"@ethersproject/transactions": ">=5.0.0-beta.128",
"@ethersproject/web": ">=5.0.0-beta.129"
},
"description": "An Abstract Class for describing an Ethereum Provider for ethers.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/abstract-provider",
"publishConfig": {
"access": "public"
},
@ -28,8 +26,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0xc5b12b9ba34634fee7767507821dcf075ec7d41a3ce2bcb9bd60eeac30aa9f99",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x8046905ec7f3ebbe9c3657de9487b1e859a17e2fe71665bc074a9ae682241cf6"
"version": "5.0.0-beta.135"
}

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

@ -1 +1 @@
export declare const version = "abstract-signer/5.0.0-beta.136";
export declare const version = "abstract-signer/5.0.0-beta.137";

@ -1 +1 @@
export const version = "abstract-signer/5.0.0-beta.136";
export const version = "abstract-signer/5.0.0-beta.137";

@ -1 +1 @@
export declare const version = "abstract-signer/5.0.0-beta.136";
export declare const version = "abstract-signer/5.0.0-beta.137";

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

@ -1,11 +1,5 @@
{
"name": "@ethersproject/abstract-signer",
"version": "5.0.0-beta.136",
"description": "An Abstract Class for desribing an Ethereum Signer for ethers.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/abstract-provider": ">=5.0.0-beta.131",
"@ethersproject/bignumber": ">=5.0.0-beta.130",
@ -13,12 +7,16 @@
"@ethersproject/logger": ">=5.0.0-beta.129",
"@ethersproject/properties": ">=5.0.0-beta.131"
},
"description": "An Abstract Class for desribing an Ethereum Signer for ethers.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/abstract-signer",
"publishConfig": {
"access": "public"
},
@ -26,8 +24,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x715e7c449f450ad4bf5db8da4e27d7b86a9eebeb911eab63a913791dcbe4f6e9",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0xb15621c33c076e145b49f77d1fb608f584ae52db026ba52673102eed4bdff2e9"
"version": "5.0.0-beta.137"
}

@ -1 +1 @@
export const version = "abstract-signer/5.0.0-beta.136";
export const version = "abstract-signer/5.0.0-beta.137";

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

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

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

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

@ -1,11 +1,5 @@
{
"name": "@ethersproject/address",
"version": "5.0.0-beta.132",
"description": "Utilities for handling Ethereum Addresses for ethers.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/bignumber": ">=5.0.0-beta.130",
"@ethersproject/bytes": ">=5.0.0-beta.129",
@ -14,12 +8,16 @@
"@ethersproject/rlp": ">=5.0.0-beta.126",
"bn.js": "^4.4.0"
},
"description": "Utilities for handling Ethereum Addresses for ethers.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/address",
"publishConfig": {
"access": "public"
},
@ -27,8 +25,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x42fd431912caff42462eff8a503ff701df38fe1a9b58443d7318613ce45c87c3",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x525c2a6354d1fb020e134ffa657ab8283c8448da95c2fd8b7e4291a71ced794e"
"version": "5.0.0-beta.133"
}

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

@ -1 +1 @@
export declare const version = "base64/5.0.0-beta.130";
export declare const version = "base64/5.0.0-beta.131";

@ -1 +1 @@
export const version = "base64/5.0.0-beta.130";
export const version = "base64/5.0.0-beta.131";

@ -1 +1 @@
export declare const version = "base64/5.0.0-beta.130";
export declare const version = "base64/5.0.0-beta.131";

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

@ -1,21 +1,19 @@
{
"name": "@ethersproject/base64",
"version": "5.0.0-beta.130",
"description": "Base64 coder.",
"main": "./lib/index.js",
"author": "Richard Moore <me@ricmoo.com>",
"browser": "./lib/browser.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@ethersproject/bytes": ">=5.0.0-beta.129"
},
"description": "Base64 coder.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/base64",
"publishConfig": {
"access": "public"
},
@ -23,8 +21,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x90fb7a8a6bf23674c41f1b3916e61b97dbbc608a09eddaf1eeece9b26ce4b2a4",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x16926fbbdb8cafe3a8984e518fcb38ead0f21de2589b91dd92ca4cead71827b5"
"version": "5.0.0-beta.131"
}

@ -1 +1 @@
export const version = "base64/5.0.0-beta.130";
export const version = "base64/5.0.0-beta.131";

@ -1 +1 @@
export declare const version = "basex/5.0.0-beta.130";
export declare const version = "basex/5.0.0-beta.131";

@ -1 +1 @@
export const version = "basex/5.0.0-beta.130";
export const version = "basex/5.0.0-beta.131";

@ -1 +1 @@
export declare const version = "basex/5.0.0-beta.130";
export declare const version = "basex/5.0.0-beta.131";

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

@ -1,21 +1,19 @@
{
"name": "@ethersproject/basex",
"version": "5.0.0-beta.130",
"description": "Base-X without Buffer.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/bytes": ">=5.0.0-beta.129",
"@ethersproject/properties": ">=5.0.0-beta.131"
},
"description": "Base-X without Buffer.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/basex",
"publishConfig": {
"access": "public"
},
@ -23,8 +21,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0xb05390e395a38be994749f03651ccc3c7d744517c9437e0fe1d1a7679266a33f",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0xe84815357f45e6134c535f478bc7c8f7fe72e47c8de1064756fd6aff0012f001"
"version": "5.0.0-beta.131"
}

@ -1 +1 @@
export const version = "basex/5.0.0-beta.130";
export const version = "basex/5.0.0-beta.131";

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

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

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

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

@ -1,24 +1,22 @@
{
"name": "@ethersproject/bignumber",
"version": "5.0.0-beta.134",
"description": "BigNumber library used in ethers.js.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/bytes": ">=5.0.0-beta.129",
"@ethersproject/logger": ">=5.0.0-beta.129",
"@ethersproject/properties": ">=5.0.0-beta.131",
"bn.js": "^4.4.0"
},
"description": "BigNumber library used in ethers.js.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"bignumber",
"bn"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/bignumber",
"publishConfig": {
"access": "public"
},
@ -26,8 +24,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x1214cf8d52495289b2d521d7fa88c7a7df8e36784c05b35e598b1a6b44b96fe7",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x953ebc5751e6ae80be6e3749a560efb4845a43a460a03815ca4e265116c09d06"
"version": "5.0.0-beta.135"
}

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

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

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

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

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

@ -1,22 +1,18 @@
{
"name": "@ethersproject/bytes",
"version": "5.0.0-beta.133",
"description": "Bytes utility functions for ethers.",
"main": "./lib/index.js",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"auto-build": "npm run build -- -w",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/logger": ">=5.0.0-beta.129"
},
"description": "Bytes utility functions for ethers.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/bytes",
"publishConfig": {
"access": "public"
},
@ -24,8 +20,12 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"auto-build": "npm run build -- -w",
"build": "tsc -p ./tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x706b18c91a398c6d3710720431ca7821f067900b943738efccf7668af73bbb6e",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x3e8a397f275035835198e5399652aec1e0427ef473f6abfaccf764cbeecc5b89"
"version": "5.0.0-beta.134"
}

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

@ -1 +1 @@
export declare const version = "cli/5.0.0-beta.146";
export declare const version = "cli/5.0.0-beta.147";

@ -1 +1 @@
export const version = "cli/5.0.0-beta.146";
export const version = "cli/5.0.0-beta.147";

@ -1 +1 @@
export declare const version = "cli/5.0.0-beta.146";
export declare const version = "cli/5.0.0-beta.147";

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

@ -1,11 +1,5 @@
{
"name": "@ethersproject/cli",
"version": "5.0.0-beta.146",
"description": "Command-Line Interface scripts and releated utilities.",
"main": "./lib/index.js",
"scripts": {
"test": "exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"bin": {
"ethers": "./lib/bin/ethers.js",
"ethers-ens": "./lib/bin/ethers-ens.js",
@ -19,16 +13,20 @@
"solc": "0.5.10",
"solidity-parser-antlr": "^0.3.2"
},
"description": "Command-Line Interface scripts and releated utilities.",
"devDependencies": {
"@types/node": "^12.7.4"
},
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers",
"cli"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/cli",
"publishConfig": {
"access": "public"
},
@ -36,8 +34,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "exit 1"
},
"tarballHash": "0xd589ee9af478394c353a3630154dd2d561c557ef2539adfd1abe0d0f3b63869a",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x664e42117580037f716878bd130f188bc75c443c1d1994bb9fe7f512e6164c8e"
"version": "5.0.0-beta.147"
}

@ -1 +1 @@
export const version = "cli/5.0.0-beta.146";
export const version = "cli/5.0.0-beta.147";

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

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

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

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

@ -1,20 +1,18 @@
{
"name": "@ethersproject/constants",
"version": "5.0.0-beta.131",
"description": "Common Ethereum constants used for ethers.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/bignumber": ">=5.0.0-beta.130"
},
"description": "Common Ethereum constants used for ethers.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/constants",
"publishConfig": {
"access": "public"
},
@ -22,8 +20,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x8fc053bcdab1400b86aea6af717a44c8eeed84a193ecf76648819df9afa20e14",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0xb7d3db857e3ecff3650086cd1c2c1e60aa3061a73708a30ec839128ea9763d91"
"version": "5.0.0-beta.132"
}

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

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

@ -1 +1 @@
export const version = "contracts/5.0.0-beta.141";
export const version = "contracts/5.0.0-beta.142";

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

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

@ -1,11 +1,5 @@
{
"name": "@ethersproject/contracts",
"version": "5.0.0-beta.141",
"description": "Contract abstraction meta-class for ethers.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/abi": ">=5.0.0-beta.137",
"@ethersproject/abstract-provider": ">=5.0.0-beta.131",
@ -18,12 +12,16 @@
"@ethersproject/properties": ">=5.0.0-beta.131",
"@ethersproject/transactions": ">=5.0.0-beta.128"
},
"description": "Contract abstraction meta-class for ethers.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/contracts",
"publishConfig": {
"access": "public"
},
@ -31,8 +29,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x0253325f52e33a166dd5df2cbc51da741c8810e1e96dccd867248a340596394d",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x17b50f94b2c4aa5d24fe5b3621bbcf0a5043003c133bd288908c88cb32d5f5a9"
"version": "5.0.0-beta.142"
}

@ -1 +1 @@
export const version = "contracts/5.0.0-beta.141";
export const version = "contracts/5.0.0-beta.142";

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

@ -1 +1 @@
export const version = "errors/5.0.0-beta.131";
export const version = "errors/5.0.0-beta.132";

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

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

@ -1,17 +1,15 @@
{
"name": "@ethersproject/errors",
"version": "5.0.0-beta.131",
"author": "Richard Moore <me@ricmoo.com>",
"description": "Error utility functions for ethers.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/errors",
"publishConfig": {
"access": "public"
},
@ -19,8 +17,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x28c97ff0e0dc05d3b94a1d22bf6c64f9c44eec9120e325307ee09f183fe9e18f",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x2a7a244a6cad216c7f2da4d69f8014f1eda1655287149889e13315cad45e44e4"
"version": "5.0.0-beta.132"
}

@ -1 +1 @@
export const version = "errors/5.0.0-beta.131";
export const version = "errors/5.0.0-beta.132";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -3455,7 +3455,7 @@ var bn = createCommonjsModule(function (module) {
});
var bn_1 = bn.BN;
const version = "logger/5.0.0-beta.132";
const version = "logger/5.0.0-beta.133";
"use strict";
let _permanentCensorErrors = false;
@ -3725,7 +3725,7 @@ var lib_esm = /*#__PURE__*/Object.freeze({
Logger: Logger
});
const version$1 = "bytes/5.0.0-beta.133";
const version$1 = "bytes/5.0.0-beta.134";
"use strict";
const logger = new Logger(version$1);
@ -4124,7 +4124,7 @@ var lib_esm$1 = /*#__PURE__*/Object.freeze({
joinSignature: joinSignature
});
const version$2 = "bignumber/5.0.0-beta.134";
const version$2 = "bignumber/5.0.0-beta.135";
"use strict";
const logger$1 = new Logger(version$2);
@ -4628,7 +4628,7 @@ class FixedNumber {
}
}
const version$3 = "properties/5.0.0-beta.134";
const version$3 = "properties/5.0.0-beta.135";
"use strict";
const logger$3 = new Logger(version$3);
@ -4739,7 +4739,7 @@ var lib_esm$2 = /*#__PURE__*/Object.freeze({
Description: Description
});
const version$4 = "abi/5.0.0-beta.141";
const version$4 = "abi/5.0.0-beta.142";
"use strict";
const logger$4 = new Logger(version$4);
@ -6198,7 +6198,7 @@ var index = /*#__PURE__*/Object.freeze({
decode: decode
});
const version$5 = "address/5.0.0-beta.132";
const version$5 = "address/5.0.0-beta.133";
"use strict";
const logger$6 = new Logger(version$5);
@ -6612,7 +6612,7 @@ class NumberCoder extends Coder {
}
}
const version$6 = "strings/5.0.0-beta.134";
const version$6 = "strings/5.0.0-beta.135";
"use strict";
const logger$8 = new Logger(version$6);
@ -7133,7 +7133,7 @@ class AbiCoder {
}
const defaultAbiCoder = new AbiCoder();
const version$7 = "hash/5.0.0-beta.132";
const version$7 = "hash/5.0.0-beta.133";
"use strict";
const logger$a = new Logger(version$7);
@ -7557,7 +7557,7 @@ class Interface {
"use strict";
const version$8 = "abstract-provider/5.0.0-beta.134";
const version$8 = "abstract-provider/5.0.0-beta.135";
"use strict";
const logger$c = new Logger(version$8);
@ -7634,10 +7634,10 @@ class Provider {
}
}
const version$9 = "abstract-signer/5.0.0-beta.136";
const version$9 = "abstract-signer/5.0.0-beta.137";
"use strict";
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
var __awaiter = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@ -7812,7 +7812,7 @@ class VoidSigner extends Signer {
}
}
const version$a = "contracts/5.0.0-beta.141";
const version$a = "contracts/5.0.0-beta.142";
"use strict";
const logger$e = new Logger(version$a);
@ -9832,7 +9832,7 @@ hash.ripemd160 = hash.ripemd.ripemd160;
var _version = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "sha2/5.0.0-beta.132";
exports.version = "sha2/5.0.0-beta.133";
});
var _version$1 = unwrapExports(_version);
@ -12305,7 +12305,7 @@ elliptic.eddsa = eddsa;
});
var elliptic_2 = elliptic_1.ec;
const version$c = "signing-key/5.0.0-beta.133";
const version$c = "signing-key/5.0.0-beta.134";
"use strict";
const logger$f = new Logger(version$c);
@ -12377,7 +12377,7 @@ function computePublicKey(key, compressed) {
return logger$f.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
}
const version$d = "transactions/5.0.0-beta.132";
const version$d = "transactions/5.0.0-beta.133";
"use strict";
const logger$g = new Logger(version$d);
@ -12522,7 +12522,7 @@ function parse(rawTransaction) {
var _version$2 = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "wordlists/5.0.0-beta.132";
exports.version = "wordlists/5.0.0-beta.133";
});
var _version$3 = unwrapExports(_version$2);
@ -12531,29 +12531,17 @@ var _version_1$1 = _version$2.version;
var wordlist = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// This gets overriddenby gulp during bip39-XX
// This gets overridden by rollup
var exportWordlist = false;
var logger = new lib_esm.Logger(_version$2.version);
function check(wordlist) {
var words = [];
for (var i = 0; i < 2048; i++) {
var word = wordlist.getWord(i);
if (i !== wordlist.getWordIndex(word)) {
return "0x";
}
words.push(word);
}
return lib_esm$3.id(words.join("\n") + "\n");
}
exports.check = check;
exports.logger = new lib_esm.Logger(_version$2.version);
var Wordlist = /** @class */ (function () {
function Wordlist(locale) {
var _newTarget = this.constructor;
logger.checkAbstract(_newTarget, Wordlist);
exports.logger.checkAbstract(_newTarget, Wordlist);
lib_esm$2.defineReadOnly(this, "locale", locale);
}
// Subclasses may override this
@ -12564,35 +12552,38 @@ var Wordlist = /** @class */ (function () {
Wordlist.prototype.join = function (words) {
return words.join(" ");
};
return Wordlist;
}());
exports.Wordlist = Wordlist;
function register(lang, name) {
Wordlist.check = function (wordlist) {
var words = [];
for (var i = 0; i < 2048; i++) {
var word = wordlist.getWord(i);
if (i !== wordlist.getWordIndex(word)) {
return "0x";
}
words.push(word);
}
return lib_esm$3.id(words.join("\n") + "\n");
};
Wordlist.register = function (lang, name) {
if (!name) {
name = lang.locale;
}
if (exportWordlist) {
var g = commonjsGlobal;
if (!(g.wordlists)) {
lib_esm$2.defineReadOnly(g, "wordlists", {});
}
if (!g.wordlists[name]) {
lib_esm$2.defineReadOnly(g.wordlists, name, lang);
}
if (g.ethers && g.ethers.wordlists) {
if (!g.ethers.wordlists[name]) {
lib_esm$2.defineReadOnly(g.ethers.wordlists, name, lang);
if (g._ethers && g._ethers.wordlists) {
if (!g._ethers.wordlists[name]) {
lib_esm$2.defineReadOnly(g._ethers.wordlists, name, lang);
}
}
}
}
exports.register = register;
};
return Wordlist;
}());
exports.Wordlist = Wordlist;
});
var wordlist$1 = unwrapExports(wordlist);
var wordlist_1 = wordlist.check;
var wordlist_1 = wordlist.logger;
var wordlist_2 = wordlist.Wordlist;
var wordlist_3 = wordlist.register;
var langEn_1 = createCommonjsModule(function (module, exports) {
"use strict";
@ -12618,7 +12609,7 @@ function loadWords(lang) {
return;
}
wordlist$1 = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" ");
if (wordlist.check(lang) !== "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60") {
if (wordlist.Wordlist.check(lang) !== "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60") {
wordlist$1 = null;
throw new Error("BIP39 Wordlist for en (English) FAILED");
}
@ -12640,7 +12631,7 @@ var LangEn = /** @class */ (function (_super) {
}(wordlist.Wordlist));
var langEn = new LangEn();
exports.langEn = langEn;
wordlist.register(langEn);
wordlist.Wordlist.register(langEn);
});
var langEn = unwrapExports(langEn_1);
@ -12662,7 +12653,7 @@ var browser$5 = unwrapExports(browser$4);
var browser_1$2 = browser$4.Wordlist;
var browser_2$1 = browser$4.wordlists;
const version$e = "hdnode/5.0.0-beta.134";
const version$e = "hdnode/5.0.0-beta.135";
"use strict";
const logger$h = new Logger(version$e);
@ -12941,7 +12932,7 @@ function isValidMnemonic(mnemonic, wordlist) {
var _version$4 = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "random/5.0.0-beta.132";
exports.version = "random/5.0.0-beta.133";
});
var _version$5 = unwrapExports(_version$4);
@ -13803,7 +13794,7 @@ var aesJs = createCommonjsModule(function (module, exports) {
})(commonjsGlobal);
});
const version$f = "json-wallets/5.0.0-beta.133";
const version$f = "json-wallets/5.0.0-beta.134";
"use strict";
function looseArrayify(hexString) {
@ -14423,11 +14414,7 @@ var scrypt = createCommonjsModule(function (module, exports) {
})(commonjsGlobal);
});
var scrypt$1 = /*#__PURE__*/Object.freeze({
'default': scrypt,
__moduleExports: scrypt
});
var scrypt_1 = scrypt.scrypt;
var rng;
@ -14644,7 +14631,7 @@ uuid.unparse = unparse;
var uuid_1 = uuid;
"use strict";
var __awaiter$1 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@ -14740,7 +14727,7 @@ function decrypt$1(json, password, progressCallback) {
if (dkLen !== 32) {
throw new Error("unsupported key-derivation derived-key length");
}
const key = yield undefined(passwordBytes, salt, N, r, p, 64, progressCallback);
const key = yield scrypt_1(passwordBytes, salt, N, r, p, 64, progressCallback);
//key = arrayify(key);
return getAccount(key);
}
@ -14856,7 +14843,7 @@ function encrypt(account, password, options, progressCallback) {
// We take 64 bytes:
// - 32 bytes As normal for the Web3 secret storage (derivedKey, macPrefix)
// - 32 bytes AES key to encrypt mnemonic with (required here to be Ethers Wallet)
return undefined(passwordBytes, salt, N, r, p, 64, progressCallback).then((key) => {
return scrypt_1(passwordBytes, salt, N, r, p, 64, progressCallback).then((key) => {
key = arrayify(key);
// This will be used to encrypt the wallet (as per Web3 secret storage)
const derivedKey = key.slice(0, 16);
@ -14935,7 +14922,7 @@ function decryptJsonWallet(json, password, progressCallback) {
return Promise.reject(new Error("invalid JSON wallet"));
}
const version$g = "wallet/5.0.0-beta.134";
const version$g = "wallet/5.0.0-beta.135";
"use strict";
const logger$j = new Logger(version$g);
@ -15055,7 +15042,7 @@ function verifyMessage(message, signature) {
return recoverAddress(hashMessage(message), signature);
}
const version$h = "networks/5.0.0-beta.132";
const version$h = "networks/5.0.0-beta.133";
"use strict";
const logger$k = new Logger(version$h);
@ -15821,10 +15808,37 @@ var browser$a = /*#__PURE__*/Object.freeze({
encode: browser_2$3
});
const version$i = "web/5.0.0-beta.133";
const version$i = "web/5.0.0-beta.134";
"use strict";
var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
const logger$l = new Logger(version$i);
function getResponse(response) {
const headers = {};
if (response.headers.forEach) {
response.headers.forEach((value, key) => {
headers[key.toLowerCase()] = value;
});
}
else {
((response.headers).keys)().forEach((key) => {
headers[key.toLowerCase()] = response.headers.get(key);
});
}
return {
statusCode: response.status,
status: response.statusText,
headers: headers
};
}
function fetchJson(connection, json, processFunc) {
const headers = {};
let url = null;
@ -15839,6 +15853,10 @@ function fetchJson(connection, json, processFunc) {
};
let allow304 = false;
let timeout = 2 * 60 * 1000;
let throttle = 25;
if (options.throttleLimit) {
throttle = options.throttleLimit;
}
if (typeof (connection) === "string") {
url = connection;
}
@ -15869,24 +15887,6 @@ function fetchJson(connection, json, processFunc) {
};
}
}
return new Promise(function (resolve, reject) {
let timer = null;
if (timeout) {
timer = setTimeout(() => {
if (timer == null) {
return;
}
timer = null;
reject(logger$l.makeError("timeout", Logger.errors.TIMEOUT, { timeout: timeout }));
}, timeout);
}
const cancelTimeout = () => {
if (timer == null) {
return;
}
clearTimeout(timer);
timer = null;
};
if (json) {
options.method = "POST";
options.body = json;
@ -15898,13 +15898,49 @@ function fetchJson(connection, json, processFunc) {
flatHeaders[header.key] = header.value;
});
options.headers = flatHeaders;
return browserPonyfill(url, options).then((response) => {
return response.text().then((body) => {
let json = null;
const runningTimeout = (function () {
let timer = null;
const promise = new Promise(function (resolve, reject) {
if (timeout) {
timer = setTimeout(() => {
if (timer == null) {
return;
}
timer = null;
reject(logger$l.makeError("timeout", Logger.errors.TIMEOUT, { timeout: timeout }));
}, timeout);
}
});
const cancel = function () {
if (timer == null) {
return;
}
clearTimeout(timer);
timer = null;
};
return { promise, cancel };
})();
if (throttle == 100) {
console.log(throttle);
}
const runningFetch = (function () {
return __awaiter$2(this, void 0, void 0, function* () {
let response = null;
let body = null;
while (true) {
try {
response = yield browserPonyfill(url, options);
}
catch (error) {
console.log(error);
}
body = yield response.text();
if (allow304 && response.status === 304) {
// Leave json as null
// Leave body as null
break;
}
else if (!response.ok) {
runningTimeout.cancel();
logger$l.throwError("bad response", Logger.errors.SERVER_ERROR, {
status: response.status,
body: body,
@ -15913,6 +15949,12 @@ function fetchJson(connection, json, processFunc) {
});
}
else {
break;
}
}
runningTimeout.cancel();
let json = null;
if (body != null) {
try {
json = JSON.parse(body);
}
@ -15926,22 +15968,7 @@ function fetchJson(connection, json, processFunc) {
}
if (processFunc) {
try {
const headers = {};
if (response.headers.forEach) {
response.headers.forEach((value, key) => {
headers[key.toLowerCase()] = value;
});
}
else {
((response.headers).keys)().forEach((key) => {
headers[key.toLowerCase()] = response.headers.get(key);
});
}
json = processFunc(json, {
statusCode: response.status,
status: response.statusText,
headers: headers
});
json = yield processFunc(json, getResponse(response));
}
catch (error) {
logger$l.throwError("processing response error", Logger.errors.SERVER_ERROR, {
@ -15952,16 +15979,8 @@ function fetchJson(connection, json, processFunc) {
}
return json;
});
}, (error) => {
throw error;
}).then((result) => {
cancelTimeout();
resolve(result);
}, (error) => {
cancelTimeout();
reject(error);
});
});
})();
return Promise.race([runningTimeout.promise, runningFetch]);
}
function poll(func, options) {
if (!options) {
@ -16040,7 +16059,7 @@ function poll(func, options) {
});
}
const version$j = "providers/5.0.0-beta.145";
const version$j = "providers/5.0.0-beta.146";
"use strict";
const logger$m = new Logger(version$j);
@ -16414,7 +16433,7 @@ class Formatter {
}
"use strict";
var __awaiter$2 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@ -16556,7 +16575,7 @@ class BaseProvider extends Provider {
return getNetwork((network == null) ? "homestead" : network);
}
_getInternalBlockNumber(maxAge) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const internalBlockNumber = this._internalBlockNumber;
if (maxAge > 0 && this._internalBlockNumber) {
@ -16580,7 +16599,7 @@ class BaseProvider extends Provider {
});
}
poll() {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
const pollId = nextPollId++;
this.emit("willPoll", pollId);
// Track all running promises, so we can trigger a post-poll once they are complete
@ -16750,7 +16769,7 @@ class BaseProvider extends Provider {
// @TODO: Add .poller which must be an event emitter with a 'start', 'stop' and 'block' event;
// this will be used once we move to the WebSocket or other alternatives to polling
waitForTransaction(transactionHash, confirmations) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
if (confirmations == null) {
confirmations = 1;
}
@ -16776,13 +16795,13 @@ class BaseProvider extends Provider {
return this._getInternalBlockNumber(0);
}
getGasPrice() {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
return BigNumber.from(yield this.perform("getGasPrice", {}));
});
}
getBalance(addressOrName, blockTag) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const params = yield resolveProperties({
address: this._getAddress(addressOrName),
@ -16792,7 +16811,7 @@ class BaseProvider extends Provider {
});
}
getTransactionCount(addressOrName, blockTag) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const params = yield resolveProperties({
address: this._getAddress(addressOrName),
@ -16802,7 +16821,7 @@ class BaseProvider extends Provider {
});
}
getCode(addressOrName, blockTag) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const params = yield resolveProperties({
address: this._getAddress(addressOrName),
@ -16812,7 +16831,7 @@ class BaseProvider extends Provider {
});
}
getStorageAt(addressOrName, position, blockTag) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const params = yield resolveProperties({
address: this._getAddress(addressOrName),
@ -16833,7 +16852,7 @@ class BaseProvider extends Provider {
logger$n.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
}
// @TODO: (confirmations? number, timeout? number)
result.wait = (confirmations) => __awaiter$2(this, void 0, void 0, function* () {
result.wait = (confirmations) => __awaiter$3(this, void 0, void 0, function* () {
// We know this transaction *must* exist (whether it gets mined is
// another story), so setting an emitted value forces us to
// wait even if the node returns null for the receipt
@ -16858,7 +16877,7 @@ class BaseProvider extends Provider {
return result;
}
sendTransaction(signedTransaction) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const hexTx = yield Promise.resolve(signedTransaction).then(t => hexlify(t));
const tx = this.formatter.transaction(signedTransaction);
@ -16874,7 +16893,7 @@ class BaseProvider extends Provider {
});
}
_getTransactionRequest(transaction) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
const values = yield transaction;
const tx = {};
["from", "to"].forEach((key) => {
@ -16899,7 +16918,7 @@ class BaseProvider extends Provider {
});
}
_getFilter(filter) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
if (filter instanceof Promise) {
filter = yield filter;
}
@ -16923,7 +16942,7 @@ class BaseProvider extends Provider {
});
}
call(transaction, blockTag) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const params = yield resolveProperties({
transaction: this._getTransactionRequest(transaction),
@ -16933,7 +16952,7 @@ class BaseProvider extends Provider {
});
}
estimateGas(transaction) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const params = yield resolveProperties({
transaction: this._getTransactionRequest(transaction)
@ -16942,7 +16961,7 @@ class BaseProvider extends Provider {
});
}
_getAddress(addressOrName) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
const address = yield this.resolveName(addressOrName);
if (address == null) {
logger$n.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
@ -16953,7 +16972,7 @@ class BaseProvider extends Provider {
});
}
_getBlock(blockHashOrBlockTag, includeTransactions) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
if (blockHashOrBlockTag instanceof Promise) {
blockHashOrBlockTag = yield blockHashOrBlockTag;
@ -16977,7 +16996,7 @@ class BaseProvider extends Provider {
logger$n.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
}
}
return poll(() => __awaiter$2(this, void 0, void 0, function* () {
return poll(() => __awaiter$3(this, void 0, void 0, function* () {
const block = yield this.perform("getBlock", params);
// Block was not found
if (block == null) {
@ -17013,13 +17032,13 @@ class BaseProvider extends Provider {
return (this._getBlock(blockHashOrBlockTag, true));
}
getTransaction(transactionHash) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
if (transactionHash instanceof Promise) {
transactionHash = yield transactionHash;
}
const params = { transactionHash: this.formatter.hash(transactionHash, true) };
return poll(() => __awaiter$2(this, void 0, void 0, function* () {
return poll(() => __awaiter$3(this, void 0, void 0, function* () {
const result = yield this.perform("getTransaction", params);
if (result == null) {
if (this._emitted["t:" + transactionHash] == null) {
@ -17045,13 +17064,13 @@ class BaseProvider extends Provider {
});
}
getTransactionReceipt(transactionHash) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
if (transactionHash instanceof Promise) {
transactionHash = yield transactionHash;
}
const params = { transactionHash: this.formatter.hash(transactionHash, true) };
return poll(() => __awaiter$2(this, void 0, void 0, function* () {
return poll(() => __awaiter$3(this, void 0, void 0, function* () {
const result = yield this.perform("getTransactionReceipt", params);
if (result == null) {
if (this._emitted["t:" + transactionHash] == null) {
@ -17081,7 +17100,7 @@ class BaseProvider extends Provider {
});
}
getLogs(filter) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
const params = yield resolveProperties({ filter: this._getFilter(filter) });
const logs = yield this.perform("getLogs", params);
@ -17089,13 +17108,13 @@ class BaseProvider extends Provider {
});
}
getEtherPrice() {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
yield this.ready;
return this.perform("getEtherPrice", {});
});
}
_getBlockTag(blockTag) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
if (blockTag instanceof Promise) {
blockTag = yield blockTag;
}
@ -17114,7 +17133,7 @@ class BaseProvider extends Provider {
});
}
_getResolver(name) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
// Get the resolver from the blockchain
const network = yield this.getNetwork();
// No ENS...
@ -17130,7 +17149,7 @@ class BaseProvider extends Provider {
});
}
resolveName(name) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
if (name instanceof Promise) {
name = yield name;
}
@ -17153,7 +17172,7 @@ class BaseProvider extends Provider {
});
}
lookupAddress(address) {
return __awaiter$2(this, void 0, void 0, function* () {
return __awaiter$3(this, void 0, void 0, function* () {
if (address instanceof Promise) {
address = yield address;
}
@ -17299,7 +17318,7 @@ class BaseProvider extends Provider {
}
"use strict";
var __awaiter$3 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@ -17499,7 +17518,7 @@ class JsonRpcProvider extends BaseProvider {
else {
// The network is unknown, query the JSON-RPC for it
const ready = new Promise((resolve, reject) => {
setTimeout(() => __awaiter$3(this, void 0, void 0, function* () {
setTimeout(() => __awaiter$4(this, void 0, void 0, function* () {
let chainId = null;
try {
chainId = yield this.send("eth_chainId", []);
@ -17818,7 +17837,7 @@ class CloudflareProvider extends UrlJsonRpcProvider {
}
"use strict";
var __awaiter$4 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@ -17921,13 +17940,13 @@ class EtherscanProvider extends BaseProvider {
const _super = Object.create(null, {
perform: { get: () => super.perform }
});
return __awaiter$4(this, void 0, void 0, function* () {
return __awaiter$5(this, void 0, void 0, function* () {
let url = this.baseUrl;
let apiKey = "";
if (this.apiKey) {
apiKey += "&apikey=" + this.apiKey;
}
const get = (url, procFunc) => __awaiter$4(this, void 0, void 0, function* () {
const get = (url, procFunc) => __awaiter$5(this, void 0, void 0, function* () {
this.emit("debug", {
action: "request",
request: url,
@ -18777,7 +18796,7 @@ function sha256$1(types, values) {
return browser_3(pack$1(types, values));
}
const version$k = "units/5.0.0-beta.131";
const version$k = "units/5.0.0-beta.132";
"use strict";
const logger$z = new Logger(version$k);
@ -18935,7 +18954,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
Indexed: Indexed
});
const version$l = "ethers/5.0.0-beta.160";
const version$l = "ethers/5.0.0-beta.161";
"use strict";
const errors = Logger.errors;
@ -18961,5 +18980,8 @@ var ethers = /*#__PURE__*/Object.freeze({
});
"use strict";
if (global._ethers == null) {
global._ethers = ethers;
}
export { BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, browser_1$2 as Wordlist, index$1 as constants, errors, ethers, getDefaultProvider, logger$A as logger, index$2 as providers, utils$1 as utils, version$l as version, browser_2$1 as wordlists };

File diff suppressed because one or more lines are too long

@ -3464,7 +3464,7 @@
var _version = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "logger/5.0.0-beta.132";
exports.version = "logger/5.0.0-beta.133";
});
var _version$1 = unwrapExports(_version);
@ -3758,7 +3758,7 @@
var _version$2 = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "bytes/5.0.0-beta.133";
exports.version = "bytes/5.0.0-beta.134";
});
var _version$3 = unwrapExports(_version$2);
@ -4184,7 +4184,7 @@
var _version$4 = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "bignumber/5.0.0-beta.134";
exports.version = "bignumber/5.0.0-beta.135";
});
var _version$5 = unwrapExports(_version$4);
@ -4756,7 +4756,7 @@
var _version$6 = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "properties/5.0.0-beta.134";
exports.version = "properties/5.0.0-beta.135";
});
var _version$7 = unwrapExports(_version$6);
@ -4886,7 +4886,7 @@
var _version$8 = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "abi/5.0.0-beta.141";
exports.version = "abi/5.0.0-beta.142";
});
var _version$9 = unwrapExports(_version$8);
@ -6456,7 +6456,7 @@
var _version$a = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "address/5.0.0-beta.132";
exports.version = "address/5.0.0-beta.133";
});
var _version$b = unwrapExports(_version$a);
@ -7118,7 +7118,7 @@
var _version$c = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "strings/5.0.0-beta.134";
exports.version = "strings/5.0.0-beta.135";
});
var _version$d = unwrapExports(_version$c);
@ -7796,7 +7796,7 @@
var _version$e = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "hash/5.0.0-beta.132";
exports.version = "hash/5.0.0-beta.133";
});
var _version$f = unwrapExports(_version$e);
@ -8326,7 +8326,7 @@
var _version$g = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "abstract-provider/5.0.0-beta.134";
exports.version = "abstract-provider/5.0.0-beta.135";
});
var _version$h = unwrapExports(_version$g);
@ -8461,7 +8461,7 @@
var _version$i = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "abstract-signer/5.0.0-beta.136";
exports.version = "abstract-signer/5.0.0-beta.137";
});
var _version$j = unwrapExports(_version$i);
@ -8717,7 +8717,7 @@
var _version$k = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "contracts/5.0.0-beta.141";
exports.version = "contracts/5.0.0-beta.142";
});
var _version$l = unwrapExports(_version$k);
@ -10840,7 +10840,7 @@
var _version$m = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "sha2/5.0.0-beta.132";
exports.version = "sha2/5.0.0-beta.133";
});
var _version$n = unwrapExports(_version$m);
@ -13316,7 +13316,7 @@
var _version$o = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "signing-key/5.0.0-beta.133";
exports.version = "signing-key/5.0.0-beta.134";
});
var _version$p = unwrapExports(_version$o);
@ -13412,7 +13412,7 @@
var _version$q = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "transactions/5.0.0-beta.132";
exports.version = "transactions/5.0.0-beta.133";
});
var _version$r = unwrapExports(_version$q);
@ -13591,7 +13591,7 @@
var _version$s = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "wordlists/5.0.0-beta.132";
exports.version = "wordlists/5.0.0-beta.133";
});
var _version$t = unwrapExports(_version$s);
@ -13600,29 +13600,17 @@
var wordlist = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// This gets overriddenby gulp during bip39-XX
// This gets overridden by rollup
var exportWordlist = false;
var logger = new lib.Logger(_version$s.version);
function check(wordlist) {
var words = [];
for (var i = 0; i < 2048; i++) {
var word = wordlist.getWord(i);
if (i !== wordlist.getWordIndex(word)) {
return "0x";
}
words.push(word);
}
return lib$9.id(words.join("\n") + "\n");
}
exports.check = check;
exports.logger = new lib.Logger(_version$s.version);
var Wordlist = /** @class */ (function () {
function Wordlist(locale) {
var _newTarget = this.constructor;
logger.checkAbstract(_newTarget, Wordlist);
exports.logger.checkAbstract(_newTarget, Wordlist);
lib$3.defineReadOnly(this, "locale", locale);
}
// Subclasses may override this
@ -13633,35 +13621,38 @@
Wordlist.prototype.join = function (words) {
return words.join(" ");
};
return Wordlist;
}());
exports.Wordlist = Wordlist;
function register(lang, name) {
Wordlist.check = function (wordlist) {
var words = [];
for (var i = 0; i < 2048; i++) {
var word = wordlist.getWord(i);
if (i !== wordlist.getWordIndex(word)) {
return "0x";
}
words.push(word);
}
return lib$9.id(words.join("\n") + "\n");
};
Wordlist.register = function (lang, name) {
if (!name) {
name = lang.locale;
}
if (exportWordlist) {
var g = commonjsGlobal;
if (!(g.wordlists)) {
lib$3.defineReadOnly(g, "wordlists", {});
}
if (!g.wordlists[name]) {
lib$3.defineReadOnly(g.wordlists, name, lang);
}
if (g.ethers && g.ethers.wordlists) {
if (!g.ethers.wordlists[name]) {
lib$3.defineReadOnly(g.ethers.wordlists, name, lang);
if (g._ethers && g._ethers.wordlists) {
if (!g._ethers.wordlists[name]) {
lib$3.defineReadOnly(g._ethers.wordlists, name, lang);
}
}
}
}
exports.register = register;
};
return Wordlist;
}());
exports.Wordlist = Wordlist;
});
var wordlist$1 = unwrapExports(wordlist);
var wordlist_1 = wordlist.check;
var wordlist_1 = wordlist.logger;
var wordlist_2 = wordlist.Wordlist;
var wordlist_3 = wordlist.register;
var langEn_1 = createCommonjsModule(function (module, exports) {
"use strict";
@ -13687,7 +13678,7 @@
return;
}
wordlist$1 = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" ");
if (wordlist.check(lang) !== "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60") {
if (wordlist.Wordlist.check(lang) !== "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60") {
wordlist$1 = null;
throw new Error("BIP39 Wordlist for en (English) FAILED");
}
@ -13709,7 +13700,7 @@
}(wordlist.Wordlist));
var langEn = new LangEn();
exports.langEn = langEn;
wordlist.register(langEn);
wordlist.Wordlist.register(langEn);
});
var langEn = unwrapExports(langEn_1);
@ -13734,7 +13725,7 @@
var _version$u = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "hdnode/5.0.0-beta.134";
exports.version = "hdnode/5.0.0-beta.135";
});
var _version$v = unwrapExports(_version$u);
@ -14051,7 +14042,7 @@
var _version$w = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "random/5.0.0-beta.132";
exports.version = "random/5.0.0-beta.133";
});
var _version$x = unwrapExports(_version$w);
@ -14916,7 +14907,7 @@
var _version$y = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "json-wallets/5.0.0-beta.133";
exports.version = "json-wallets/5.0.0-beta.134";
});
var _version$z = unwrapExports(_version$y);
@ -15607,6 +15598,7 @@
})(commonjsGlobal);
});
var scrypt_1 = scrypt.scrypt;
var rng;
@ -16228,7 +16220,7 @@
var _version$A = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "wallet/5.0.0-beta.134";
exports.version = "wallet/5.0.0-beta.135";
});
var _version$B = unwrapExports(_version$A);
@ -16409,7 +16401,7 @@
var _version$C = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "networks/5.0.0-beta.132";
exports.version = "networks/5.0.0-beta.133";
});
var _version$D = unwrapExports(_version$C);
@ -17184,7 +17176,7 @@
var _version$E = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "web/5.0.0-beta.133";
exports.version = "web/5.0.0-beta.134";
});
var _version$F = unwrapExports(_version$E);
@ -17192,6 +17184,42 @@
var lib$l = createCommonjsModule(function (module, exports) {
"use strict";
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
@ -17203,6 +17231,24 @@
var logger = new lib.Logger(_version$E.version);
function getResponse(response) {
var headers = {};
if (response.headers.forEach) {
response.headers.forEach(function (value, key) {
headers[key.toLowerCase()] = value;
});
}
else {
((response.headers).keys)().forEach(function (key) {
headers[key.toLowerCase()] = response.headers.get(key);
});
}
return {
statusCode: response.status,
status: response.statusText,
headers: headers
};
}
function fetchJson(connection, json, processFunc) {
var headers = {};
var url = null;
@ -17217,6 +17263,10 @@
};
var allow304 = false;
var timeout = 2 * 60 * 1000;
var throttle = 25;
if (options.throttleLimit) {
throttle = options.throttleLimit;
}
if (typeof (connection) === "string") {
url = connection;
}
@ -17247,24 +17297,6 @@
};
}
}
return new Promise(function (resolve, reject) {
var timer = null;
if (timeout) {
timer = setTimeout(function () {
if (timer == null) {
return;
}
timer = null;
reject(logger.makeError("timeout", lib.Logger.errors.TIMEOUT, { timeout: timeout }));
}, timeout);
}
var cancelTimeout = function () {
if (timer == null) {
return;
}
clearTimeout(timer);
timer = null;
};
if (json) {
options.method = "POST";
options.body = json;
@ -17276,13 +17308,62 @@
flatHeaders[header.key] = header.value;
});
options.headers = flatHeaders;
return cross_fetch_1.default(url, options).then(function (response) {
return response.text().then(function (body) {
var json = null;
var runningTimeout = (function () {
var timer = null;
var promise = new Promise(function (resolve, reject) {
if (timeout) {
timer = setTimeout(function () {
if (timer == null) {
return;
}
timer = null;
reject(logger.makeError("timeout", lib.Logger.errors.TIMEOUT, { timeout: timeout }));
}, timeout);
}
});
var cancel = function () {
if (timer == null) {
return;
}
clearTimeout(timer);
timer = null;
};
return { promise: promise, cancel: cancel };
})();
if (throttle == 100) {
console.log(throttle);
}
var runningFetch = (function () {
return __awaiter(this, void 0, void 0, function () {
var response, body, error_1, json, error_2;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
response = null;
body = null;
_a.label = 1;
case 1:
if (!true) return [3 /*break*/, 7];
_a.label = 2;
case 2:
_a.trys.push([2, 4, , 5]);
return [4 /*yield*/, cross_fetch_1.default(url, options)];
case 3:
response = _a.sent();
return [3 /*break*/, 5];
case 4:
error_1 = _a.sent();
console.log(error_1);
return [3 /*break*/, 5];
case 5: return [4 /*yield*/, response.text()];
case 6:
body = _a.sent();
if (allow304 && response.status === 304) {
// Leave json as null
// Leave body as null
return [3 /*break*/, 7];
}
else if (!response.ok) {
runningTimeout.cancel();
logger.throwError("bad response", lib.Logger.errors.SERVER_ERROR, {
status: response.status,
body: body,
@ -17291,6 +17372,13 @@
});
}
else {
return [3 /*break*/, 7];
}
return [3 /*break*/, 1];
case 7:
runningTimeout.cancel();
json = null;
if (body != null) {
try {
json = JSON.parse(body);
}
@ -17302,44 +17390,27 @@
});
}
}
if (processFunc) {
try {
var headers_1 = {};
if (response.headers.forEach) {
response.headers.forEach(function (value, key) {
headers_1[key.toLowerCase()] = value;
});
}
else {
((response.headers).keys)().forEach(function (key) {
headers_1[key.toLowerCase()] = response.headers.get(key);
});
}
json = processFunc(json, {
statusCode: response.status,
status: response.statusText,
headers: headers_1
});
}
catch (error) {
if (!processFunc) return [3 /*break*/, 11];
_a.label = 8;
case 8:
_a.trys.push([8, 10, , 11]);
return [4 /*yield*/, processFunc(json, getResponse(response))];
case 9:
json = _a.sent();
return [3 /*break*/, 11];
case 10:
error_2 = _a.sent();
logger.throwError("processing response error", lib.Logger.errors.SERVER_ERROR, {
body: json,
error: error
error: error_2
});
return [3 /*break*/, 11];
case 11: return [2 /*return*/, json];
}
}
return json;
});
}, function (error) {
throw error;
}).then(function (result) {
cancelTimeout();
resolve(result);
}, function (error) {
cancelTimeout();
reject(error);
});
});
})();
return Promise.race([runningTimeout.promise, runningFetch]);
}
exports.fetchJson = fetchJson;
function poll(func, options) {
@ -17428,7 +17499,7 @@
var _version$G = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "providers/5.0.0-beta.145";
exports.version = "providers/5.0.0-beta.146";
});
var _version$H = unwrapExports(_version$G);
@ -21036,7 +21107,7 @@
var _version$I = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "units/5.0.0-beta.131";
exports.version = "units/5.0.0-beta.132";
});
var _version$J = unwrapExports(_version$I);
@ -21328,7 +21399,7 @@
var _version$K = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "ethers/5.0.0-beta.160";
exports.version = "ethers/5.0.0-beta.161";
});
var _version$L = unwrapExports(_version$K);
@ -21406,8 +21477,12 @@
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
// To modify this file, you must update ./admin/cmds/update-exports.js
var ethers$1 = __importStar(ethers);
exports.ethers = ethers$1;
if (commonjsGlobal._ethers == null) {
commonjsGlobal._ethers = ethers$1;
}
var ethers_1 = ethers;
exports.Signer = ethers_1.Signer;
exports.Wallet = ethers_1.Wallet;

File diff suppressed because one or more lines are too long

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

@ -1 +1 @@
export const version = "ethers/5.0.0-beta.160";
export const version = "ethers/5.0.0-beta.161";

@ -1,5 +1,9 @@
"use strict";
// To modify this file, you must update ./admin/cmds/update-exports.js
import * as ethers from "./ethers";
if (global._ethers == null) {
global._ethers = ethers;
}
export { ethers };
export { Signer, Wallet, VoidSigner, getDefaultProvider, providers, Contract, ContractFactory, BigNumber, FixedNumber, constants, errors, logger, utils, wordlists,
////////////////////////

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

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

@ -7,8 +7,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
// To modify this file, you must update ./admin/cmds/update-exports.js
var ethers = __importStar(require("./ethers"));
exports.ethers = ethers;
if (global._ethers == null) {
global._ethers = ethers;
}
var ethers_1 = require("./ethers");
exports.Signer = ethers_1.Signer;
exports.Wallet = ethers_1.Wallet;

@ -1,11 +1,6 @@
{
"name": "ethers",
"version": "5.0.0-beta.160",
"description": "Umbrella package for most common Ethers libraries.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"browser": "./dist/ethers.umd.js",
"dependencies": {
"@ethersproject/abi": ">=5.0.0-beta.137",
"@ethersproject/abstract-provider": ">=5.0.0-beta.131",
@ -37,13 +32,16 @@
"@ethersproject/web": ">=5.0.0-beta.129",
"@ethersproject/wordlists": ">=5.0.0-beta.128"
},
"browser": "./dist/ethers.umd.js",
"description": "Umbrella package for most common Ethers libraries.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./dist/ethers.esm.js",
"name": "ethers",
"publishConfig": {
"tag": "next"
},
@ -51,8 +49,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./dist/ethers.esm.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x1110356f9dc54b881250ee44580f3b71e0e9bfb0e5707708eeedc2f66cb0db4a",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0xc5beab5b0414d554e5cdc0e316af832c83055debae95c860e6a85abdb85f4396"
"version": "5.0.0-beta.161"
}

@ -1 +1 @@
export const version = "ethers/5.0.0-beta.160";
export const version = "ethers/5.0.0-beta.161";

@ -1,7 +1,13 @@
"use strict";
// To modify this file, you must update ./admin/cmds/update-exports.js
import * as ethers from "./ethers";
if ((<any>global)._ethers == null) {
(<any>global)._ethers = ethers;
}
export { ethers };
export {

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

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

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

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

@ -1,23 +1,21 @@
{
"name": "@ethersproject/experimental",
"version": "5.0.0-beta.133",
"description": "Experimental libraries for ethers. These should not be considered stable.",
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/web": ">=5.0.0-beta.129",
"@ensdomains/address-encoder": "^0.1.2",
"@ethersproject/web": ">=5.0.0-beta.129",
"ethers": ">=5.0.0-beta.156",
"scrypt-js": "3.0.0"
},
"description": "Experimental libraries for ethers. These should not be considered stable.",
"ethereum": "donations.ethers.eth",
"keywords": [
"Ethereum",
"ethers"
],
"author": "Richard Moore <me@ricmoo.com>",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib.esm/index.js",
"name": "@ethersproject/experimental",
"publishConfig": {
"access": "public"
},
@ -25,8 +23,10 @@
"type": "git",
"url": "git://github.com/ethers-io/ethers.js.git"
},
"module": "./lib.esm/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0xc24c20f47238e0a9a9ec4da458302879732307bbbfce80a91ad818de5ae69a1c",
"types": "./lib/index.d.ts",
"ethereum": "donations.ethers.eth",
"tarballHash": "0x004416cb35c4bb09fe835b6837fb08c1807c4a98f6191bd2e7007bb8c0316267"
"version": "5.0.0-beta.134"
}

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

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

Some files were not shown because too many files have changed in this diff Show More