Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
admin: updated dist files
  • Loading branch information
ricmoo committed Feb 6, 2024
1 parent c5f126f commit d8a7cbe
Show file tree
Hide file tree
Showing 36 changed files with 191 additions and 30 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -3,9 +3,10 @@ Change Log

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

ethers/v6.11.0 (2024-02-03 00:18)
ethers/v6.11.0 (2024-02-05 19:57)
---------------------------------

- Added EIP-4788, receipts root and state root fields to Block ([#4570](https://github.com/ethers-io/ethers.js/issues/4570); [c5f126f](https://github.com/ethers-io/ethers.js/commit/c5f126faf7d826b6a99df0ee578ff3d0ef409381)).
- Added EIP-4844 fields to Provider classes and formatter ([#4570](https://github.com/ethers-io/ethers.js/issues/4570); [7b4f2c1](https://github.com/ethers-io/ethers.js/commit/7b4f2c1a74db411829b5e8ef758bfa2ee21e5890)).
- Assert BrowserProvider receives an EIP-1193 provider to fail early when passing undefined ethereum object ([b69f43b](https://github.com/ethers-io/ethers.js/commit/b69f43bc6f35da881ca7a0c8ccc5fda92edd076d)).
- Add timeout to ContractTransactionResponse wait ([#4497](https://github.com/ethers-io/ethers.js/issues/4497); [095de51](https://github.com/ethers-io/ethers.js/commit/095de51e605a9b88576e5e34fd55a6e32befa4eb)).
Expand Down
25 changes: 23 additions & 2 deletions dist/ethers.js
Expand Up @@ -13902,6 +13902,11 @@ class Block {
* The block hash of the parent block.
*/
parentHash;
/**
* The hash tree root of the parent beacon block for the given
* execution block. See [[link-eip-4788]].
*/
parentBeaconBlockRoot;
/**
* The nonce.
*
Expand All @@ -13927,6 +13932,15 @@ class Block {
* The total gas used in this block.
*/
gasUsed;
/**
* The root hash for the global state after applying changes
* in this block.
*/
stateRoot;
/**
* The hash of the transaction receipts trie.
*/
receiptsRoot;
/**
* The total amount of blob gas consumed by the transactions
* within the block. See [[link-eip-4844]].
Expand Down Expand Up @@ -13974,6 +13988,7 @@ class Block {
number: block.number,
timestamp: block.timestamp,
parentHash: block.parentHash,
parentBeaconBlockRoot: block.parentBeaconBlockRoot,
nonce: block.nonce,
difficulty: block.difficulty,
gasLimit: block.gasLimit,
Expand All @@ -13982,7 +13997,9 @@ class Block {
excessBlobGas: block.excessBlobGas,
miner: block.miner,
extraData: block.extraData,
baseFeePerGas: getValue(block.baseFeePerGas)
baseFeePerGas: getValue(block.baseFeePerGas),
stateRoot: block.stateRoot,
receiptsRoot: block.receiptsRoot,
});
}
/**
Expand Down Expand Up @@ -14021,7 +14038,7 @@ class Block {
* Returns a JSON-friendly value.
*/
toJSON() {
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, timestamp, transactions } = this;
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
return {
_type: "Block",
baseFeePerGas: toJson(baseFeePerGas),
Expand All @@ -14032,6 +14049,7 @@ class Block {
blobGasUsed: toJson(this.blobGasUsed),
excessBlobGas: toJson(this.excessBlobGas),
hash, miner, nonce, number, parentHash, timestamp,
parentBeaconBlockRoot, stateRoot, receiptsRoot,
transactions,
};
}
Expand Down Expand Up @@ -16813,12 +16831,15 @@ function formatLog(value) {
const _formatBlock = object({
hash: allowNull(formatHash),
parentHash: formatHash,
parentBeaconBlockRoot: allowNull(formatHash, null),
number: getNumber,
timestamp: getNumber,
nonce: allowNull(formatData),
difficulty: getBigInt,
gasLimit: getBigInt,
gasUsed: getBigInt,
stateRoot: allowNull(formatHash, null),
receiptsRoot: allowNull(formatHash, null),
blobGasUsed: allowNull(getBigInt, null),
excessBlobGas: allowNull(getBigInt, null),
miner: allowNull(getAddress),
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.

25 changes: 23 additions & 2 deletions dist/ethers.umd.js
Expand Up @@ -13908,6 +13908,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* The block hash of the parent block.
*/
parentHash;
/**
* The hash tree root of the parent beacon block for the given
* execution block. See [[link-eip-4788]].
*/
parentBeaconBlockRoot;
/**
* The nonce.
*
Expand All @@ -13933,6 +13938,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* The total gas used in this block.
*/
gasUsed;
/**
* The root hash for the global state after applying changes
* in this block.
*/
stateRoot;
/**
* The hash of the transaction receipts trie.
*/
receiptsRoot;
/**
* The total amount of blob gas consumed by the transactions
* within the block. See [[link-eip-4844]].
Expand Down Expand Up @@ -13980,6 +13994,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
number: block.number,
timestamp: block.timestamp,
parentHash: block.parentHash,
parentBeaconBlockRoot: block.parentBeaconBlockRoot,
nonce: block.nonce,
difficulty: block.difficulty,
gasLimit: block.gasLimit,
Expand All @@ -13988,7 +14003,9 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
excessBlobGas: block.excessBlobGas,
miner: block.miner,
extraData: block.extraData,
baseFeePerGas: getValue(block.baseFeePerGas)
baseFeePerGas: getValue(block.baseFeePerGas),
stateRoot: block.stateRoot,
receiptsRoot: block.receiptsRoot,
});
}
/**
Expand Down Expand Up @@ -14027,7 +14044,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* Returns a JSON-friendly value.
*/
toJSON() {
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, timestamp, transactions } = this;
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
return {
_type: "Block",
baseFeePerGas: toJson(baseFeePerGas),
Expand All @@ -14038,6 +14055,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
blobGasUsed: toJson(this.blobGasUsed),
excessBlobGas: toJson(this.excessBlobGas),
hash, miner, nonce, number, parentHash, timestamp,
parentBeaconBlockRoot, stateRoot, receiptsRoot,
transactions,
};
}
Expand Down Expand Up @@ -16819,12 +16837,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
const _formatBlock = object({
hash: allowNull(formatHash),
parentHash: formatHash,
parentBeaconBlockRoot: allowNull(formatHash, null),
number: getNumber,
timestamp: getNumber,
nonce: allowNull(formatData),
difficulty: getBigInt,
gasLimit: getBigInt,
gasUsed: getBigInt,
stateRoot: allowNull(formatHash, null),
receiptsRoot: allowNull(formatHash, null),
blobGasUsed: allowNull(getBigInt, null),
excessBlobGas: allowNull(getBigInt, null),
miner: allowNull(getAddress),
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.

3 changes: 3 additions & 0 deletions lib.commonjs/_tests/blockchain-data.d.ts
Expand Up @@ -24,6 +24,9 @@ export interface TestBlockchainBlock {
baseFeePerGas?: bigint;
blobGasUsed?: bigint;
excessBlobGas?: bigint;
parentBeaconBlockRoot?: string;
stateRoot?: string;
receiptsRoot?: string;
}
export interface TestBlockchainTransaction {
test: string;
Expand Down
2 changes: 1 addition & 1 deletion lib.commonjs/_tests/blockchain-data.d.ts.map

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

7 changes: 7 additions & 0 deletions lib.commonjs/_tests/blockchain-data.js

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

0 comments on commit d8a7cbe

Please sign in to comment.