Skip to content

Commit

Permalink
admin: updated dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 12, 2024
1 parent 9230aa0 commit 29beb93
Show file tree
Hide file tree
Showing 32 changed files with 95 additions and 37 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Change Log

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

ethers/v6.12.0 (2024-04-09 21:12)
ethers/v6.12.0 (2024-04-12 00:11)
---------------------------------

- Better error messages for transaction field mismatch ([#4659](https://github.com/ethers-io/ethers.js/issues/4659); [9230aa0](https://github.com/ethers-io/ethers.js/commit/9230aa0b9a88b5241915a8d6afa8a522d35abd5d)).
- Added prevRandao to block ([#3372](https://github.com/ethers-io/ethers.js/issues/3372); [ec6a754](https://github.com/ethers-io/ethers.js/commit/ec6a754f0c8647dae59c73b2589225cb200d83dd)).
- Added Polygon Amoy testnet ([#4645](https://github.com/ethers-io/ethers.js/issues/4645); [1717abb](https://github.com/ethers-io/ethers.js/commit/1717abbf29a14a6f6b106e479fe9a5b1f8768dc4)).
- Added Chainstack provider ([#2741](https://github.com/ethers-io/ethers.js/issues/2741); [014004d](https://github.com/ethers-io/ethers.js/commit/014004d9402d7fd8c15553792cfb7a8a84ed327a)).
- Added deep convertion to Result for toObject and toArray ([#4681](https://github.com/ethers-io/ethers.js/issues/4681); [03bfe2a](https://github.com/ethers-io/ethers.js/commit/03bfe2a4f7b29b15cd90127974b7fc1d8b03edf9)).
Expand Down
17 changes: 13 additions & 4 deletions dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -10592,11 +10592,11 @@ class Transaction {
result.blobs = tx.blobs;
}
if (tx.hash != null) {
assertArgument(result.isSigned(), "unsigned transaction cannot define hash", "tx", tx);
assertArgument(result.isSigned(), "unsigned transaction cannot define '.hash'", "tx", tx);
assertArgument(result.hash === tx.hash, "hash mismatch", "tx", tx);
}
if (tx.from != null) {
assertArgument(result.isSigned(), "unsigned transaction cannot define from", "tx", tx);
assertArgument(result.isSigned(), "unsigned transaction cannot define '.from'", "tx", tx);
assertArgument(result.from.toLowerCase() === (tx.from || "").toLowerCase(), "from mismatch", "tx", tx);
}
return result;
Expand Down Expand Up @@ -14113,6 +14113,11 @@ class Block {
* including this block.
*/
miner;
/**
* The latest RANDAO mix of the post beacon state of
* the previous block.
*/
prevRandao;
/**
* Any extra data the validator wished to include.
*/
Expand Down Expand Up @@ -14153,6 +14158,7 @@ class Block {
blobGasUsed: block.blobGasUsed,
excessBlobGas: block.excessBlobGas,
miner: block.miner,
prevRandao: getValue(block.prevRandao),
extraData: block.extraData,
baseFeePerGas: getValue(block.baseFeePerGas),
stateRoot: block.stateRoot,
Expand Down Expand Up @@ -14195,7 +14201,7 @@ class Block {
* Returns a JSON-friendly value.
*/
toJSON() {
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, prevRandao, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
return {
_type: "Block",
baseFeePerGas: toJson(baseFeePerGas),
Expand All @@ -14205,7 +14211,7 @@ class Block {
gasUsed: toJson(gasUsed),
blobGasUsed: toJson(this.blobGasUsed),
excessBlobGas: toJson(this.excessBlobGas),
hash, miner, nonce, number, parentHash, timestamp,
hash, miner, prevRandao, nonce, number, parentHash, timestamp,
parentBeaconBlockRoot, stateRoot, receiptsRoot,
transactions,
};
Expand Down Expand Up @@ -17000,8 +17006,11 @@ const _formatBlock = object({
blobGasUsed: allowNull(getBigInt, null),
excessBlobGas: allowNull(getBigInt, null),
miner: allowNull(getAddress),
prevRandao: allowNull(formatHash, null),
extraData: formatData,
baseFeePerGas: allowNull(getBigInt)
}, {
prevRandao: ["mixHash"]
});
function formatBlock(value) {
const result = _formatBlock(value);
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.

17 changes: 13 additions & 4 deletions dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -10598,11 +10598,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
result.blobs = tx.blobs;
}
if (tx.hash != null) {
assertArgument(result.isSigned(), "unsigned transaction cannot define hash", "tx", tx);
assertArgument(result.isSigned(), "unsigned transaction cannot define '.hash'", "tx", tx);
assertArgument(result.hash === tx.hash, "hash mismatch", "tx", tx);
}
if (tx.from != null) {
assertArgument(result.isSigned(), "unsigned transaction cannot define from", "tx", tx);
assertArgument(result.isSigned(), "unsigned transaction cannot define '.from'", "tx", tx);
assertArgument(result.from.toLowerCase() === (tx.from || "").toLowerCase(), "from mismatch", "tx", tx);
}
return result;
Expand Down Expand Up @@ -14119,6 +14119,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* including this block.
*/
miner;
/**
* The latest RANDAO mix of the post beacon state of
* the previous block.
*/
prevRandao;
/**
* Any extra data the validator wished to include.
*/
Expand Down Expand Up @@ -14159,6 +14164,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
blobGasUsed: block.blobGasUsed,
excessBlobGas: block.excessBlobGas,
miner: block.miner,
prevRandao: getValue(block.prevRandao),
extraData: block.extraData,
baseFeePerGas: getValue(block.baseFeePerGas),
stateRoot: block.stateRoot,
Expand Down Expand Up @@ -14201,7 +14207,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, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, prevRandao, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
return {
_type: "Block",
baseFeePerGas: toJson(baseFeePerGas),
Expand All @@ -14211,7 +14217,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
gasUsed: toJson(gasUsed),
blobGasUsed: toJson(this.blobGasUsed),
excessBlobGas: toJson(this.excessBlobGas),
hash, miner, nonce, number, parentHash, timestamp,
hash, miner, prevRandao, nonce, number, parentHash, timestamp,
parentBeaconBlockRoot, stateRoot, receiptsRoot,
transactions,
};
Expand Down Expand Up @@ -17006,8 +17012,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
blobGasUsed: allowNull(getBigInt, null),
excessBlobGas: allowNull(getBigInt, null),
miner: allowNull(getAddress),
prevRandao: allowNull(formatHash, null),
extraData: formatData,
baseFeePerGas: allowNull(getBigInt)
}, {
prevRandao: ["mixHash"]
});
function formatBlock(value) {
const result = _formatBlock(value);
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.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/format.d.ts.map

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

3 changes: 3 additions & 0 deletions lib.commonjs/providers/format.js

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

Loading

0 comments on commit 29beb93

Please sign in to comment.