Skip to content

Commit d2c9ca0

Browse files
committed
admin: updated dist files
1 parent 805a8b3 commit d2c9ca0

32 files changed

+480
-243
lines changed

CHANGELOG.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ Change Log
33

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

6-
ethers/v6.14.0 (2025-05-06 02:03)
6+
ethers/v6.14.0 (2025-05-06 22:02)
77
---------------------------------
88

9+
- Remove BlockscoutProvider temporarily until custom error issues are fixed ([805a8b3](https://github.com/ethers-io/ethers.js/commit/805a8b3aba26998a1e25055e9d3dd41c01ebbba0)).
910
- EIP-7702 support ([#4916](https://github.com/ethers-io/ethers.js/issues/4916); [db490e1](https://github.com/ethers-io/ethers.js/commit/db490e1afaaa139be9cb38e6b50a1bc4ef28e075), [e7c1bdf](https://github.com/ethers-io/ethers.js/commit/e7c1bdf6f0a5d6f976dddd6375e76445ac6851fc)).
1011
- Added support for to override fetch init options in the Browser ([#3895](https://github.com/ethers-io/ethers.js/issues/3895); [844ae68](https://github.com/ethers-io/ethers.js/commit/844ae68a96deabc4d5f053dad5f1112b06f08d9a)).
1112
- Added EIP-6963 discovery to BrowserProvider ([f5469dd](https://github.com/ethers-io/ethers.js/commit/f5469dd0e0719389d51e0106ee36d07a7ebef875)).
@@ -18,6 +19,38 @@ ethers/v6.13.7 (2025-04-25 21:50)
1819
- Fix FallbackProvider coalescing call exceptions when backends return slightly different error message ([268a0ac](https://github.com/ethers-io/ethers.js/commit/268a0ac5af6a2a59c240195d75ed19047731c6c0)).
1920
- Fixed Infura BSC network URLs ([#4951](https://github.com/ethers-io/ethers.js/issues/4951); [d01b4cb](https://github.com/ethers-io/ethers.js/commit/d01b4cb84b2f00dd04dc5317600a52f1fcf9b316)).
2021

22+
ethers/v6.13.6 (2025-03-21 18:21)
23+
---------------------------------
24+
25+
- Implicitly use EIP-7702 if authorizationList is given and non-empty ([#4961](https://github.com/ethers-io/ethers.js/issues/4961); [e7c1bdf](https://github.com/ethers-io/ethers.js/commit/e7c1bdf6f0a5d6f976dddd6375e76445ac6851fc)).
26+
- Initial EIP-7702 support ([#4916](https://github.com/ethers-io/ethers.js/issues/4916); [db490e1](https://github.com/ethers-io/ethers.js/commit/db490e1afaaa139be9cb38e6b50a1bc4ef28e075)).
27+
- Added support for to override fetch init options in the Browser ([#3895](https://github.com/ethers-io/ethers.js/issues/3895); [844ae68](https://github.com/ethers-io/ethers.js/commit/844ae68a96deabc4d5f053dad5f1112b06f08d9a)).
28+
- Added EIP-6963 discovery to BrowserProvider ([f5469dd](https://github.com/ethers-io/ethers.js/commit/f5469dd0e0719389d51e0106ee36d07a7ebef875)).
29+
- Merge: e5036e77 158f5d02 Merge branch 'main' into wip-v6.14 ([e7165a6](https://github.com/ethers-io/ethers.js/commit/e7165a6151e1fddcc9b8f4f30dfc13ee0a7d6f87)).
30+
- tests: squelch the noisy runtime console API event in browser tests ([79428fd](https://github.com/ethers-io/ethers.js/commit/79428fd44950ca21e9cc1b6f850122461217b0b3)).
31+
- tests: added faucet key environment for browser CI tests ([27d42af](https://github.com/ethers-io/ethers.js/commit/27d42af134bec099164e7afd03420c3dad53e3a9)).
32+
- tests: better runtime exception output for browser tests ([0beed25](https://github.com/ethers-io/ethers.js/commit/0beed258242cff7029ef1806ad0ff4955cb135c1)).
33+
- tests: added more debug endpoints to browser tests ([33bbf66](https://github.com/ethers-io/ethers.js/commit/33bbf662213b5d4a00901e490fd432dbeeb1a26b)).
34+
- tests: added JSON-RPC tests to web browser CI ([1c0c23c](https://github.com/ethers-io/ethers.js/commit/1c0c23c084e389390ce00e5a421267a4f8bdef0d)).
35+
- tests: added browser tests for sending ([afd613a](https://github.com/ethers-io/ethers.js/commit/afd613a2a0c9fb548805ed36e23ad9a5d4bcc239)).
36+
- tests: debugging browser tests failing to launch ([d1baa74](https://github.com/ethers-io/ethers.js/commit/d1baa741f6b272ba692e0e78787cacb1bd42a8b4)).
37+
- tests: fix assert call for browser assert ([1806bbd](https://github.com/ethers-io/ethers.js/commit/1806bbde27523933fb140ad985426f94e0286faf)).
38+
- tests: inlcude more node tests in the browser tests ([92fd5d1](https://github.com/ethers-io/ethers.js/commit/92fd5d1f47c640caa7100bcccf0b133e866989e6)).
39+
- tests: move more tests to dev network ([996f30c](https://github.com/ethers-io/ethers.js/commit/996f30c674002cea316fa7aa3929f43409f934bc)).
40+
- tests: debugging CI browser failure ([ce7212d](https://github.com/ethers-io/ethers.js/commit/ce7212d03d6867081603794f0480f31d053823c4)).
41+
- tests: debugging CI browser failure ([f1821a6](https://github.com/ethers-io/ethers.js/commit/f1821a696763938ca9d44815bdcd5cc043eb3900)).
42+
- tests: debugging CI browser failure ([cc9119c](https://github.com/ethers-io/ethers.js/commit/cc9119cecb6b970544861642861807c520eb763b)).
43+
- tests: debugging CI browser failure ([3ac33f9](https://github.com/ethers-io/ethers.js/commit/3ac33f9a40e40dabf9c19b8cc7114ce9897a3646)).
44+
- tests: debugging CI browser failure ([25b11ee](https://github.com/ethers-io/ethers.js/commit/25b11ee0eaa57293fe981b9b6b19bdae7d4db169)).
45+
- tests: debug CI failing ([3bcbcae](https://github.com/ethers-io/ethers.js/commit/3bcbcaeb025c530717b15c5ba099d320fdd9f934)).
46+
- tests: added circular support to browser-safe inspect ([3854b39](https://github.com/ethers-io/ethers.js/commit/3854b39763a2a57f363bf9bf925adcc27002bde1)).
47+
- tests: added browser-safe inspect for tests ([e299a31](https://github.com/ethers-io/ethers.js/commit/e299a31ecb9017baf07c58bb927c2e718ebeb447)).
48+
- tests: fix for browser CI tests ([74a68bc](https://github.com/ethers-io/ethers.js/commit/74a68bcc4976e48a00f57f5279664551b47b6840)).
49+
- tests: adding debug info to local JsonPrcProvider ([c508538](https://github.com/ethers-io/ethers.js/commit/c5085385563c57c7958be1ab413079dc8409c8c4)).
50+
- tests: temporarily remove QuickNode ([499ed8c](https://github.com/ethers-io/ethers.js/commit/499ed8c4bb91b918148c348b805ce753584065b6)).
51+
- Accept modern KZG library API while exposing legacy API ([#4841](https://github.com/ethers-io/ethers.js/issues/4841); [e5036e7](https://github.com/ethers-io/ethers.js/commit/e5036e778624fea957dd847f7be1a9f148b8997e)).
52+
- Added CommunityResourcable to exports ([#4776](https://github.com/ethers-io/ethers.js/issues/4776); [bca8d1b](https://github.com/ethers-io/ethers.js/commit/bca8d1b549569e6f7793f07fcc46dfd731e37d2b)).
53+
2154
ethers/v6.13.5 (2025-01-04 15:26)
2255
---------------------------------
2356

dist/ethers.js

+151-103
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
33
/**
44
* The current version of Ethers.
55
*/
6-
const version = "6.13.7";
6+
const version = "6.14.0";
77

88
/**
99
* Property helper functions.
@@ -20779,6 +20779,12 @@ class JsonRpcApiProvider extends AbstractProvider {
2077920779
info: { payload, error }
2078020780
});
2078120781
}
20782+
else if (msg.match(/nonce/i) && msg.match(/too low/i)) {
20783+
return makeError("nonce has already been used", "NONCE_EXPIRED", {
20784+
transaction: (payload.params[0]),
20785+
info: { payload, error }
20786+
});
20787+
}
2078220788
}
2078320789
if (method === "eth_call" || method === "eth_estimateGas") {
2078420790
const result = spelunkData(error);
@@ -21337,103 +21343,6 @@ class AlchemyProvider extends JsonRpcProvider {
2133721343
}
2133821344
}
2133921345

21340-
/**
21341-
* [[link-blockscout]] provides a third-party service for connecting to
21342-
* various blockchains over JSON-RPC.
21343-
*
21344-
* **Supported Networks**
21345-
*
21346-
* - Ethereum Mainnet (``mainnet``)
21347-
* - Sepolia Testnet (``sepolia``)
21348-
* - Holesky Testnet (``holesky``)
21349-
* - Ethereum Classic (``classic``)
21350-
* - Arbitrum (``arbitrum``)
21351-
* - Base (``base``)
21352-
* - Base Sepolia Testnet (``base-sepolia``)
21353-
* - Gnosis (``xdai``)
21354-
* - Optimism (``optimism``)
21355-
* - Optimism Sepolia Testnet (``optimism-sepolia``)
21356-
* - Polygon (``matic``)
21357-
*
21358-
* @_subsection: api/providers/thirdparty:Blockscout [providers-blockscout]
21359-
*/
21360-
function getUrl(name) {
21361-
switch (name) {
21362-
case "mainnet":
21363-
return "https:/\/eth.blockscout.com/api/eth-rpc";
21364-
case "sepolia":
21365-
return "https:/\/eth-sepolia.blockscout.com/api/eth-rpc";
21366-
case "holesky":
21367-
return "https:/\/eth-holesky.blockscout.com/api/eth-rpc";
21368-
case "classic":
21369-
return "https:/\/etc.blockscout.com/api/eth-rpc";
21370-
case "arbitrum":
21371-
return "https:/\/arbitrum.blockscout.com/api/eth-rpc";
21372-
case "base":
21373-
return "https:/\/base.blockscout.com/api/eth-rpc";
21374-
case "base-sepolia":
21375-
return "https:/\/base-sepolia.blockscout.com/api/eth-rpc";
21376-
case "matic":
21377-
return "https:/\/polygon.blockscout.com/api/eth-rpc";
21378-
case "optimism":
21379-
return "https:/\/optimism.blockscout.com/api/eth-rpc";
21380-
case "optimism-sepolia":
21381-
return "https:/\/optimism-sepolia.blockscout.com/api/eth-rpc";
21382-
case "xdai":
21383-
return "https:/\/gnosis.blockscout.com/api/eth-rpc";
21384-
}
21385-
assertArgument(false, "unsupported network", "network", name);
21386-
}
21387-
/**
21388-
* The **BlockscoutProvider** connects to the [[link-blockscout]]
21389-
* JSON-RPC end-points.
21390-
*
21391-
* By default, a highly-throttled API key is used, which is
21392-
* appropriate for quick prototypes and simple scripts. To
21393-
* gain access to an increased rate-limit, it is highly
21394-
* recommended to [sign up here](link-blockscout).
21395-
*/
21396-
class BlockscoutProvider extends JsonRpcProvider {
21397-
/**
21398-
* The API key.
21399-
*/
21400-
apiKey;
21401-
/**
21402-
* Creates a new **BlockscoutProvider**.
21403-
*/
21404-
constructor(_network, apiKey) {
21405-
if (_network == null) {
21406-
_network = "mainnet";
21407-
}
21408-
const network = Network.from(_network);
21409-
if (apiKey == null) {
21410-
apiKey = null;
21411-
}
21412-
const request = BlockscoutProvider.getRequest(network);
21413-
super(request, network, { staticNetwork: network });
21414-
defineProperties(this, { apiKey });
21415-
}
21416-
_getProvider(chainId) {
21417-
try {
21418-
return new BlockscoutProvider(chainId, this.apiKey);
21419-
}
21420-
catch (error) { }
21421-
return super._getProvider(chainId);
21422-
}
21423-
isCommunityResource() {
21424-
return (this.apiKey === null);
21425-
}
21426-
/**
21427-
* Returns a prepared request for connecting to %%network%%
21428-
* with %%apiKey%%.
21429-
*/
21430-
static getRequest(network) {
21431-
const request = new FetchRequest(getUrl(network.name));
21432-
request.allowGzip = true;
21433-
return request;
21434-
}
21435-
}
21436-
2143721346
/**
2143821347
* [[link-chainstack]] provides a third-party service for connecting to
2143921348
* various blockchains over JSON-RPC.
@@ -23515,12 +23424,13 @@ function getDefaultProvider(network, options) {
2351523424
}
2351623425
catch (error) { }
2351723426
}
23518-
if (allowService("blockscout")) {
23519-
try {
23520-
providers.push(new BlockscoutProvider(network, options.blockscout));
23427+
/* Temporarily remove until custom error issue is fixed
23428+
if (allowService("blockscout")) {
23429+
try {
23430+
providers.push(new BlockscoutProvider(network, options.blockscout));
23431+
} catch (error) { }
2352123432
}
23522-
catch (error) { }
23523-
}
23433+
*/
2352423434
if (allowService("chainstack")) {
2352523435
try {
2352623436
providers.push(new ChainstackProvider(network, options.chainstack));
@@ -23867,6 +23777,144 @@ class BrowserProvider extends JsonRpcApiPollingProvider {
2386723777
}
2386823778
}
2386923779

23780+
/**
23781+
* [[link-blockscout]] provides a third-party service for connecting to
23782+
* various blockchains over JSON-RPC.
23783+
*
23784+
* **Supported Networks**
23785+
*
23786+
* - Ethereum Mainnet (``mainnet``)
23787+
* - Sepolia Testnet (``sepolia``)
23788+
* - Holesky Testnet (``holesky``)
23789+
* - Ethereum Classic (``classic``)
23790+
* - Arbitrum (``arbitrum``)
23791+
* - Base (``base``)
23792+
* - Base Sepolia Testnet (``base-sepolia``)
23793+
* - Gnosis (``xdai``)
23794+
* - Optimism (``optimism``)
23795+
* - Optimism Sepolia Testnet (``optimism-sepolia``)
23796+
* - Polygon (``matic``)
23797+
*
23798+
* @_subsection: api/providers/thirdparty:Blockscout [providers-blockscout]
23799+
*/
23800+
function getUrl(name) {
23801+
switch (name) {
23802+
case "mainnet":
23803+
return "https:/\/eth.blockscout.com/api/eth-rpc";
23804+
case "sepolia":
23805+
return "https:/\/eth-sepolia.blockscout.com/api/eth-rpc";
23806+
case "holesky":
23807+
return "https:/\/eth-holesky.blockscout.com/api/eth-rpc";
23808+
case "classic":
23809+
return "https:/\/etc.blockscout.com/api/eth-rpc";
23810+
case "arbitrum":
23811+
return "https:/\/arbitrum.blockscout.com/api/eth-rpc";
23812+
case "base":
23813+
return "https:/\/base.blockscout.com/api/eth-rpc";
23814+
case "base-sepolia":
23815+
return "https:/\/base-sepolia.blockscout.com/api/eth-rpc";
23816+
case "matic":
23817+
return "https:/\/polygon.blockscout.com/api/eth-rpc";
23818+
case "optimism":
23819+
return "https:/\/optimism.blockscout.com/api/eth-rpc";
23820+
case "optimism-sepolia":
23821+
return "https:/\/optimism-sepolia.blockscout.com/api/eth-rpc";
23822+
case "xdai":
23823+
return "https:/\/gnosis.blockscout.com/api/eth-rpc";
23824+
}
23825+
assertArgument(false, "unsupported network", "network", name);
23826+
}
23827+
/**
23828+
* The **BlockscoutProvider** connects to the [[link-blockscout]]
23829+
* JSON-RPC end-points.
23830+
*
23831+
* By default, a highly-throttled API key is used, which is
23832+
* appropriate for quick prototypes and simple scripts. To
23833+
* gain access to an increased rate-limit, it is highly
23834+
* recommended to [sign up here](link-blockscout).
23835+
*/
23836+
class BlockscoutProvider extends JsonRpcProvider {
23837+
/**
23838+
* The API key.
23839+
*/
23840+
apiKey;
23841+
/**
23842+
* Creates a new **BlockscoutProvider**.
23843+
*/
23844+
constructor(_network, apiKey) {
23845+
if (_network == null) {
23846+
_network = "mainnet";
23847+
}
23848+
const network = Network.from(_network);
23849+
if (apiKey == null) {
23850+
apiKey = null;
23851+
}
23852+
const request = BlockscoutProvider.getRequest(network);
23853+
super(request, network, { staticNetwork: network });
23854+
defineProperties(this, { apiKey });
23855+
}
23856+
_getProvider(chainId) {
23857+
try {
23858+
return new BlockscoutProvider(chainId, this.apiKey);
23859+
}
23860+
catch (error) { }
23861+
return super._getProvider(chainId);
23862+
}
23863+
isCommunityResource() {
23864+
return (this.apiKey === null);
23865+
}
23866+
getRpcRequest(req) {
23867+
// Blockscout enforces the TAG argument for estimateGas
23868+
const resp = super.getRpcRequest(req);
23869+
if (resp && resp.method === "eth_estimateGas" && resp.args.length == 1) {
23870+
resp.args = resp.args.slice();
23871+
resp.args.push("latest");
23872+
}
23873+
return resp;
23874+
}
23875+
getRpcError(payload, _error) {
23876+
const error = _error ? _error.error : null;
23877+
// Blockscout currently drops the VM result and replaces it with a
23878+
// human-readable string, so we need to make it machine-readable.
23879+
if (error && error.code === -32015 && !isHexString(error.data || "", true)) {
23880+
const panicCodes = {
23881+
"assert(false)": "01",
23882+
"arithmetic underflow or overflow": "11",
23883+
"division or modulo by zero": "12",
23884+
"out-of-bounds array access; popping on an empty array": "31",
23885+
"out-of-bounds access of an array or bytesN": "32"
23886+
};
23887+
let panicCode = "";
23888+
if (error.message === "VM execution error.") {
23889+
// eth_call passes this message
23890+
panicCode = panicCodes[error.data] || "";
23891+
}
23892+
else if (panicCodes[error.message || ""]) {
23893+
panicCode = panicCodes[error.message || ""];
23894+
}
23895+
if (panicCode) {
23896+
error.message += ` (reverted: ${error.data})`;
23897+
error.data = "0x4e487b7100000000000000000000000000000000000000000000000000000000000000" + panicCode;
23898+
}
23899+
}
23900+
else if (error && error.code === -32000) {
23901+
if (error.message === "wrong transaction nonce") {
23902+
error.message += " (nonce too low)";
23903+
}
23904+
}
23905+
return super.getRpcError(payload, _error);
23906+
}
23907+
/**
23908+
* Returns a prepared request for connecting to %%network%%
23909+
* with %%apiKey%%.
23910+
*/
23911+
static getRequest(network) {
23912+
const request = new FetchRequest(getUrl(network.name));
23913+
request.allowGzip = true;
23914+
return request;
23915+
}
23916+
}
23917+
2387023918
/**
2387123919
* [[link-pocket]] provides a third-party service for connecting to
2387223920
* various blockchains over JSON-RPC.

dist/ethers.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ethers.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)