Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 6, 2022
1 parent 3f5bc6d commit 0578a88
Show file tree
Hide file tree
Showing 36 changed files with 316 additions and 255 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ Changelog
This change log is managed by `admin/cmds/update-versions` but may be manually updated.


ethers/v5.5.3 (2021-12-24 02:14)
ethers/v5.5.3 (2022-01-06 03:52)
--------------------------------

- Fixed case-folding in schemes for ENS avatars. ([#2500](https://github.com/ethers-io/ethers.js/issues/2500); [3f5bc6d](https://github.com/ethers-io/ethers.js/commit/3f5bc6ddc1013f0a5974f2ee6f542d6c91480c13))
- Added Kintsugi network. ([#2434](https://github.com/ethers-io/ethers.js/issues/2434); [ab13887](https://github.com/ethers-io/ethers.js/commit/ab13887cda3939703dc1f7e27d139ef6001b7dd2))
- Fix browser random in WebWorkers. ([#2405](https://github.com/ethers-io/ethers.js/issues/2405); [4ba63ac](https://github.com/ethers-io/ethers.js/commit/4ba63acc107fdd0a6d6ef3e27349e65edb007447))
- Add support for IPFS metadata imageUrl in getAvatar. ([#2426](https://github.com/ethers-io/ethers.js/issues/2426); [3d6a7ec](https://github.com/ethers-io/ethers.js/commit/3d6a7ec020eacd993b4b0fd3274574de3ddcc257))
- Do not swallow ENS not supported errors. ([#2387](https://github.com/ethers-io/ethers.js/issues/2387); [2f57c6a](https://github.com/ethers-io/ethers.js/commit/2f57c6a4ab44083b2c03f5e57b2702ab7078d286))
Expand Down
Empty file.
16 changes: 16 additions & 0 deletions misc/admin/lib/cmds/peg-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
import { dirnames, getPackage } from "../local";
import { colorify } from "../log";
const dirname = process.argv[2];
if (dirname == null) {
console.log("Usage: peg-version DIRNAME");
process.exit(1);
}
(async function(dirname) {
const { name, version } = getPackage(dirname);
console.log(colorify.bold(`Pegging ${ name } to ${ version }...`));
})(dirname);
*/
4 changes: 2 additions & 2 deletions misc/admin/lib/cmds/spell-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ abiv
// Query parameters
apikey asc endblock startblock
alchemyapi Cloudflare Etherscan INFURA IPFS MetaMask Nodesmith
alchemyapi arbitrum Cloudflare Etherscan INFURA IPFS MetaMask Nodesmith
Trezor ledgerhq axic bitcoinjs browserify easyseed ethereumjs
goerli homestead kotti kovan mainnet morden mordor rinkeby
goerli homestead kotti kovan mainnet morden mordor rinkeby kintsugi
ropsten testnet lb maticmum
// Demo words
Expand Down
16 changes: 16 additions & 0 deletions misc/admin/src.ts/cmds/peg-version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
import { dirnames, getPackage } from "../local";
import { colorify } from "../log";
const dirname = process.argv[2];
if (dirname == null) {
console.log("Usage: peg-version DIRNAME");
process.exit(1);
}
(async function(dirname) {
const { name, version } = getPackage(dirname);
console.log(colorify.bold(`Pegging ${ name } to ${ version }...`));
})(dirname);
*/
4 changes: 2 additions & 2 deletions misc/admin/src.ts/cmds/spell-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ abiv
// Query parameters
apikey asc endblock startblock
alchemyapi Cloudflare Etherscan INFURA IPFS MetaMask Nodesmith
alchemyapi arbitrum Cloudflare Etherscan INFURA IPFS MetaMask Nodesmith
Trezor ledgerhq axic bitcoinjs browserify easyseed ethereumjs
goerli homestead kotti kovan mainnet morden mordor rinkeby
goerli homestead kotti kovan mainnet morden mordor rinkeby kintsugi
ropsten testnet lb maticmum
// Demo words
Expand Down
403 changes: 205 additions & 198 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions packages/ethers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ We will keep a list of useful packages here.
- `@ethersproject/hardware-wallets` ([documentation](https://docs.ethers.io))


Sponsors
--------

Support the ethers project by [becoming a sponsor](https://ethers.org/sponsoring.html).
Get your logo added below with a link to your website (Gold and Unobtainium tiers)
and on the [ethers.org](https://ethers.org) website.

Huge thanks to our sponsors! `<3 <3`

<a href="https://ethers.org/sponsors/tally-link" target="_blank"><img src="https://ethers.org/sponsors/tally-readme.svg"></a>


License
-------

Expand Down
16 changes: 9 additions & 7 deletions packages/ethers/dist/ethers.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -17270,7 +17270,7 @@ function verifyTypedData(domain, types, value, signature) {
return recoverAddress(TypedDataEncoder.hash(domain, types, value), signature);
}

const version$k = "networks/5.5.1";
const version$k = "networks/5.5.2";

"use strict";
const logger$q = new Logger(version$k);
Expand Down Expand Up @@ -17396,6 +17396,7 @@ const networks = {
name: "goerli",
_defaultProvider: ethDefaultProvider("goerli")
},
kintsugi: { chainId: 1337702, name: "kintsugi" },
// ETC (See: #351)
classic: {
chainId: 61,
Expand Down Expand Up @@ -18908,7 +18909,8 @@ class Resolver {
if (match == null) {
continue;
}
switch (match[1]) {
const scheme = match[1].toLowerCase();
switch (scheme) {
case "https":
linkage.push({ type: "url", content: avatar });
return { linkage, url: avatar };
Expand All @@ -18921,8 +18923,8 @@ class Resolver {
case "erc721":
case "erc1155": {
// Depending on the ERC type, use tokenURI(uint256) or url(uint256)
const selector = (match[1] === "erc721") ? "0xc87b56dd" : "0x0e89341c";
linkage.push({ type: match[1], content: avatar });
const selector = (scheme === "erc721") ? "0xc87b56dd" : "0x0e89341c";
linkage.push({ type: scheme, content: avatar });
// The owner of this name
const owner = (this._resolvedAddress || (yield this.getAddress()));
const comps = (match[2] || "").split("/");
Expand All @@ -18932,7 +18934,7 @@ class Resolver {
const addr = yield this.provider.formatter.address(comps[0]);
const tokenId = hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
// Check that this account owns the token
if (match[1] === "erc721") {
if (scheme === "erc721") {
// ownerOf(uint256 tokenId)
const tokenOwner = this.provider.formatter.callAddress(yield this.provider.call({
to: addr, data: hexConcat(["0x6352211e", tokenId])
Expand All @@ -18942,7 +18944,7 @@ class Resolver {
}
linkage.push({ type: "owner", content: tokenOwner });
}
else if (match[1] === "erc1155") {
else if (scheme === "erc1155") {
// balanceOf(address owner, uint256 tokenId)
const balance = BigNumber.from(yield this.provider.call({
to: addr, data: hexConcat(["0x00fdd58e", hexZeroPad(owner, 32), tokenId])
Expand All @@ -18963,7 +18965,7 @@ class Resolver {
}
linkage.push({ type: "metadata-url", content: metadataUrl });
// ERC-1155 allows a generic {id} in the URL
if (match[1] === "erc1155") {
if (scheme === "erc1155") {
metadataUrl = metadataUrl.replace("{id}", tokenId.substring(2));
linkage.push({ type: "metadata-url-expanded", content: metadataUrl });
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.esm.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.esm.min.js.map

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions packages/ethers/dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -19237,7 +19237,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "networks/5.5.1";
exports.version = "networks/5.5.2";

});

Expand Down Expand Up @@ -19372,6 +19372,7 @@
name: "goerli",
_defaultProvider: ethDefaultProvider("goerli")
},
kintsugi: { chainId: 1337702, name: "kintsugi" },
// ETC (See: #351)
classic: {
chainId: 61,
Expand Down Expand Up @@ -21142,7 +21143,7 @@
};
Resolver.prototype.getAvatar = function () {
return __awaiter(this, void 0, void 0, function () {
var linkage, avatar, i, match, _a, selector, owner, _b, comps, addr, tokenId, tokenOwner, _c, _d, balance, _e, _f, tx, metadataUrl, _g, metadata, imageUrl, ipfs, error_3;
var linkage, avatar, i, match, scheme, _a, selector, owner, _b, comps, addr, tokenId, tokenOwner, _c, _d, balance, _e, _f, tx, metadataUrl, _g, metadata, imageUrl, ipfs, error_3;
return __generator(this, function (_h) {
switch (_h.label) {
case 0:
Expand All @@ -21164,7 +21165,8 @@
if (match == null) {
return [3 /*break*/, 17];
}
_a = match[1];
scheme = match[1].toLowerCase();
_a = scheme;
switch (_a) {
case "https": return [3 /*break*/, 4];
case "data": return [3 /*break*/, 5];
Expand All @@ -21183,8 +21185,8 @@
linkage.push({ type: "ipfs", content: avatar });
return [2 /*return*/, { linkage: linkage, url: getIpfsLink(avatar) }];
case 7:
selector = (match[1] === "erc721") ? "0xc87b56dd" : "0x0e89341c";
linkage.push({ type: match[1], content: avatar });
selector = (scheme === "erc721") ? "0xc87b56dd" : "0x0e89341c";
linkage.push({ type: scheme, content: avatar });
_b = this._resolvedAddress;
if (_b) return [3 /*break*/, 9];
return [4 /*yield*/, this.getAddress()];
Expand All @@ -21201,7 +21203,7 @@
case 10:
addr = _h.sent();
tokenId = (0, lib$1.hexZeroPad)(lib$2.BigNumber.from(comps[1]).toHexString(), 32);
if (!(match[1] === "erc721")) return [3 /*break*/, 12];
if (!(scheme === "erc721")) return [3 /*break*/, 12];
_d = (_c = this.provider.formatter).callAddress;
return [4 /*yield*/, this.provider.call({
to: addr, data: (0, lib$1.hexConcat)(["0x6352211e", tokenId])
Expand All @@ -21214,7 +21216,7 @@
linkage.push({ type: "owner", content: tokenOwner });
return [3 /*break*/, 14];
case 12:
if (!(match[1] === "erc1155")) return [3 /*break*/, 14];
if (!(scheme === "erc1155")) return [3 /*break*/, 14];
_f = (_e = lib$2.BigNumber).from;
return [4 /*yield*/, this.provider.call({
to: addr, data: (0, lib$1.hexConcat)(["0x00fdd58e", (0, lib$1.hexZeroPad)(owner, 32), tokenId])
Expand All @@ -21240,7 +21242,7 @@
}
linkage.push({ type: "metadata-url", content: metadataUrl });
// ERC-1155 allows a generic {id} in the URL
if (match[1] === "erc1155") {
if (scheme === "erc1155") {
metadataUrl = metadataUrl.replace("{id}", tokenId.substring(2));
linkage.push({ type: "metadata-url-expanded", content: metadataUrl });
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.umd.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.umd.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@ethersproject/json-wallets": "5.5.0",
"@ethersproject/keccak256": "5.5.0",
"@ethersproject/logger": "5.5.0",
"@ethersproject/networks": "5.5.1",
"@ethersproject/networks": "5.5.2",
"@ethersproject/pbkdf2": "5.5.0",
"@ethersproject/properties": "5.5.0",
"@ethersproject/providers": "5.5.2",
Expand Down Expand Up @@ -62,7 +62,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"sideEffects": false,
"tarballHash": "0xe64444dccdd3b06e8233b3bf3bf53b9590933b1000a6d1f5410f0a77641b3feb",
"tarballHash": "0x4d7e20ca7a9a62eec334b0c44f1f74c2c98048af2e427ce765ccf73415097489",
"types": "./lib/index.d.ts",
"version": "5.5.3"
}
2 changes: 1 addition & 1 deletion packages/networks/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "networks/5.5.1";
export declare const version = "networks/5.5.2";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/networks/lib.esm/_version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/networks/lib.esm/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/networks/lib.esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0578a88

Please sign in to comment.