Skip to content

Commit d8a7cbe

Browse files
committed
admin: updated dist files
1 parent c5f126f commit d8a7cbe

36 files changed

+191
-30
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
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.11.0 (2024-02-03 00:18)
6+
ethers/v6.11.0 (2024-02-05 19:57)
77
---------------------------------
88

9+
- 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)).
910
- 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)).
1011
- 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)).
1112
- 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)).

dist/ethers.js

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13902,6 +13902,11 @@ class Block {
1390213902
* The block hash of the parent block.
1390313903
*/
1390413904
parentHash;
13905+
/**
13906+
* The hash tree root of the parent beacon block for the given
13907+
* execution block. See [[link-eip-4788]].
13908+
*/
13909+
parentBeaconBlockRoot;
1390513910
/**
1390613911
* The nonce.
1390713912
*
@@ -13927,6 +13932,15 @@ class Block {
1392713932
* The total gas used in this block.
1392813933
*/
1392913934
gasUsed;
13935+
/**
13936+
* The root hash for the global state after applying changes
13937+
* in this block.
13938+
*/
13939+
stateRoot;
13940+
/**
13941+
* The hash of the transaction receipts trie.
13942+
*/
13943+
receiptsRoot;
1393013944
/**
1393113945
* The total amount of blob gas consumed by the transactions
1393213946
* within the block. See [[link-eip-4844]].
@@ -13974,6 +13988,7 @@ class Block {
1397413988
number: block.number,
1397513989
timestamp: block.timestamp,
1397613990
parentHash: block.parentHash,
13991+
parentBeaconBlockRoot: block.parentBeaconBlockRoot,
1397713992
nonce: block.nonce,
1397813993
difficulty: block.difficulty,
1397913994
gasLimit: block.gasLimit,
@@ -13982,7 +13997,9 @@ class Block {
1398213997
excessBlobGas: block.excessBlobGas,
1398313998
miner: block.miner,
1398413999
extraData: block.extraData,
13985-
baseFeePerGas: getValue(block.baseFeePerGas)
14000+
baseFeePerGas: getValue(block.baseFeePerGas),
14001+
stateRoot: block.stateRoot,
14002+
receiptsRoot: block.receiptsRoot,
1398614003
});
1398714004
}
1398814005
/**
@@ -14021,7 +14038,7 @@ class Block {
1402114038
* Returns a JSON-friendly value.
1402214039
*/
1402314040
toJSON() {
14024-
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, timestamp, transactions } = this;
14041+
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
1402514042
return {
1402614043
_type: "Block",
1402714044
baseFeePerGas: toJson(baseFeePerGas),
@@ -14032,6 +14049,7 @@ class Block {
1403214049
blobGasUsed: toJson(this.blobGasUsed),
1403314050
excessBlobGas: toJson(this.excessBlobGas),
1403414051
hash, miner, nonce, number, parentHash, timestamp,
14052+
parentBeaconBlockRoot, stateRoot, receiptsRoot,
1403514053
transactions,
1403614054
};
1403714055
}
@@ -16813,12 +16831,15 @@ function formatLog(value) {
1681316831
const _formatBlock = object({
1681416832
hash: allowNull(formatHash),
1681516833
parentHash: formatHash,
16834+
parentBeaconBlockRoot: allowNull(formatHash, null),
1681616835
number: getNumber,
1681716836
timestamp: getNumber,
1681816837
nonce: allowNull(formatData),
1681916838
difficulty: getBigInt,
1682016839
gasLimit: getBigInt,
1682116840
gasUsed: getBigInt,
16841+
stateRoot: allowNull(formatHash, null),
16842+
receiptsRoot: allowNull(formatHash, null),
1682216843
blobGasUsed: allowNull(getBigInt, null),
1682316844
excessBlobGas: allowNull(getBigInt, null),
1682416845
miner: allowNull(getAddress),

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.min.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.

dist/ethers.umd.js

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13908,6 +13908,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1390813908
* The block hash of the parent block.
1390913909
*/
1391013910
parentHash;
13911+
/**
13912+
* The hash tree root of the parent beacon block for the given
13913+
* execution block. See [[link-eip-4788]].
13914+
*/
13915+
parentBeaconBlockRoot;
1391113916
/**
1391213917
* The nonce.
1391313918
*
@@ -13933,6 +13938,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1393313938
* The total gas used in this block.
1393413939
*/
1393513940
gasUsed;
13941+
/**
13942+
* The root hash for the global state after applying changes
13943+
* in this block.
13944+
*/
13945+
stateRoot;
13946+
/**
13947+
* The hash of the transaction receipts trie.
13948+
*/
13949+
receiptsRoot;
1393613950
/**
1393713951
* The total amount of blob gas consumed by the transactions
1393813952
* within the block. See [[link-eip-4844]].
@@ -13980,6 +13994,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1398013994
number: block.number,
1398113995
timestamp: block.timestamp,
1398213996
parentHash: block.parentHash,
13997+
parentBeaconBlockRoot: block.parentBeaconBlockRoot,
1398313998
nonce: block.nonce,
1398413999
difficulty: block.difficulty,
1398514000
gasLimit: block.gasLimit,
@@ -13988,7 +14003,9 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1398814003
excessBlobGas: block.excessBlobGas,
1398914004
miner: block.miner,
1399014005
extraData: block.extraData,
13991-
baseFeePerGas: getValue(block.baseFeePerGas)
14006+
baseFeePerGas: getValue(block.baseFeePerGas),
14007+
stateRoot: block.stateRoot,
14008+
receiptsRoot: block.receiptsRoot,
1399214009
});
1399314010
}
1399414011
/**
@@ -14027,7 +14044,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1402714044
* Returns a JSON-friendly value.
1402814045
*/
1402914046
toJSON() {
14030-
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, timestamp, transactions } = this;
14047+
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
1403114048
return {
1403214049
_type: "Block",
1403314050
baseFeePerGas: toJson(baseFeePerGas),
@@ -14038,6 +14055,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1403814055
blobGasUsed: toJson(this.blobGasUsed),
1403914056
excessBlobGas: toJson(this.excessBlobGas),
1404014057
hash, miner, nonce, number, parentHash, timestamp,
14058+
parentBeaconBlockRoot, stateRoot, receiptsRoot,
1404114059
transactions,
1404214060
};
1404314061
}
@@ -16819,12 +16837,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1681916837
const _formatBlock = object({
1682016838
hash: allowNull(formatHash),
1682116839
parentHash: formatHash,
16840+
parentBeaconBlockRoot: allowNull(formatHash, null),
1682216841
number: getNumber,
1682316842
timestamp: getNumber,
1682416843
nonce: allowNull(formatData),
1682516844
difficulty: getBigInt,
1682616845
gasLimit: getBigInt,
1682716846
gasUsed: getBigInt,
16847+
stateRoot: allowNull(formatHash, null),
16848+
receiptsRoot: allowNull(formatHash, null),
1682816849
blobGasUsed: allowNull(getBigInt, null),
1682916850
excessBlobGas: allowNull(getBigInt, null),
1683016851
miner: allowNull(getAddress),

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/ethers.umd.min.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/_tests/blockchain-data.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export interface TestBlockchainBlock {
2424
baseFeePerGas?: bigint;
2525
blobGasUsed?: bigint;
2626
excessBlobGas?: bigint;
27+
parentBeaconBlockRoot?: string;
28+
stateRoot?: string;
29+
receiptsRoot?: string;
2730
}
2831
export interface TestBlockchainTransaction {
2932
test: string;

lib.commonjs/_tests/blockchain-data.d.ts.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/_tests/blockchain-data.js

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

0 commit comments

Comments
 (0)