admin: updated dist files
This commit is contained in:
parent
9230aa0b9a
commit
29beb93ea7
@ -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)).
|
||||
|
17
dist/ethers.js
vendored
17
dist/ethers.js
vendored
@ -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;
|
||||
@ -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.
|
||||
*/
|
||||
@ -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,
|
||||
@ -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),
|
||||
@ -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,
|
||||
};
|
||||
@ -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);
|
||||
|
2
dist/ethers.js.map
vendored
2
dist/ethers.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.min.js
vendored
2
dist/ethers.min.js
vendored
File diff suppressed because one or more lines are too long
17
dist/ethers.umd.js
vendored
17
dist/ethers.umd.js
vendored
@ -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;
|
||||
@ -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.
|
||||
*/
|
||||
@ -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,
|
||||
@ -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),
|
||||
@ -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,
|
||||
};
|
||||
@ -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);
|
||||
|
2
dist/ethers.umd.js.map
vendored
2
dist/ethers.umd.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.umd.min.js
vendored
2
dist/ethers.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACR,WAAW,EAAE,SAAS,EACtB,wBAAwB,EAAE,yBAAyB,EACtD,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAE7C,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,UAAU,CAKzE;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAM3E;AAKD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAwB/G;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAQjD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAG7C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAKhD;AAgBD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAE/C;AA4BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,WAAW,CAOnD;AAeD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAEtD;AA4BD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,wBAAwB,CAE7E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,G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8 +122,11 @@ const _formatBlock = object({
|
||||
blobGasUsed: allowNull(index_js_4.getBigInt, null),
|
||||
excessBlobGas: allowNull(index_js_4.getBigInt, null),
|
||||
miner: allowNull(index_js_1.getAddress),
|
||||
prevRandao: allowNull(formatHash, null),
|
||||
extraData: formatData,
|
||||
baseFeePerGas: allowNull(index_js_4.getBigInt)
|
||||
}, {
|
||||
prevRandao: ["mixHash"]
|
||||
});
|
||||
function formatBlock(value) {
|
||||
const result = _formatBlock(value);
|
||||
|
File diff suppressed because one or more lines are too long
5
lib.commonjs/providers/formatting.d.ts
vendored
5
lib.commonjs/providers/formatting.d.ts
vendored
@ -65,6 +65,11 @@ export interface BlockParams {
|
||||
* The miner (or author) of a block.
|
||||
*/
|
||||
miner: string;
|
||||
/**
|
||||
* The latest RANDAO mix of the post beacon state of
|
||||
* the previous block.
|
||||
*/
|
||||
prevRandao?: null | string;
|
||||
/**
|
||||
* Additional data the miner choose to include.
|
||||
*/
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../src.ts/providers/formatting.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAM1D;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAEtC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,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;;;OAGG;IACH,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,UAAU,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9C"}
|
@ -1 +1 @@
|
||||
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../../src.ts/providers/formatting.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AA2GF,CAAC;AAoSD,CAAC"}
|
||||
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../../src.ts/providers/formatting.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAiHF,CAAC;AAoSD,CAAC"}
|
5
lib.commonjs/providers/provider.d.ts
vendored
5
lib.commonjs/providers/provider.d.ts
vendored
@ -367,6 +367,11 @@ export declare class Block implements BlockParams, Iterable<string> {
|
||||
* including this block.
|
||||
*/
|
||||
readonly miner: string;
|
||||
/**
|
||||
* The latest RANDAO mix of the post beacon state of
|
||||
* the previous block.
|
||||
*/
|
||||
readonly prevRandao: null | string;
|
||||
/**
|
||||
* Any extra data the validator wished to include.
|
||||
*/
|
||||
|
File diff suppressed because one or more lines are too long
@ -221,6 +221,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.
|
||||
*/
|
||||
@ -261,6 +266,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,
|
||||
@ -303,7 +309,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),
|
||||
@ -313,7 +319,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,
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
@ -971,11 +971,11 @@ class Transaction {
|
||||
result.blobs = tx.blobs;
|
||||
}
|
||||
if (tx.hash != null) {
|
||||
(0, index_js_3.assertArgument)(result.isSigned(), "unsigned transaction cannot define hash", "tx", tx);
|
||||
(0, index_js_3.assertArgument)(result.isSigned(), "unsigned transaction cannot define '.hash'", "tx", tx);
|
||||
(0, index_js_3.assertArgument)(result.hash === tx.hash, "hash mismatch", "tx", tx);
|
||||
}
|
||||
if (tx.from != null) {
|
||||
(0, index_js_3.assertArgument)(result.isSigned(), "unsigned transaction cannot define from", "tx", tx);
|
||||
(0, index_js_3.assertArgument)(result.isSigned(), "unsigned transaction cannot define '.from'", "tx", tx);
|
||||
(0, index_js_3.assertArgument)(result.from.toLowerCase() === (tx.from || "").toLowerCase(), "from mismatch", "tx", tx);
|
||||
}
|
||||
return result;
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACR,WAAW,EAAE,SAAS,EACtB,wBAAwB,EAAE,yBAAyB,EACtD,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAE7C,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,UAAU,CAKzE;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAM3E;AAKD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAwB/G;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAQjD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAG7C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAKhD;AAgBD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAE/C;AA4BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,WAAW,CAOnD;AAeD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAEtD;AA4BD,wBAAgB,wBAAwB,CAAC,KAAK,EA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AAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,GAAG,yBAAyB,CAmH/E"}
|
@ -111,8 +111,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"]
|
||||
});
|
||||
export function formatBlock(value) {
|
||||
const result = _formatBlock(value);
|
||||
|
File diff suppressed because one or more lines are too long
5
lib.esm/providers/formatting.d.ts
vendored
5
lib.esm/providers/formatting.d.ts
vendored
@ -65,6 +65,11 @@ export interface BlockParams {
|
||||
* The miner (or author) of a block.
|
||||
*/
|
||||
miner: string;
|
||||
/**
|
||||
* The latest RANDAO mix of the post beacon state of
|
||||
* the previous block.
|
||||
*/
|
||||
prevRandao?: null | string;
|
||||
/**
|
||||
* Additional data the miner choose to include.
|
||||
*/
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../src.ts/providers/formatting.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAM1D;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAEtC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,UAAU,EAAE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oB,EAAE,IAAI,GAAG,MAAM,CAAC;IAEpC;;;OAGG;IACH,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,UAAU,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9C"}
|
@ -1 +1 @@
|
||||
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../../src.ts/providers/formatting.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2GF,CAAC;AAoSD,CAAC"}
|
||||
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../../src.ts/providers/formatting.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiHF,CAAC;AAoSD,CAAC"}
|
5
lib.esm/providers/provider.d.ts
vendored
5
lib.esm/providers/provider.d.ts
vendored
@ -367,6 +367,11 @@ export declare class Block implements BlockParams, Iterable<string> {
|
||||
* including this block.
|
||||
*/
|
||||
readonly miner: string;
|
||||
/**
|
||||
* The latest RANDAO mix of the post beacon state of
|
||||
* the previous block.
|
||||
*/
|
||||
readonly prevRandao: null | string;
|
||||
/**
|
||||
* Any extra data the validator wished to include.
|
||||
*/
|
||||
|
File diff suppressed because one or more lines are too long
@ -216,6 +216,11 @@ export 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.
|
||||
*/
|
||||
@ -256,6 +261,7 @@ export 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,
|
||||
@ -298,7 +304,7 @@ export 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),
|
||||
@ -308,7 +314,7 @@ export 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,
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
@ -968,11 +968,11 @@ export 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;
|
||||
|
File diff suppressed because one or more lines are too long
@ -93,7 +93,7 @@
|
||||
"url": "https://www.buymeacoffee.com/ricmoo"
|
||||
}
|
||||
],
|
||||
"gitHead": "531ab95b3e49631d147d56f674adda98fe722100",
|
||||
"gitHead": "9230aa0b9a88b5241915a8d6afa8a522d35abd5d",
|
||||
"homepage": "https://ethers.org",
|
||||
"keywords": [
|
||||
"ethereum",
|
||||
@ -106,7 +106,7 @@
|
||||
"name": "ethers",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"tag": "next"
|
||||
"tag": "latest"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
Reference in New Issue
Block a user