admin: updated dist files

This commit is contained in:
Richard Moore 2023-02-02 22:21:31 -05:00
parent 90afd9bd81
commit 0a740c470d
11 changed files with 22 additions and 169 deletions

57
dist/ethers.js vendored

@ -12305,7 +12305,7 @@ class Block {
* prefetched them, by passing ``true`` to %%prefetchTxs%%
* into [[provider_getBlock]].
*/
get transactionResponses() {
get prefetchedTransactions() {
const txs = this.#transactions.slice();
// Doesn't matter...
if (txs.length === 0) {
@ -12398,8 +12398,8 @@ class Block {
return tx;
}
}
getTransactionResponse(indexOrHash) {
const txs = this.transactionResponses;
getPrefetchedTransaction(indexOrHash) {
const txs = this.prefetchedTransactions;
if (typeof (indexOrHash) === "number") {
return txs[indexOrHash];
}
@ -12409,7 +12409,7 @@ class Block {
return tx;
}
}
throw new Error("no such tx");
assertArgument(false, "no matching transaction", "indexOrHash", indexOrHash);
}
/**
* Has this block been mined.
@ -12433,23 +12433,6 @@ class Block {
}
//////////////////////
// Log
/*
export interface LogParams {
transactionHash: string;
blockHash: string;
blockNumber: number;
removed: boolean;
address: string;
data: string;
topics: ReadonlyArray<string>;
index: number;
transactionIndex: number;
}
*/
class Log {
provider;
transactionHash;
@ -12476,9 +12459,6 @@ class Log {
transactionIndex: log.transactionIndex,
});
}
//connect(provider: Provider): Log {
// return new Log(this, provider);
//}
toJSON() {
const { address, blockHash, blockNumber, data, index, removed, topics, transactionHash, transactionIndex } = this;
return {
@ -12509,32 +12489,6 @@ class Log {
//////////////////////
// Transaction Receipt
/*
export interface TransactionReceiptParams {
to: null | string;
from: string;
contractAddress: null | string;
hash: string;
index: number;
blockHash: string;
blockNumber: number;
logsBloom: string;
logs: ReadonlyArray<LogParams>;
gasUsed: bigint;
cumulativeGasUsed: bigint;
gasPrice?: null | bigint;
effectiveGasPrice?: null | bigint;
type: number;
//byzantium: boolean;
status: null | number;
root: null | string;
}
*/
/*
export interface LegacyTransactionReceipt {
byzantium: false;
status: null;
@ -12589,9 +12543,6 @@ class TransactionReceipt {
});
}
get logs() { return this.#logs; }
//connect(provider: Provider): TransactionReceipt {
// return new TransactionReceipt(this, provider);
//}
toJSON() {
const { to, from, contractAddress, hash, index, blockHash, blockNumber, logsBloom, logs, //byzantium,
status, root } = this;

2
dist/ethers.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ethers.min.js vendored

File diff suppressed because one or more lines are too long

@ -177,7 +177,7 @@ export declare class Block implements BlockParams, Iterable<string> {
* prefetched them, by passing ``true`` to %%prefetchTxs%%
* into [[provider_getBlock]].
*/
get transactionResponses(): Array<TransactionResponse>;
get prefetchedTransactions(): Array<TransactionResponse>;
/**
* Returns a JSON-friendly value.
*/
@ -195,7 +195,7 @@ export declare class Block implements BlockParams, Iterable<string> {
* Get the transaction at %%indexe%% within this block.
*/
getTransaction(indexOrHash: number | string): Promise<TransactionResponse>;
getTransactionResponse(indexOrHash: number | string): TransactionResponse;
getPrefetchedTransaction(indexOrHash: number | string): TransactionResponse;
/**
* Has this block been mined.
*

@ -233,7 +233,7 @@ class Block {
* prefetched them, by passing ``true`` to %%prefetchTxs%%
* into [[provider_getBlock]].
*/
get transactionResponses() {
get prefetchedTransactions() {
const txs = this.#transactions.slice();
// Doesn't matter...
if (txs.length === 0) {
@ -326,8 +326,8 @@ class Block {
return tx;
}
}
getTransactionResponse(indexOrHash) {
const txs = this.transactionResponses;
getPrefetchedTransaction(indexOrHash) {
const txs = this.prefetchedTransactions;
if (typeof (indexOrHash) === "number") {
return txs[indexOrHash];
}
@ -337,7 +337,7 @@ class Block {
return tx;
}
}
throw new Error("no such tx");
(0, index_js_1.assertArgument)(false, "no matching transaction", "indexOrHash", indexOrHash);
}
/**
* Has this block been mined.
@ -362,23 +362,6 @@ class Block {
exports.Block = Block;
//////////////////////
// Log
/*
export interface LogParams {
transactionHash: string;
blockHash: string;
blockNumber: number;
removed: boolean;
address: string;
data: string;
topics: ReadonlyArray<string>;
index: number;
transactionIndex: number;
}
*/
class Log {
provider;
transactionHash;
@ -405,9 +388,6 @@ class Log {
transactionIndex: log.transactionIndex,
});
}
//connect(provider: Provider): Log {
// return new Log(this, provider);
//}
toJSON() {
const { address, blockHash, blockNumber, data, index, removed, topics, transactionHash, transactionIndex } = this;
return {
@ -439,32 +419,6 @@ exports.Log = Log;
//////////////////////
// Transaction Receipt
/*
export interface TransactionReceiptParams {
to: null | string;
from: string;
contractAddress: null | string;
hash: string;
index: number;
blockHash: string;
blockNumber: number;
logsBloom: string;
logs: ReadonlyArray<LogParams>;
gasUsed: bigint;
cumulativeGasUsed: bigint;
gasPrice?: null | bigint;
effectiveGasPrice?: null | bigint;
type: number;
//byzantium: boolean;
status: null | number;
root: null | string;
}
*/
/*
export interface LegacyTransactionReceipt {
byzantium: false;
status: null;
@ -519,9 +473,6 @@ class TransactionReceipt {
});
}
get logs() { return this.#logs; }
//connect(provider: Provider): TransactionReceipt {
// return new TransactionReceipt(this, provider);
//}
toJSON() {
const { to, from, contractAddress, hash, index, blockHash, blockNumber, logsBloom, logs, //byzantium,
status, root } = this;

File diff suppressed because one or more lines are too long

@ -228,7 +228,7 @@ export class Block {
* prefetched them, by passing ``true`` to %%prefetchTxs%%
* into [[provider_getBlock]].
*/
get transactionResponses() {
get prefetchedTransactions() {
const txs = this.#transactions.slice();
// Doesn't matter...
if (txs.length === 0) {
@ -321,8 +321,8 @@ export class Block {
return tx;
}
}
getTransactionResponse(indexOrHash) {
const txs = this.transactionResponses;
getPrefetchedTransaction(indexOrHash) {
const txs = this.prefetchedTransactions;
if (typeof (indexOrHash) === "number") {
return txs[indexOrHash];
}
@ -332,7 +332,7 @@ export class Block {
return tx;
}
}
throw new Error("no such tx");
assertArgument(false, "no matching transaction", "indexOrHash", indexOrHash);
}
/**
* Has this block been mined.
@ -356,23 +356,6 @@ export class Block {
}
//////////////////////
// Log
/*
export interface LogParams {
transactionHash: string;
blockHash: string;
blockNumber: number;
removed: boolean;
address: string;
data: string;
topics: ReadonlyArray<string>;
index: number;
transactionIndex: number;
}
*/
export class Log {
provider;
transactionHash;
@ -399,9 +382,6 @@ export class Log {
transactionIndex: log.transactionIndex,
});
}
//connect(provider: Provider): Log {
// return new Log(this, provider);
//}
toJSON() {
const { address, blockHash, blockNumber, data, index, removed, topics, transactionHash, transactionIndex } = this;
return {
@ -432,32 +412,6 @@ export class Log {
//////////////////////
// Transaction Receipt
/*
export interface TransactionReceiptParams {
to: null | string;
from: string;
contractAddress: null | string;
hash: string;
index: number;
blockHash: string;
blockNumber: number;
logsBloom: string;
logs: ReadonlyArray<LogParams>;
gasUsed: bigint;
cumulativeGasUsed: bigint;
gasPrice?: null | bigint;
effectiveGasPrice?: null | bigint;
type: number;
//byzantium: boolean;
status: null | number;
root: null | string;
}
*/
/*
export interface LegacyTransactionReceipt {
byzantium: false;
status: null;
@ -512,9 +466,6 @@ export class TransactionReceipt {
});
}
get logs() { return this.#logs; }
//connect(provider: Provider): TransactionReceipt {
// return new TransactionReceipt(this, provider);
//}
toJSON() {
const { to, from, contractAddress, hash, index, blockHash, blockNumber, logsBloom, logs, //byzantium,
status, root } = this;

File diff suppressed because one or more lines are too long

@ -93,7 +93,7 @@
"types": "./types/wordlists/index.d.ts"
}
},
"gitHead": "415efbfb0474298458a7f73b5b4959ecf93c3f30",
"gitHead": "90afd9bd81ed1408421a0247fa0845a74c9eb319",
"keywords": [
"ethereum",
"ethers",

@ -177,7 +177,7 @@ export declare class Block implements BlockParams, Iterable<string> {
* prefetched them, by passing ``true`` to %%prefetchTxs%%
* into [[provider_getBlock]].
*/
get transactionResponses(): Array<TransactionResponse>;
get prefetchedTransactions(): Array<TransactionResponse>;
/**
* Returns a JSON-friendly value.
*/
@ -195,7 +195,7 @@ export declare class Block implements BlockParams, Iterable<string> {
* Get the transaction at %%indexe%% within this block.
*/
getTransaction(indexOrHash: number | string): Promise<TransactionResponse>;
getTransactionResponse(indexOrHash: number | string): TransactionResponse;
getPrefetchedTransaction(indexOrHash: number | string): TransactionResponse;
/**
* Has this block been mined.
*

File diff suppressed because one or more lines are too long