Skip to content

Commit

Permalink
admin: update dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 30, 2024
1 parent cebe5ee commit 2d2572a
Show file tree
Hide file tree
Showing 29 changed files with 104 additions and 30 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ Change Log

This change log is maintained by `src.ts/_admin/update-changelog.ts` but may also be manually updated.

ethers/v6.12.2 (2024-05-16 11:03)
ethers/v6.12.2 (2024-05-30 17:24)
---------------------------------

- Added Base endpoints to EtherscanProvider ([#4729](https://github.com/ethers-io/ethers.js/issues/4729); [7e1dc95](https://github.com/ethers-io/ethers.js/commit/7e1dc95ea2564c1eb0a9452b9a16002f3696765c)).
- Copy EIP-4844 properties during estimateGas and call ([#4728](https://github.com/ethers-io/ethers.js/issues/4728); [cebe5ee](https://github.com/ethers-io/ethers.js/commit/cebe5eed91de0db5931b7847e76ee27cb2ce9219)).
- Use non-capturing regex for data to prevent memory exhaustion for long strings ([#4741](https://github.com/ethers-io/ethers.js/issues/4741); [5463aa0](https://github.com/ethers-io/ethers.js/commit/5463aa03eacde45322a1e05693ce90e4d7abcaa7)).
- Added Base endpointsto EtherscanProvider ([#4729](https://github.com/ethers-io/ethers.js/issues/4729); [7e1dc95](https://github.com/ethers-io/ethers.js/commit/7e1dc95ea2564c1eb0a9452b9a16002f3696765c)).

ethers/v6.12.1 (2024-04-30 22:46)
---------------------------------
Expand Down
22 changes: 20 additions & 2 deletions dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function _getBytes(value, name, copy) {
}
return value;
}
if (typeof (value) === "string" && value.match(/^0x([0-9a-f][0-9a-f])*$/i)) {
if (typeof (value) === "string" && value.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {
const result = new Uint8Array((value.length - 2) / 2);
let offset = 2;
for (let i = 0; i < result.length; i++) {
Expand Down Expand Up @@ -20182,7 +20182,7 @@ class JsonRpcApiProvider extends AbstractProvider {
if (req.method === "call" || req.method === "estimateGas") {
let tx = req.transaction;
if (tx && tx.type != null && getBigInt(tx.type)) {
// If there are no EIP-1559 properties, it might be non-EIP-a559
// If there are no EIP-1559 or newer properties, it might be pre-EIP-1559
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
const feeData = await this.getFeeData();
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
Expand Down Expand Up @@ -20361,6 +20361,14 @@ class JsonRpcApiProvider extends AbstractProvider {
if (tx.accessList) {
result["accessList"] = accessListify(tx.accessList);
}
if (tx.blobVersionedHashes) {
// @TODO: Remove this <any> case once EIP-4844 added to prepared tx
result["blobVersionedHashes"] = tx.blobVersionedHashes.map(h => h.toLowerCase());
}
// @TODO: blobs should probably also be copied over, optionally
// accounting for the kzg property to backfill blobVersionedHashes
// using the commitment. Or should that be left as an exercise to
// the caller?
return result;
}
/**
Expand Down Expand Up @@ -21412,6 +21420,16 @@ class EtherscanProvider extends AbstractProvider {
return `{address:"${set.address}",storageKeys:["${set.storageKeys.join('","')}"]}`;
}).join(",") + "]";
}
else if (key === "blobVersionedHashes") {
if (value.length === 0) {
continue;
}
// @TODO: update this once the API supports blobs
assert(false, "Etherscan API does not support blobVersionedHashes", "UNSUPPORTED_OPERATION", {
operation: "_getTransactionPostData",
info: { transaction }
});
}
else {
value = hexlify(value);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

22 changes: 20 additions & 2 deletions dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
}
return value;
}
if (typeof (value) === "string" && value.match(/^0x([0-9a-f][0-9a-f])*$/i)) {
if (typeof (value) === "string" && value.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {
const result = new Uint8Array((value.length - 2) / 2);
let offset = 2;
for (let i = 0; i < result.length; i++) {
Expand Down Expand Up @@ -20188,7 +20188,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
if (req.method === "call" || req.method === "estimateGas") {
let tx = req.transaction;
if (tx && tx.type != null && getBigInt(tx.type)) {
// If there are no EIP-1559 properties, it might be non-EIP-a559
// If there are no EIP-1559 or newer properties, it might be pre-EIP-1559
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
const feeData = await this.getFeeData();
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
Expand Down Expand Up @@ -20367,6 +20367,14 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
if (tx.accessList) {
result["accessList"] = accessListify(tx.accessList);
}
if (tx.blobVersionedHashes) {
// @TODO: Remove this <any> case once EIP-4844 added to prepared tx
result["blobVersionedHashes"] = tx.blobVersionedHashes.map(h => h.toLowerCase());
}
// @TODO: blobs should probably also be copied over, optionally
// accounting for the kzg property to backfill blobVersionedHashes
// using the commitment. Or should that be left as an exercise to
// the caller?
return result;
}
/**
Expand Down Expand Up @@ -21418,6 +21426,16 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
return `{address:"${set.address}",storageKeys:["${set.storageKeys.join('","')}"]}`;
}).join(",") + "]";
}
else if (key === "blobVersionedHashes") {
if (value.length === 0) {
continue;
}
// @TODO: update this once the API supports blobs
assert(false, "Etherscan API does not support blobVersionedHashes", "UNSUPPORTED_OPERATION", {
operation: "_getTransactionPostData",
info: { transaction }
});
}
else {
value = hexlify(value);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.umd.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wordlists-extra.js

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

2 changes: 1 addition & 1 deletion dist/wordlists-extra.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wordlists-extra.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider-etherscan.d.ts.map

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

10 changes: 10 additions & 0 deletions lib.commonjs/providers/provider-etherscan.js

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

Loading

0 comments on commit 2d2572a

Please sign in to comment.