Updated dist files.
This commit is contained in:
parent
0f144c6cc0
commit
a656079752
@ -3,6 +3,13 @@ Changelog
|
||||
|
||||
This change log is managed by `scripts/cmds/update-versions` but may be manually updated.
|
||||
|
||||
ethers/v5.0.0-beta.179 (2020-03-31 23:40)
|
||||
-----------------------------------------
|
||||
|
||||
- Fixed ENS CLI lookup for Website. ([0f144c6](https://github.com/ethers-io/ethers.js/commit/0f144c6cc03082026080782356b940af3389b34e))
|
||||
- Fixed getEtherPrice for EtherscanProvider. ([#776](https://github.com/ethers-io/ethers.js/issues/776); [6c71b51](https://github.com/ethers-io/ethers.js/commit/6c71b515126d8ef3cea5a1aec814c4cab56cc1a5))
|
||||
- Fixed ENS CLI tool set-websites and added set-name. ([70cffb6](https://github.com/ethers-io/ethers.js/commit/70cffb6a5166a79a54e02b03b6a7ec0085407e07))
|
||||
|
||||
ethers/v5.0.0-beta.178 (2020-03-30 22:14)
|
||||
-----------------------------------------
|
||||
|
||||
|
2
packages/asm/lib.esm/_version.d.ts
vendored
2
packages/asm/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "asm/5.0.0-beta.154";
|
||||
export declare const version = "asm/5.0.0-beta.155";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "asm/5.0.0-beta.154";
|
||||
export const version = "asm/5.0.0-beta.155";
|
||||
|
2
packages/asm/lib/_version.d.ts
vendored
2
packages/asm/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "asm/5.0.0-beta.154";
|
||||
export declare const version = "asm/5.0.0-beta.155";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "asm/5.0.0-beta.154";
|
||||
exports.version = "asm/5.0.0-beta.155";
|
||||
|
@ -29,7 +29,7 @@
|
||||
"generate": "node ./generate.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0xbb58918bc51fc3dc01d936a972382d7ffb1b28f46dcf6d1a36b8bc31cf6ef4bb",
|
||||
"tarballHash": "0x7a638f747f7015963e137e5827c055ccf5731e6d88fc956b781ac621d9e8ffbb",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.154"
|
||||
"version": "5.0.0-beta.155"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "asm/5.0.0-beta.154";
|
||||
export const version = "asm/5.0.0-beta.155";
|
||||
|
2
packages/cli/lib.esm/_version.d.ts
vendored
2
packages/cli/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "cli/5.0.0-beta.152";
|
||||
export declare const version = "cli/5.0.0-beta.153";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "cli/5.0.0-beta.152";
|
||||
export const version = "cli/5.0.0-beta.153";
|
||||
|
@ -46,6 +46,8 @@ const resolverAbi = [
|
||||
"function interfaceImplementer(bytes32 nodehash, bytes4 interfaceId) view returns (address)",
|
||||
"function addr(bytes32 nodehash) view returns (address)",
|
||||
"function setAddr(bytes32 nodehash, address addr) @500000",
|
||||
"function name(bytes32 nodehash) view returns (string)",
|
||||
"function setName(bytes32 nodehash, string name) @500000",
|
||||
"function text(bytes32 nodehash, string key) view returns (string)",
|
||||
"function setText(bytes32 nodehash, string key, string value) @500000",
|
||||
"function contenthash(bytes32 nodehash) view returns (bytes)",
|
||||
@ -188,7 +190,7 @@ class LookupPlugin extends EnsPlugin {
|
||||
if (email) {
|
||||
details["E-mail"] = email;
|
||||
}
|
||||
let website = yield resolver.text(nodehash, "website").catch((error) => (""));
|
||||
let website = yield resolver.text(nodehash, "url").catch((error) => (""));
|
||||
if (website) {
|
||||
details["Website"] = website;
|
||||
}
|
||||
@ -457,7 +459,7 @@ class AddressAccountPlugin extends AccountPlugin {
|
||||
if (!address) {
|
||||
address = yield this.getDefaultAddress();
|
||||
}
|
||||
this.address = address;
|
||||
this.address = yield this.getAddress(address);
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -567,6 +569,30 @@ class SetAddrPlugin extends AddressAccountPlugin {
|
||||
}
|
||||
}
|
||||
cli.addPlugin("set-addr", SetAddrPlugin);
|
||||
class SetNamePlugin extends AddressAccountPlugin {
|
||||
static getHelp() {
|
||||
return {
|
||||
name: "set-name NAME",
|
||||
help: "Set the reverse name record (default: current account)"
|
||||
};
|
||||
}
|
||||
run() {
|
||||
const _super = Object.create(null, {
|
||||
run: { get: () => super.run }
|
||||
});
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield _super.run.call(this);
|
||||
const nodehash = ethers.utils.namehash(this.address.substring(2) + ".addr.reverse");
|
||||
this.dump("Set Name: " + this.name, {
|
||||
"Nodehash": nodehash,
|
||||
"Address": this.address
|
||||
});
|
||||
let resolver = yield this.getResolver(nodehash);
|
||||
yield resolver.setName(nodehash, this.name);
|
||||
});
|
||||
}
|
||||
}
|
||||
cli.addPlugin("set-name", SetNamePlugin);
|
||||
class TextAccountPlugin extends AccountPlugin {
|
||||
run() {
|
||||
const _super = Object.create(null, {
|
||||
@ -618,7 +644,7 @@ class SetWebsitePlugin extends TextAccountPlugin {
|
||||
};
|
||||
}
|
||||
getHeader() { return "Website"; }
|
||||
getKey() { return "website"; }
|
||||
getKey() { return "url"; }
|
||||
getValue() { return this.url; }
|
||||
}
|
||||
cli.addPlugin("set-website", SetWebsitePlugin);
|
||||
|
2
packages/cli/lib/_version.d.ts
vendored
2
packages/cli/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "cli/5.0.0-beta.152";
|
||||
export declare const version = "cli/5.0.0-beta.153";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "cli/5.0.0-beta.152";
|
||||
exports.version = "cli/5.0.0-beta.153";
|
||||
|
@ -87,6 +87,8 @@ var resolverAbi = [
|
||||
"function interfaceImplementer(bytes32 nodehash, bytes4 interfaceId) view returns (address)",
|
||||
"function addr(bytes32 nodehash) view returns (address)",
|
||||
"function setAddr(bytes32 nodehash, address addr) @500000",
|
||||
"function name(bytes32 nodehash) view returns (string)",
|
||||
"function setName(bytes32 nodehash, string name) @500000",
|
||||
"function text(bytes32 nodehash, string key) view returns (string)",
|
||||
"function setText(bytes32 nodehash, string key, string value) @500000",
|
||||
"function contenthash(bytes32 nodehash) view returns (bytes)",
|
||||
@ -318,7 +320,7 @@ var LookupPlugin = /** @class */ (function (_super) {
|
||||
if (email) {
|
||||
details["E-mail"] = email;
|
||||
}
|
||||
return [4 /*yield*/, resolver.text(nodehash, "website").catch(function (error) { return (""); })];
|
||||
return [4 /*yield*/, resolver.text(nodehash, "url").catch(function (error) { return (""); })];
|
||||
case 14:
|
||||
website = _f.sent();
|
||||
if (website) {
|
||||
@ -699,20 +701,23 @@ var AddressAccountPlugin = /** @class */ (function (_super) {
|
||||
};
|
||||
AddressAccountPlugin.prototype.prepareOptions = function (argParser) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var address;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
var address, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
case 0: return [4 /*yield*/, _super.prototype.prepareOptions.call(this, argParser)];
|
||||
case 1:
|
||||
_a.sent();
|
||||
_b.sent();
|
||||
address = argParser.consumeOption("address");
|
||||
if (!!address) return [3 /*break*/, 3];
|
||||
return [4 /*yield*/, this.getDefaultAddress()];
|
||||
case 2:
|
||||
address = _a.sent();
|
||||
_a.label = 3;
|
||||
address = _b.sent();
|
||||
_b.label = 3;
|
||||
case 3:
|
||||
this.address = address;
|
||||
_a = this;
|
||||
return [4 /*yield*/, this.getAddress(address)];
|
||||
case 4:
|
||||
_a.address = _b.sent();
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
@ -881,6 +886,44 @@ var SetAddrPlugin = /** @class */ (function (_super) {
|
||||
return SetAddrPlugin;
|
||||
}(AddressAccountPlugin));
|
||||
cli.addPlugin("set-addr", SetAddrPlugin);
|
||||
var SetNamePlugin = /** @class */ (function (_super) {
|
||||
__extends(SetNamePlugin, _super);
|
||||
function SetNamePlugin() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
SetNamePlugin.getHelp = function () {
|
||||
return {
|
||||
name: "set-name NAME",
|
||||
help: "Set the reverse name record (default: current account)"
|
||||
};
|
||||
};
|
||||
SetNamePlugin.prototype.run = function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var nodehash, resolver;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, _super.prototype.run.call(this)];
|
||||
case 1:
|
||||
_a.sent();
|
||||
nodehash = ethers_1.ethers.utils.namehash(this.address.substring(2) + ".addr.reverse");
|
||||
this.dump("Set Name: " + this.name, {
|
||||
"Nodehash": nodehash,
|
||||
"Address": this.address
|
||||
});
|
||||
return [4 /*yield*/, this.getResolver(nodehash)];
|
||||
case 2:
|
||||
resolver = _a.sent();
|
||||
return [4 /*yield*/, resolver.setName(nodehash, this.name)];
|
||||
case 3:
|
||||
_a.sent();
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
return SetNamePlugin;
|
||||
}(AddressAccountPlugin));
|
||||
cli.addPlugin("set-name", SetNamePlugin);
|
||||
var TextAccountPlugin = /** @class */ (function (_super) {
|
||||
__extends(TextAccountPlugin, _super);
|
||||
function TextAccountPlugin() {
|
||||
@ -960,7 +1003,7 @@ var SetWebsitePlugin = /** @class */ (function (_super) {
|
||||
};
|
||||
};
|
||||
SetWebsitePlugin.prototype.getHeader = function () { return "Website"; };
|
||||
SetWebsitePlugin.prototype.getKey = function () { return "website"; };
|
||||
SetWebsitePlugin.prototype.getKey = function () { return "url"; };
|
||||
SetWebsitePlugin.prototype.getValue = function () { return this.url; };
|
||||
return SetWebsitePlugin;
|
||||
}(TextAccountPlugin));
|
||||
|
@ -41,7 +41,7 @@
|
||||
"scripts": {
|
||||
"test": "exit 1"
|
||||
},
|
||||
"tarballHash": "0x506f9e707ee4679abf995420f70084635b46993e5222c3452d64ad60b74d939b",
|
||||
"tarballHash": "0xeb1226e0a588ca30e56985c8ad3258c6738a5816c36db571d331d7599d2635dc",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.152"
|
||||
"version": "5.0.0-beta.153"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "cli/5.0.0-beta.152";
|
||||
export const version = "cli/5.0.0-beta.153";
|
||||
|
2
packages/ethers/dist/ethers-all.esm.min.js
vendored
2
packages/ethers/dist/ethers-all.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers-all.umd.min.js
vendored
2
packages/ethers/dist/ethers-all.umd.min.js
vendored
File diff suppressed because one or more lines are too long
8
packages/ethers/dist/ethers.esm.js
vendored
8
packages/ethers/dist/ethers.esm.js
vendored
@ -16287,7 +16287,7 @@ function poll(func, options) {
|
||||
});
|
||||
}
|
||||
|
||||
const version$k = "providers/5.0.0-beta.158";
|
||||
const version$k = "providers/5.0.0-beta.159";
|
||||
|
||||
"use strict";
|
||||
const logger$o = new Logger(version$k);
|
||||
@ -18435,7 +18435,7 @@ class EtherscanProvider extends BaseProvider {
|
||||
}
|
||||
url += "/api?module=stats&action=ethprice";
|
||||
url += apiKey;
|
||||
return parseFloat(yield get(url, getResult$1));
|
||||
return parseFloat((yield get(url, getResult$1)).ethusd);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -19133,7 +19133,7 @@ class Web3Provider extends JsonRpcProvider {
|
||||
var _version$6 = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.0-beta.158";
|
||||
exports.version = "providers/5.0.0-beta.159";
|
||||
});
|
||||
|
||||
var _version$7 = unwrapExports(_version$6);
|
||||
@ -19669,7 +19669,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
|
||||
Indexed: Indexed
|
||||
});
|
||||
|
||||
const version$m = "ethers/5.0.0-beta.178";
|
||||
const version$m = "ethers/5.0.0-beta.179";
|
||||
|
||||
"use strict";
|
||||
const errors = Logger.errors;
|
||||
|
2
packages/ethers/dist/ethers.esm.min.js
vendored
2
packages/ethers/dist/ethers.esm.min.js
vendored
File diff suppressed because one or more lines are too long
6
packages/ethers/dist/ethers.umd.js
vendored
6
packages/ethers/dist/ethers.umd.js
vendored
@ -17748,7 +17748,7 @@
|
||||
var _version$I = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.0-beta.158";
|
||||
exports.version = "providers/5.0.0-beta.159";
|
||||
});
|
||||
|
||||
var _version$J = unwrapExports(_version$I);
|
||||
@ -20580,7 +20580,7 @@
|
||||
url += apiKey;
|
||||
_b = parseFloat;
|
||||
return [4 /*yield*/, get(url, getResult)];
|
||||
case 21: return [2 /*return*/, _b.apply(void 0, [_c.sent()])];
|
||||
case 21: return [2 /*return*/, _b.apply(void 0, [(_c.sent()).ethusd])];
|
||||
case 22: return [3 /*break*/, 23];
|
||||
case 23: return [2 /*return*/, _super.prototype.perform.call(this, method, params)];
|
||||
}
|
||||
@ -22288,7 +22288,7 @@
|
||||
var _version$M = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.0-beta.178";
|
||||
exports.version = "ethers/5.0.0-beta.179";
|
||||
});
|
||||
|
||||
var _version$N = unwrapExports(_version$M);
|
||||
|
2
packages/ethers/dist/ethers.umd.min.js
vendored
2
packages/ethers/dist/ethers.umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/lib.esm/_version.d.ts
vendored
2
packages/ethers/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "ethers/5.0.0-beta.178";
|
||||
export declare const version = "ethers/5.0.0-beta.179";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.0.0-beta.178";
|
||||
export const version = "ethers/5.0.0-beta.179";
|
||||
|
2
packages/ethers/lib/_version.d.ts
vendored
2
packages/ethers/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "ethers/5.0.0-beta.178";
|
||||
export declare const version = "ethers/5.0.0-beta.179";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.0-beta.178";
|
||||
exports.version = "ethers/5.0.0-beta.179";
|
||||
|
@ -52,7 +52,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0xe99307ed9f6325739f829929cd18a8dfc85fb8e16875f6c2e7377d32a4524516",
|
||||
"tarballHash": "0xbb6511a2d17061edcd299e6cabae31aebbc834a5627e3c8a25b870bacfef6b24",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.178"
|
||||
"version": "5.0.0-beta.179"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.0.0-beta.178";
|
||||
export const version = "ethers/5.0.0-beta.179";
|
||||
|
2
packages/providers/lib.esm/_version.d.ts
vendored
2
packages/providers/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "providers/5.0.0-beta.158";
|
||||
export declare const version = "providers/5.0.0-beta.159";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.0.0-beta.158";
|
||||
export const version = "providers/5.0.0-beta.159";
|
||||
|
@ -268,7 +268,7 @@ export class EtherscanProvider extends BaseProvider {
|
||||
}
|
||||
url += "/api?module=stats&action=ethprice";
|
||||
url += apiKey;
|
||||
return parseFloat(yield get(url, getResult));
|
||||
return parseFloat((yield get(url, getResult)).ethusd);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
2
packages/providers/lib/_version.d.ts
vendored
2
packages/providers/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "providers/5.0.0-beta.158";
|
||||
export declare const version = "providers/5.0.0-beta.159";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.0-beta.158";
|
||||
exports.version = "providers/5.0.0-beta.159";
|
||||
|
@ -354,7 +354,7 @@ var EtherscanProvider = /** @class */ (function (_super) {
|
||||
url += apiKey;
|
||||
_b = parseFloat;
|
||||
return [4 /*yield*/, get(url, getResult)];
|
||||
case 21: return [2 /*return*/, _b.apply(void 0, [_c.sent()])];
|
||||
case 21: return [2 /*return*/, _b.apply(void 0, [(_c.sent()).ethusd])];
|
||||
case 22: return [3 /*break*/, 23];
|
||||
case 23: return [2 /*return*/, _super.prototype.perform.call(this, method, params)];
|
||||
}
|
||||
|
@ -46,7 +46,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0xaa07e1dc4c72c304c008df843bef1fad68b7bac27fcb74ce6e5c3926b16f6f0c",
|
||||
"tarballHash": "0x4b012376fc8ffb6b49a32840b1b92b2c34ed8e8c0d0cfdca08dd3e516647bd07",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.158"
|
||||
"version": "5.0.0-beta.159"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.0.0-beta.158";
|
||||
export const version = "providers/5.0.0-beta.159";
|
||||
|
Loading…
Reference in New Issue
Block a user