Skip to content

Commit cf00331

Browse files
committed
admin: updated dist files
1 parent ee79d7d commit cf00331

32 files changed

+162
-142
lines changed

dist/ethers.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function stringify$1(value) {
109109
* Returns true if the %%error%% matches an error thrown by ethers
110110
* that matches the error %%code%%.
111111
*
112-
* In TypeScript envornoments, this can be used to check that %%error%%
112+
* In TypeScript environments, this can be used to check that %%error%%
113113
* matches an EthersError type, which means the expected properties will
114114
* be set.
115115
*
@@ -135,13 +135,13 @@ function isCallException(error) {
135135
}
136136
/**
137137
* Returns a new Error configured to the format ethers emits errors, with
138-
* the %%message%%, [[api:ErrorCode]] %%code%% and additioanl properties
138+
* the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
139139
* for the corresponding EthersError.
140140
*
141141
* Each error in ethers includes the version of ethers, a
142-
* machine-readable [[ErrorCode]], and depneding on %%code%%, additional
143-
* required properties. The error message will also include the %%meeage%%,
144-
* ethers version, %%code%% and all aditional properties, serialized.
142+
* machine-readable [[ErrorCode]], and depending on %%code%%, additional
143+
* required properties. The error message will also include the %%message%%,
144+
* ethers version, %%code%% and all additional properties, serialized.
145145
*/
146146
function makeError(message, code, info) {
147147
let shortMessage = message;
@@ -1031,18 +1031,18 @@ function createGetUrl(options) {
10311031

10321032
/**
10331033
* Fetching content from the web is environment-specific, so Ethers
1034-
* provides an abstraction the each environment can implement to provide
1034+
* provides an abstraction that each environment can implement to provide
10351035
* this service.
10361036
*
10371037
* On [Node.js](link-node), the ``http`` and ``https`` libs are used to
10381038
* create a request object, register event listeners and process data
10391039
* and populate the [[FetchResponse]].
10401040
*
10411041
* In a browser, the [DOM fetch](link-js-fetch) is used, and the resulting
1042-
* ``Promise`` is waited on to retreive the payload.
1042+
* ``Promise`` is waited on to retrieve the payload.
10431043
*
10441044
* The [[FetchRequest]] is responsible for handling many common situations,
1045-
* such as redirects, server throttling, authentcation, etc.
1045+
* such as redirects, server throttling, authentication, etc.
10461046
*
10471047
* It also handles common gateways, such as IPFS and data URIs.
10481048
*
@@ -1166,7 +1166,7 @@ class FetchRequest {
11661166
#throttle;
11671167
#getUrlFunc;
11681168
/**
1169-
* The fetch URI to requrest.
1169+
* The fetch URL to request.
11701170
*/
11711171
get url() { return this.#url; }
11721172
set url(url) {
@@ -1180,15 +1180,15 @@ class FetchRequest {
11801180
* header.
11811181
*
11821182
* If %%body%% is null, the body is cleared (along with the
1183-
* intrinsic ``Content-Type``) and the .
1183+
* intrinsic ``Content-Type``).
11841184
*
1185-
* If %%body%% is a string, the intrincis ``Content-Type`` is set to
1185+
* If %%body%% is a string, the intrinsic ``Content-Type`` is set to
11861186
* ``text/plain``.
11871187
*
1188-
* If %%body%% is a Uint8Array, the intrincis ``Content-Type`` is set to
1188+
* If %%body%% is a Uint8Array, the intrinsic ``Content-Type`` is set to
11891189
* ``application/octet-stream``.
11901190
*
1191-
* If %%body%% is any other object, the intrincis ``Content-Type`` is
1191+
* If %%body%% is any other object, the intrinsic ``Content-Type`` is
11921192
* set to ``application/json``.
11931193
*/
11941194
get body() {
@@ -1248,7 +1248,7 @@ class FetchRequest {
12481248
* The headers that will be used when requesting the URI. All
12491249
* keys are lower-case.
12501250
*
1251-
* This object is a copy, so any chnages will **NOT** be reflected
1251+
* This object is a copy, so any changes will **NOT** be reflected
12521252
* in the ``FetchRequest``.
12531253
*
12541254
* To set a header entry, use the ``setHeader`` method.
@@ -1340,7 +1340,7 @@ class FetchRequest {
13401340
this.#allowInsecure = !!value;
13411341
}
13421342
/**
1343-
* The timeout (in milliseconds) to wait for a complere response.
1343+
* The timeout (in milliseconds) to wait for a complete response.
13441344
* //(default: 5 minutes)//
13451345
*/
13461346
get timeout() { return this.#timeout; }
@@ -1547,7 +1547,7 @@ class FetchRequest {
15471547
* to %%location%%.
15481548
*/
15491549
redirect(location) {
1550-
// Redirection; for now we only support absolute locataions
1550+
// Redirection; for now we only support absolute locations
15511551
const current = this.url.split(":")[0].toLowerCase();
15521552
const target = location.split(":")[0].toLowerCase();
15531553
// Don't allow redirecting:
@@ -1685,7 +1685,7 @@ class FetchRequest {
16851685
}
16861686
}
16871687
/**
1688-
* The response for a FetchREquest.
1688+
* The response for a FetchRequest.
16891689
*/
16901690
class FetchResponse {
16911691
#statusCode;
@@ -1815,7 +1815,7 @@ class FetchResponse {
18151815
return this.headers[key.toLowerCase()];
18161816
}
18171817
/**
1818-
* Returns true of the response has a body.
1818+
* Returns true if the response has a body.
18191819
*/
18201820
hasBody() {
18211821
return (this.#body != null);
@@ -22088,7 +22088,7 @@ const Testnets = "goerli kovan sepolia classicKotti optimism-goerli arbitrum-goe
2208822088
* // third-party services available
2208922089
* provider = getDefaultProvider("mainnet");
2209022090
*
22091-
* // Connect to Polygoin, but only allow Etherscan and
22091+
* // Connect to Polygon, but only allow Etherscan and
2209222092
* // INFURA and use "MY_API_KEY" in calls to Etherscan.
2209322093
* provider = getDefaultProvider("matic", {
2209422094
* etherscan: "MY_API_KEY",
@@ -24369,7 +24369,7 @@ class Wallet extends BaseWallet {
2436924369
return Wallet.#fromAccount(account);
2437024370
}
2437124371
/**
24372-
* Creates a new random [[HDNodeWallet]] using the avavilable
24372+
* Creates a new random [[HDNodeWallet]] using the available
2437324373
* [cryptographic random source](randomBytes).
2437424374
*
2437524375
* If there is no crytographic random source, this will throw.

dist/ethers.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ethers.umd.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
115115
* Returns true if the %%error%% matches an error thrown by ethers
116116
* that matches the error %%code%%.
117117
*
118-
* In TypeScript envornoments, this can be used to check that %%error%%
118+
* In TypeScript environments, this can be used to check that %%error%%
119119
* matches an EthersError type, which means the expected properties will
120120
* be set.
121121
*
@@ -141,13 +141,13 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
141141
}
142142
/**
143143
* Returns a new Error configured to the format ethers emits errors, with
144-
* the %%message%%, [[api:ErrorCode]] %%code%% and additioanl properties
144+
* the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
145145
* for the corresponding EthersError.
146146
*
147147
* Each error in ethers includes the version of ethers, a
148-
* machine-readable [[ErrorCode]], and depneding on %%code%%, additional
149-
* required properties. The error message will also include the %%meeage%%,
150-
* ethers version, %%code%% and all aditional properties, serialized.
148+
* machine-readable [[ErrorCode]], and depending on %%code%%, additional
149+
* required properties. The error message will also include the %%message%%,
150+
* ethers version, %%code%% and all additional properties, serialized.
151151
*/
152152
function makeError(message, code, info) {
153153
let shortMessage = message;
@@ -1037,18 +1037,18 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
10371037

10381038
/**
10391039
* Fetching content from the web is environment-specific, so Ethers
1040-
* provides an abstraction the each environment can implement to provide
1040+
* provides an abstraction that each environment can implement to provide
10411041
* this service.
10421042
*
10431043
* On [Node.js](link-node), the ``http`` and ``https`` libs are used to
10441044
* create a request object, register event listeners and process data
10451045
* and populate the [[FetchResponse]].
10461046
*
10471047
* In a browser, the [DOM fetch](link-js-fetch) is used, and the resulting
1048-
* ``Promise`` is waited on to retreive the payload.
1048+
* ``Promise`` is waited on to retrieve the payload.
10491049
*
10501050
* The [[FetchRequest]] is responsible for handling many common situations,
1051-
* such as redirects, server throttling, authentcation, etc.
1051+
* such as redirects, server throttling, authentication, etc.
10521052
*
10531053
* It also handles common gateways, such as IPFS and data URIs.
10541054
*
@@ -1172,7 +1172,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
11721172
#throttle;
11731173
#getUrlFunc;
11741174
/**
1175-
* The fetch URI to requrest.
1175+
* The fetch URL to request.
11761176
*/
11771177
get url() { return this.#url; }
11781178
set url(url) {
@@ -1186,15 +1186,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
11861186
* header.
11871187
*
11881188
* If %%body%% is null, the body is cleared (along with the
1189-
* intrinsic ``Content-Type``) and the .
1189+
* intrinsic ``Content-Type``).
11901190
*
1191-
* If %%body%% is a string, the intrincis ``Content-Type`` is set to
1191+
* If %%body%% is a string, the intrinsic ``Content-Type`` is set to
11921192
* ``text/plain``.
11931193
*
1194-
* If %%body%% is a Uint8Array, the intrincis ``Content-Type`` is set to
1194+
* If %%body%% is a Uint8Array, the intrinsic ``Content-Type`` is set to
11951195
* ``application/octet-stream``.
11961196
*
1197-
* If %%body%% is any other object, the intrincis ``Content-Type`` is
1197+
* If %%body%% is any other object, the intrinsic ``Content-Type`` is
11981198
* set to ``application/json``.
11991199
*/
12001200
get body() {
@@ -1254,7 +1254,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
12541254
* The headers that will be used when requesting the URI. All
12551255
* keys are lower-case.
12561256
*
1257-
* This object is a copy, so any chnages will **NOT** be reflected
1257+
* This object is a copy, so any changes will **NOT** be reflected
12581258
* in the ``FetchRequest``.
12591259
*
12601260
* To set a header entry, use the ``setHeader`` method.
@@ -1346,7 +1346,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
13461346
this.#allowInsecure = !!value;
13471347
}
13481348
/**
1349-
* The timeout (in milliseconds) to wait for a complere response.
1349+
* The timeout (in milliseconds) to wait for a complete response.
13501350
* //(default: 5 minutes)//
13511351
*/
13521352
get timeout() { return this.#timeout; }
@@ -1553,7 +1553,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
15531553
* to %%location%%.
15541554
*/
15551555
redirect(location) {
1556-
// Redirection; for now we only support absolute locataions
1556+
// Redirection; for now we only support absolute locations
15571557
const current = this.url.split(":")[0].toLowerCase();
15581558
const target = location.split(":")[0].toLowerCase();
15591559
// Don't allow redirecting:
@@ -1691,7 +1691,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
16911691
}
16921692
}
16931693
/**
1694-
* The response for a FetchREquest.
1694+
* The response for a FetchRequest.
16951695
*/
16961696
class FetchResponse {
16971697
#statusCode;
@@ -1821,7 +1821,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
18211821
return this.headers[key.toLowerCase()];
18221822
}
18231823
/**
1824-
* Returns true of the response has a body.
1824+
* Returns true if the response has a body.
18251825
*/
18261826
hasBody() {
18271827
return (this.#body != null);
@@ -22094,7 +22094,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
2209422094
* // third-party services available
2209522095
* provider = getDefaultProvider("mainnet");
2209622096
*
22097-
* // Connect to Polygoin, but only allow Etherscan and
22097+
* // Connect to Polygon, but only allow Etherscan and
2209822098
* // INFURA and use "MY_API_KEY" in calls to Etherscan.
2209922099
* provider = getDefaultProvider("matic", {
2210022100
* etherscan: "MY_API_KEY",
@@ -24375,7 +24375,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
2437524375
return Wallet.#fromAccount(account);
2437624376
}
2437724377
/**
24378-
* Creates a new random [[HDNodeWallet]] using the avavilable
24378+
* Creates a new random [[HDNodeWallet]] using the available
2437924379
* [cryptographic random source](randomBytes).
2438024380
*
2438124381
* If there is no crytographic random source, this will throw.

dist/ethers.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/wordlists-extra.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/wordlists-extra.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib.commonjs/providers/default-provider.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import { WebSocketLike } from "./provider-websocket.js";
3737
* // third-party services available
3838
* provider = getDefaultProvider("mainnet");
3939
*
40-
* // Connect to Polygoin, but only allow Etherscan and
40+
* // Connect to Polygon, but only allow Etherscan and
4141
* // INFURA and use "MY_API_KEY" in calls to Etherscan.
4242
* provider = getDefaultProvider("matic", {
4343
* etherscan: "MY_API_KEY",

lib.commonjs/providers/default-provider.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib.commonjs/providers/signer.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export interface Signer extends Addressable, ContractRunner, NameResolver {
100100
*/
101101
sendTransaction(tx: TransactionRequest): Promise<TransactionResponse>;
102102
/**
103-
* Signers an [[link-eip-191]] prefixed personal message.
103+
* Signs an [[link-eip-191]] prefixed personal message.
104104
*
105105
* If the %%message%% is a string, it is signed as UTF-8 encoded bytes. It is **not**
106106
* interpretted as a [[BytesLike]]; so the string ``"0x1234"`` is signed as six

lib.commonjs/utils/errors.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import type { TransactionRequest, TransactionReceipt, TransactionResponse } from
1111
import type { FetchRequest, FetchResponse } from "./fetch.js";
1212
/**
1313
* An error may contain additional properties, but those must not
14-
* conflict with any impliciat properties.
14+
* conflict with any implicit properties.
1515
*/
1616
export type ErrorInfo<T> = Omit<T, "code" | "name" | "message" | "shortMessage"> & {
1717
shortMessage?: string;
1818
};
1919
/**
2020
* All errors emitted by ethers have an **ErrorCode** to help
21-
* identify and coalesce errors to simplfy programatic analysis.
21+
* identify and coalesce errors to simplify programmatic analysis.
2222
*
2323
* Each **ErrorCode** is the %%code%% proerty of a coresponding
2424
* [[EthersError]].
@@ -123,7 +123,7 @@ export interface NotImplementedError extends EthersError<"NOT_IMPLEMENTED"> {
123123
/**
124124
* This Error indicates that the attempted operation is not supported.
125125
*
126-
* This could range from a specifc JSON-RPC end-point not supporting
126+
* This could range from a specific JSON-RPC end-point not supporting
127127
* a feature to a specific configuration of an object prohibiting the
128128
* operation.
129129
*
@@ -137,7 +137,7 @@ export interface UnsupportedOperationError extends EthersError<"UNSUPPORTED_OPER
137137
operation: string;
138138
}
139139
/**
140-
* This Error indicates a proplem connecting to a network.
140+
* This Error indicates a problem connecting to a network.
141141
*/
142142
export interface NetworkError extends EthersError<"NETWORK_ERROR"> {
143143
/**
@@ -183,7 +183,7 @@ export interface TimeoutError extends EthersError<"TIMEOUT"> {
183183
}
184184
/**
185185
* This Error indicates that a provided set of data cannot
186-
* be correctly interpretted.
186+
* be correctly interpreted.
187187
*/
188188
export interface BadDataError extends EthersError<"BAD_DATA"> {
189189
/**
@@ -451,7 +451,7 @@ export type CodedEthersError<T> = T extends "UNKNOWN_ERROR" ? UnknownError : T e
451451
* Returns true if the %%error%% matches an error thrown by ethers
452452
* that matches the error %%code%%.
453453
*
454-
* In TypeScript envornoments, this can be used to check that %%error%%
454+
* In TypeScript environments, this can be used to check that %%error%%
455455
* matches an EthersError type, which means the expected properties will
456456
* be set.
457457
*
@@ -473,13 +473,13 @@ export declare function isError<K extends ErrorCode, T extends CodedEthersError<
473473
export declare function isCallException(error: any): error is CallExceptionError;
474474
/**
475475
* Returns a new Error configured to the format ethers emits errors, with
476-
* the %%message%%, [[api:ErrorCode]] %%code%% and additioanl properties
476+
* the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
477477
* for the corresponding EthersError.
478478
*
479479
* Each error in ethers includes the version of ethers, a
480-
* machine-readable [[ErrorCode]], and depneding on %%code%%, additional
481-
* required properties. The error message will also include the %%meeage%%,
482-
* ethers version, %%code%% and all aditional properties, serialized.
480+
* machine-readable [[ErrorCode]], and depending on %%code%%, additional
481+
* required properties. The error message will also include the %%message%%,
482+
* ethers version, %%code%% and all additional properties, serialized.
483483
*/
484484
export declare function makeError<K extends ErrorCode, T extends CodedEthersError<K>>(message: string, code: K, info?: ErrorInfo<T>): T;
485485
/**

0 commit comments

Comments
 (0)