Comparing version 4.5.1-dev.f943944.0 to 4.6.0
@@ -325,30 +325,35 @@ export declare const accessListItemSchema: { | ||
}; | ||
export declare const blockSchema: { | ||
export declare const withdrawalsSchema: { | ||
type: string; | ||
properties: { | ||
parentHash: { | ||
index: { | ||
format: string; | ||
}; | ||
sha3Uncles: { | ||
validatorIndex: { | ||
format: string; | ||
}; | ||
miner: { | ||
address: { | ||
format: string; | ||
}; | ||
stateRoot: { | ||
amount: { | ||
format: string; | ||
}; | ||
transactionsRoot: { | ||
}; | ||
}; | ||
export declare const blockSchema: { | ||
type: string; | ||
properties: { | ||
baseFeePerGas: { | ||
format: string; | ||
}; | ||
receiptsRoot: { | ||
blobGasUsed: { | ||
format: string; | ||
}; | ||
logsBloom: { | ||
difficulty: { | ||
format: string; | ||
}; | ||
difficulty: { | ||
excessBlobGas: { | ||
format: string; | ||
}; | ||
number: { | ||
extraData: { | ||
format: string; | ||
@@ -362,8 +367,11 @@ }; | ||
}; | ||
timestamp: { | ||
hash: { | ||
format: string; | ||
}; | ||
extraData: { | ||
logsBloom: { | ||
format: string; | ||
}; | ||
miner: { | ||
format: string; | ||
}; | ||
mixHash: { | ||
@@ -375,11 +383,29 @@ format: string; | ||
}; | ||
totalDifficulty: { | ||
number: { | ||
format: string; | ||
}; | ||
baseFeePerGas: { | ||
parentBeaconBlockRoot: { | ||
format: string; | ||
}; | ||
parentHash: { | ||
format: string; | ||
}; | ||
receiptsRoot: { | ||
format: string; | ||
}; | ||
sha3Uncles: { | ||
format: string; | ||
}; | ||
size: { | ||
format: string; | ||
}; | ||
stateRoot: { | ||
format: string; | ||
}; | ||
timestamp: { | ||
format: string; | ||
}; | ||
totalDifficulty: { | ||
format: string; | ||
}; | ||
transactions: { | ||
@@ -525,2 +551,5 @@ oneOf: ({ | ||
}; | ||
transactionsRoot: { | ||
format: string; | ||
}; | ||
uncles: { | ||
@@ -532,3 +561,23 @@ type: string; | ||
}; | ||
hash: { | ||
withdrawals: { | ||
type: string; | ||
items: { | ||
type: string; | ||
properties: { | ||
index: { | ||
format: string; | ||
}; | ||
validatorIndex: { | ||
format: string; | ||
}; | ||
address: { | ||
format: string; | ||
}; | ||
amount: { | ||
format: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
withdrawalsRoot: { | ||
format: string; | ||
@@ -538,73 +587,59 @@ }; | ||
}; | ||
export declare const withdrawalsSchema: { | ||
export declare const blockHeaderSchema: { | ||
type: string; | ||
properties: { | ||
index: { | ||
author: { | ||
format: string; | ||
}; | ||
validatorIndex: { | ||
excessDataGas: { | ||
format: string; | ||
}; | ||
address: { | ||
baseFeePerGas: { | ||
format: string; | ||
}; | ||
amount: { | ||
blobGasUsed: { | ||
format: string; | ||
}; | ||
}; | ||
}; | ||
export declare const blockHeaderSchema: { | ||
type: string; | ||
properties: { | ||
author: { | ||
difficulty: { | ||
format: string; | ||
}; | ||
hash: { | ||
excessBlobGas: { | ||
format: string; | ||
}; | ||
parentHash: { | ||
extraData: { | ||
format: string; | ||
}; | ||
receiptsRoot: { | ||
gasLimit: { | ||
format: string; | ||
}; | ||
miner: { | ||
gasUsed: { | ||
format: string; | ||
}; | ||
stateRoot: { | ||
hash: { | ||
format: string; | ||
}; | ||
transactionsRoot: { | ||
logsBloom: { | ||
format: string; | ||
}; | ||
withdrawalsRoot: { | ||
miner: { | ||
format: string; | ||
}; | ||
logsBloom: { | ||
mixHash: { | ||
format: string; | ||
}; | ||
difficulty: { | ||
nonce: { | ||
format: string; | ||
}; | ||
totalDifficulty: { | ||
format: string; | ||
}; | ||
number: { | ||
format: string; | ||
}; | ||
gasLimit: { | ||
parentBeaconBlockRoot: { | ||
format: string; | ||
}; | ||
gasUsed: { | ||
parentHash: { | ||
format: string; | ||
}; | ||
timestamp: { | ||
receiptsRoot: { | ||
format: string; | ||
}; | ||
extraData: { | ||
format: string; | ||
}; | ||
nonce: { | ||
format: string; | ||
}; | ||
sha3Uncles: { | ||
@@ -616,9 +651,9 @@ format: string; | ||
}; | ||
baseFeePerGas: { | ||
stateRoot: { | ||
format: string; | ||
}; | ||
excessDataGas: { | ||
timestamp: { | ||
format: string; | ||
}; | ||
mixHash: { | ||
totalDifficulty: { | ||
format: string; | ||
@@ -632,2 +667,5 @@ }; | ||
}; | ||
transactionsRoot: { | ||
format: string; | ||
}; | ||
uncles: { | ||
@@ -659,2 +697,5 @@ type: string; | ||
}; | ||
withdrawalsRoot: { | ||
format: string; | ||
}; | ||
}; | ||
@@ -661,0 +702,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.accountSchema = exports.storageProofSchema = exports.feeHistorySchema = exports.SignatureObjectSchema = exports.transactionReceiptSchema = exports.syncSchema = exports.logSchema = exports.blockHeaderSchema = exports.withdrawalsSchema = exports.blockSchema = exports.transactionInfoSchema = exports.transactionSchema = exports.customChainSchema = exports.hardforkSchema = exports.chainSchema = exports.accessListResultSchema = exports.accessListSchema = exports.accessListItemSchema = void 0; | ||
exports.accountSchema = exports.storageProofSchema = exports.feeHistorySchema = exports.SignatureObjectSchema = exports.transactionReceiptSchema = exports.syncSchema = exports.logSchema = exports.blockHeaderSchema = exports.blockSchema = exports.withdrawalsSchema = exports.transactionInfoSchema = exports.transactionSchema = exports.customChainSchema = exports.hardforkSchema = exports.chainSchema = exports.accessListResultSchema = exports.accessListSchema = exports.accessListItemSchema = void 0; | ||
/* | ||
@@ -199,32 +199,37 @@ This file is part of web3.js. | ||
}; | ||
exports.blockSchema = { | ||
exports.withdrawalsSchema = { | ||
type: 'object', | ||
properties: { | ||
parentHash: { | ||
format: 'bytes32', | ||
index: { | ||
format: 'uint', | ||
}, | ||
sha3Uncles: { | ||
format: 'bytes32', | ||
validatorIndex: { | ||
format: 'uint', | ||
}, | ||
miner: { | ||
format: 'bytes', | ||
address: { | ||
format: 'address', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
amount: { | ||
format: 'uint', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
}; | ||
exports.blockSchema = { | ||
type: 'object', | ||
properties: { | ||
baseFeePerGas: { | ||
format: 'uint', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
blobGasUsed: { | ||
format: 'uint', | ||
}, | ||
logsBloom: { | ||
format: 'bytes256', | ||
}, | ||
difficulty: { | ||
format: 'uint', | ||
}, | ||
number: { | ||
excessBlobGas: { | ||
format: 'uint', | ||
}, | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
gasLimit: { | ||
@@ -236,6 +241,9 @@ format: 'uint', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
hash: { | ||
format: 'bytes32', | ||
}, | ||
extraData: { | ||
logsBloom: { | ||
format: 'bytes256', | ||
}, | ||
miner: { | ||
format: 'bytes', | ||
@@ -249,11 +257,29 @@ }, | ||
}, | ||
totalDifficulty: { | ||
number: { | ||
format: 'uint', | ||
}, | ||
baseFeePerGas: { | ||
format: 'uint', | ||
parentBeaconBlockRoot: { | ||
format: 'bytes32', | ||
}, | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
sha3Uncles: { | ||
format: 'bytes32', | ||
}, | ||
size: { | ||
format: 'uint', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
}, | ||
totalDifficulty: { | ||
format: 'uint', | ||
}, | ||
transactions: { | ||
@@ -273,2 +299,5 @@ oneOf: [ | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
uncles: { | ||
@@ -280,3 +309,7 @@ type: 'array', | ||
}, | ||
hash: { | ||
withdrawals: { | ||
type: 'array', | ||
items: Object.assign({}, exports.withdrawalsSchema), | ||
}, | ||
withdrawalsRoot: { | ||
format: 'bytes32', | ||
@@ -286,44 +319,33 @@ }, | ||
}; | ||
exports.withdrawalsSchema = { | ||
exports.blockHeaderSchema = { | ||
type: 'object', | ||
properties: { | ||
index: { | ||
author: { | ||
format: 'bytes32', | ||
}, | ||
excessDataGas: { | ||
format: 'uint', | ||
}, | ||
validatorIndex: { | ||
baseFeePerGas: { | ||
format: 'uint', | ||
}, | ||
address: { | ||
format: 'address', | ||
blobGasUsed: { | ||
format: 'uint', | ||
}, | ||
amount: { | ||
difficulty: { | ||
format: 'uint', | ||
}, | ||
}, | ||
}; | ||
exports.blockHeaderSchema = { | ||
type: 'object', | ||
properties: { | ||
author: { | ||
format: 'bytes32', | ||
excessBlobGas: { | ||
format: 'uint', | ||
}, | ||
hash: { | ||
format: 'bytes32', | ||
}, | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
miner: { | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
gasLimit: { | ||
format: 'uint', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
gasUsed: { | ||
format: 'uint', | ||
}, | ||
withdrawalsRoot: { | ||
hash: { | ||
format: 'bytes32', | ||
@@ -334,6 +356,9 @@ }, | ||
}, | ||
difficulty: { | ||
format: 'uint', | ||
miner: { | ||
format: 'bytes', | ||
}, | ||
totalDifficulty: { | ||
mixHash: { | ||
format: 'bytes32', | ||
}, | ||
nonce: { | ||
format: 'uint', | ||
@@ -344,17 +369,11 @@ }, | ||
}, | ||
gasLimit: { | ||
format: 'uint', | ||
parentBeaconBlockRoot: { | ||
format: 'bytes32', | ||
}, | ||
gasUsed: { | ||
format: 'uint', | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
nonce: { | ||
format: 'uint', | ||
}, | ||
sha3Uncles: { | ||
@@ -366,11 +385,11 @@ format: 'bytes32', | ||
}, | ||
baseFeePerGas: { | ||
stateRoot: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
}, | ||
excessDataGas: { | ||
totalDifficulty: { | ||
format: 'uint', | ||
}, | ||
mixHash: { | ||
format: 'bytes32', | ||
}, | ||
transactions: { | ||
@@ -382,2 +401,5 @@ type: 'array', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
uncles: { | ||
@@ -393,2 +415,5 @@ type: 'array', | ||
}, | ||
withdrawalsRoot: { | ||
format: 'bytes32', | ||
}, | ||
}, | ||
@@ -395,0 +420,0 @@ }; |
@@ -196,32 +196,37 @@ /* | ||
}; | ||
export const blockSchema = { | ||
export const withdrawalsSchema = { | ||
type: 'object', | ||
properties: { | ||
parentHash: { | ||
format: 'bytes32', | ||
index: { | ||
format: 'uint', | ||
}, | ||
sha3Uncles: { | ||
format: 'bytes32', | ||
validatorIndex: { | ||
format: 'uint', | ||
}, | ||
miner: { | ||
format: 'bytes', | ||
address: { | ||
format: 'address', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
amount: { | ||
format: 'uint', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
}; | ||
export const blockSchema = { | ||
type: 'object', | ||
properties: { | ||
baseFeePerGas: { | ||
format: 'uint', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
blobGasUsed: { | ||
format: 'uint', | ||
}, | ||
logsBloom: { | ||
format: 'bytes256', | ||
}, | ||
difficulty: { | ||
format: 'uint', | ||
}, | ||
number: { | ||
excessBlobGas: { | ||
format: 'uint', | ||
}, | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
gasLimit: { | ||
@@ -233,6 +238,9 @@ format: 'uint', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
hash: { | ||
format: 'bytes32', | ||
}, | ||
extraData: { | ||
logsBloom: { | ||
format: 'bytes256', | ||
}, | ||
miner: { | ||
format: 'bytes', | ||
@@ -246,11 +254,29 @@ }, | ||
}, | ||
totalDifficulty: { | ||
number: { | ||
format: 'uint', | ||
}, | ||
baseFeePerGas: { | ||
format: 'uint', | ||
parentBeaconBlockRoot: { | ||
format: 'bytes32', | ||
}, | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
sha3Uncles: { | ||
format: 'bytes32', | ||
}, | ||
size: { | ||
format: 'uint', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
}, | ||
totalDifficulty: { | ||
format: 'uint', | ||
}, | ||
transactions: { | ||
@@ -270,2 +296,5 @@ oneOf: [ | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
uncles: { | ||
@@ -277,3 +306,7 @@ type: 'array', | ||
}, | ||
hash: { | ||
withdrawals: { | ||
type: 'array', | ||
items: Object.assign({}, withdrawalsSchema), | ||
}, | ||
withdrawalsRoot: { | ||
format: 'bytes32', | ||
@@ -283,44 +316,33 @@ }, | ||
}; | ||
export const withdrawalsSchema = { | ||
export const blockHeaderSchema = { | ||
type: 'object', | ||
properties: { | ||
index: { | ||
author: { | ||
format: 'bytes32', | ||
}, | ||
excessDataGas: { | ||
format: 'uint', | ||
}, | ||
validatorIndex: { | ||
baseFeePerGas: { | ||
format: 'uint', | ||
}, | ||
address: { | ||
format: 'address', | ||
blobGasUsed: { | ||
format: 'uint', | ||
}, | ||
amount: { | ||
difficulty: { | ||
format: 'uint', | ||
}, | ||
}, | ||
}; | ||
export const blockHeaderSchema = { | ||
type: 'object', | ||
properties: { | ||
author: { | ||
format: 'bytes32', | ||
excessBlobGas: { | ||
format: 'uint', | ||
}, | ||
hash: { | ||
format: 'bytes32', | ||
}, | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
miner: { | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
gasLimit: { | ||
format: 'uint', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
gasUsed: { | ||
format: 'uint', | ||
}, | ||
withdrawalsRoot: { | ||
hash: { | ||
format: 'bytes32', | ||
@@ -331,6 +353,9 @@ }, | ||
}, | ||
difficulty: { | ||
format: 'uint', | ||
miner: { | ||
format: 'bytes', | ||
}, | ||
totalDifficulty: { | ||
mixHash: { | ||
format: 'bytes32', | ||
}, | ||
nonce: { | ||
format: 'uint', | ||
@@ -341,17 +366,11 @@ }, | ||
}, | ||
gasLimit: { | ||
format: 'uint', | ||
parentBeaconBlockRoot: { | ||
format: 'bytes32', | ||
}, | ||
gasUsed: { | ||
format: 'uint', | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
nonce: { | ||
format: 'uint', | ||
}, | ||
sha3Uncles: { | ||
@@ -363,11 +382,11 @@ format: 'bytes32', | ||
}, | ||
baseFeePerGas: { | ||
stateRoot: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
}, | ||
excessDataGas: { | ||
totalDifficulty: { | ||
format: 'uint', | ||
}, | ||
mixHash: { | ||
format: 'bytes32', | ||
}, | ||
transactions: { | ||
@@ -379,2 +398,5 @@ type: 'array', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
uncles: { | ||
@@ -390,2 +412,5 @@ type: 'array', | ||
}, | ||
withdrawalsRoot: { | ||
format: 'bytes32', | ||
}, | ||
}, | ||
@@ -392,0 +417,0 @@ }; |
@@ -325,30 +325,35 @@ export declare const accessListItemSchema: { | ||
}; | ||
export declare const blockSchema: { | ||
export declare const withdrawalsSchema: { | ||
type: string; | ||
properties: { | ||
parentHash: { | ||
index: { | ||
format: string; | ||
}; | ||
sha3Uncles: { | ||
validatorIndex: { | ||
format: string; | ||
}; | ||
miner: { | ||
address: { | ||
format: string; | ||
}; | ||
stateRoot: { | ||
amount: { | ||
format: string; | ||
}; | ||
transactionsRoot: { | ||
}; | ||
}; | ||
export declare const blockSchema: { | ||
type: string; | ||
properties: { | ||
baseFeePerGas: { | ||
format: string; | ||
}; | ||
receiptsRoot: { | ||
blobGasUsed: { | ||
format: string; | ||
}; | ||
logsBloom: { | ||
difficulty: { | ||
format: string; | ||
}; | ||
difficulty: { | ||
excessBlobGas: { | ||
format: string; | ||
}; | ||
number: { | ||
extraData: { | ||
format: string; | ||
@@ -362,8 +367,11 @@ }; | ||
}; | ||
timestamp: { | ||
hash: { | ||
format: string; | ||
}; | ||
extraData: { | ||
logsBloom: { | ||
format: string; | ||
}; | ||
miner: { | ||
format: string; | ||
}; | ||
mixHash: { | ||
@@ -375,11 +383,29 @@ format: string; | ||
}; | ||
totalDifficulty: { | ||
number: { | ||
format: string; | ||
}; | ||
baseFeePerGas: { | ||
parentBeaconBlockRoot: { | ||
format: string; | ||
}; | ||
parentHash: { | ||
format: string; | ||
}; | ||
receiptsRoot: { | ||
format: string; | ||
}; | ||
sha3Uncles: { | ||
format: string; | ||
}; | ||
size: { | ||
format: string; | ||
}; | ||
stateRoot: { | ||
format: string; | ||
}; | ||
timestamp: { | ||
format: string; | ||
}; | ||
totalDifficulty: { | ||
format: string; | ||
}; | ||
transactions: { | ||
@@ -525,2 +551,5 @@ oneOf: ({ | ||
}; | ||
transactionsRoot: { | ||
format: string; | ||
}; | ||
uncles: { | ||
@@ -532,3 +561,23 @@ type: string; | ||
}; | ||
hash: { | ||
withdrawals: { | ||
type: string; | ||
items: { | ||
type: string; | ||
properties: { | ||
index: { | ||
format: string; | ||
}; | ||
validatorIndex: { | ||
format: string; | ||
}; | ||
address: { | ||
format: string; | ||
}; | ||
amount: { | ||
format: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
withdrawalsRoot: { | ||
format: string; | ||
@@ -538,73 +587,59 @@ }; | ||
}; | ||
export declare const withdrawalsSchema: { | ||
export declare const blockHeaderSchema: { | ||
type: string; | ||
properties: { | ||
index: { | ||
author: { | ||
format: string; | ||
}; | ||
validatorIndex: { | ||
excessDataGas: { | ||
format: string; | ||
}; | ||
address: { | ||
baseFeePerGas: { | ||
format: string; | ||
}; | ||
amount: { | ||
blobGasUsed: { | ||
format: string; | ||
}; | ||
}; | ||
}; | ||
export declare const blockHeaderSchema: { | ||
type: string; | ||
properties: { | ||
author: { | ||
difficulty: { | ||
format: string; | ||
}; | ||
hash: { | ||
excessBlobGas: { | ||
format: string; | ||
}; | ||
parentHash: { | ||
extraData: { | ||
format: string; | ||
}; | ||
receiptsRoot: { | ||
gasLimit: { | ||
format: string; | ||
}; | ||
miner: { | ||
gasUsed: { | ||
format: string; | ||
}; | ||
stateRoot: { | ||
hash: { | ||
format: string; | ||
}; | ||
transactionsRoot: { | ||
logsBloom: { | ||
format: string; | ||
}; | ||
withdrawalsRoot: { | ||
miner: { | ||
format: string; | ||
}; | ||
logsBloom: { | ||
mixHash: { | ||
format: string; | ||
}; | ||
difficulty: { | ||
nonce: { | ||
format: string; | ||
}; | ||
totalDifficulty: { | ||
format: string; | ||
}; | ||
number: { | ||
format: string; | ||
}; | ||
gasLimit: { | ||
parentBeaconBlockRoot: { | ||
format: string; | ||
}; | ||
gasUsed: { | ||
parentHash: { | ||
format: string; | ||
}; | ||
timestamp: { | ||
receiptsRoot: { | ||
format: string; | ||
}; | ||
extraData: { | ||
format: string; | ||
}; | ||
nonce: { | ||
format: string; | ||
}; | ||
sha3Uncles: { | ||
@@ -616,9 +651,9 @@ format: string; | ||
}; | ||
baseFeePerGas: { | ||
stateRoot: { | ||
format: string; | ||
}; | ||
excessDataGas: { | ||
timestamp: { | ||
format: string; | ||
}; | ||
mixHash: { | ||
totalDifficulty: { | ||
format: string; | ||
@@ -632,2 +667,5 @@ }; | ||
}; | ||
transactionsRoot: { | ||
format: string; | ||
}; | ||
uncles: { | ||
@@ -659,2 +697,5 @@ type: string; | ||
}; | ||
withdrawalsRoot: { | ||
format: string; | ||
}; | ||
}; | ||
@@ -661,0 +702,0 @@ }; |
{ | ||
"name": "web3-eth", | ||
"version": "4.5.1-dev.f943944.0+f943944", | ||
"version": "4.6.0", | ||
"description": "Web3 module to interact with the Ethereum blockchain and smart contracts.", | ||
@@ -62,18 +62,18 @@ "main": "./lib/commonjs/index.js", | ||
"typescript": "^4.7.4", | ||
"web3-providers-http": "4.1.1-dev.f943944.0+f943944" | ||
"web3-providers-http": "^4.1.0" | ||
}, | ||
"dependencies": { | ||
"setimmediate": "^1.0.5", | ||
"web3-core": "4.3.3-dev.f943944.0+f943944", | ||
"web3-errors": "1.1.5-dev.f943944.0+f943944", | ||
"web3-eth-abi": "4.2.1-dev.f943944.0+f943944", | ||
"web3-eth-accounts": "4.1.2-dev.f943944.0+f943944", | ||
"web3-net": "4.0.8-dev.f943944.0+f943944", | ||
"web3-providers-ws": "4.0.8-dev.f943944.0+f943944", | ||
"web3-rpc-methods": "1.2.1-dev.f943944.0+f943944", | ||
"web3-types": "1.5.1-dev.f943944.0+f943944", | ||
"web3-utils": "4.2.2-dev.f943944.0+f943944", | ||
"web3-validator": "2.0.5-dev.f943944.0+f943944" | ||
"web3-core": "^4.3.2", | ||
"web3-errors": "^1.1.4", | ||
"web3-eth-abi": "^4.2.1", | ||
"web3-eth-accounts": "^4.1.2", | ||
"web3-net": "^4.0.7", | ||
"web3-providers-ws": "^4.0.7", | ||
"web3-rpc-methods": "^1.2.0", | ||
"web3-types": "^1.6.0", | ||
"web3-utils": "^4.2.3", | ||
"web3-validator": "^2.0.5" | ||
}, | ||
"gitHead": "f943944b51d977f72d4db959be0e72adbcb68c12" | ||
"gitHead": "93eeccb96d7bcddfa49ed4c4848dbf55b825546c" | ||
} |
@@ -239,32 +239,38 @@ /* | ||
export const blockSchema = { | ||
export const withdrawalsSchema = { | ||
type: 'object', | ||
properties: { | ||
parentHash: { | ||
format: 'bytes32', | ||
index: { | ||
format: 'uint', | ||
}, | ||
sha3Uncles: { | ||
format: 'bytes32', | ||
validatorIndex: { | ||
format: 'uint', | ||
}, | ||
miner: { | ||
format: 'bytes', | ||
address: { | ||
format: 'address', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
amount: { | ||
format: 'uint', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
}; | ||
export const blockSchema = { | ||
type: 'object', | ||
properties: { | ||
baseFeePerGas: { | ||
format: 'uint', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
blobGasUsed: { | ||
format: 'uint', | ||
}, | ||
logsBloom: { | ||
format: 'bytes256', | ||
}, | ||
difficulty: { | ||
format: 'uint', | ||
}, | ||
number: { | ||
excessBlobGas: { | ||
format: 'uint', | ||
}, | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
gasLimit: { | ||
@@ -276,6 +282,9 @@ format: 'uint', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
hash: { | ||
format: 'bytes32', | ||
}, | ||
extraData: { | ||
logsBloom: { | ||
format: 'bytes256', | ||
}, | ||
miner: { | ||
format: 'bytes', | ||
@@ -289,11 +298,29 @@ }, | ||
}, | ||
totalDifficulty: { | ||
number: { | ||
format: 'uint', | ||
}, | ||
baseFeePerGas: { | ||
format: 'uint', | ||
parentBeaconBlockRoot: { | ||
format: 'bytes32', | ||
}, | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
sha3Uncles: { | ||
format: 'bytes32', | ||
}, | ||
size: { | ||
format: 'uint', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
}, | ||
totalDifficulty: { | ||
format: 'uint', | ||
}, | ||
transactions: { | ||
@@ -315,2 +342,5 @@ oneOf: [ | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
uncles: { | ||
@@ -322,3 +352,9 @@ type: 'array', | ||
}, | ||
hash: { | ||
withdrawals: { | ||
type: 'array', | ||
items: { | ||
...withdrawalsSchema, | ||
}, | ||
}, | ||
withdrawalsRoot: { | ||
format: 'bytes32', | ||
@@ -329,45 +365,33 @@ }, | ||
export const withdrawalsSchema = { | ||
export const blockHeaderSchema = { | ||
type: 'object', | ||
properties: { | ||
index: { | ||
author: { | ||
format: 'bytes32', | ||
}, | ||
excessDataGas: { | ||
format: 'uint', | ||
}, | ||
validatorIndex: { | ||
baseFeePerGas: { | ||
format: 'uint', | ||
}, | ||
address: { | ||
format: 'address', | ||
blobGasUsed: { | ||
format: 'uint', | ||
}, | ||
amount: { | ||
difficulty: { | ||
format: 'uint', | ||
}, | ||
}, | ||
}; | ||
export const blockHeaderSchema = { | ||
type: 'object', | ||
properties: { | ||
author: { | ||
format: 'bytes32', | ||
excessBlobGas: { | ||
format: 'uint', | ||
}, | ||
hash: { | ||
format: 'bytes32', | ||
}, | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
miner: { | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
stateRoot: { | ||
format: 'bytes32', | ||
gasLimit: { | ||
format: 'uint', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
gasUsed: { | ||
format: 'uint', | ||
}, | ||
withdrawalsRoot: { | ||
hash: { | ||
format: 'bytes32', | ||
@@ -378,6 +402,9 @@ }, | ||
}, | ||
difficulty: { | ||
format: 'uint', | ||
miner: { | ||
format: 'bytes', | ||
}, | ||
totalDifficulty: { | ||
mixHash: { | ||
format: 'bytes32', | ||
}, | ||
nonce: { | ||
format: 'uint', | ||
@@ -388,17 +415,11 @@ }, | ||
}, | ||
gasLimit: { | ||
format: 'uint', | ||
parentBeaconBlockRoot: { | ||
format: 'bytes32', | ||
}, | ||
gasUsed: { | ||
format: 'uint', | ||
parentHash: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
receiptsRoot: { | ||
format: 'bytes32', | ||
}, | ||
extraData: { | ||
format: 'bytes', | ||
}, | ||
nonce: { | ||
format: 'uint', | ||
}, | ||
sha3Uncles: { | ||
@@ -410,11 +431,11 @@ format: 'bytes32', | ||
}, | ||
baseFeePerGas: { | ||
stateRoot: { | ||
format: 'bytes32', | ||
}, | ||
timestamp: { | ||
format: 'uint', | ||
}, | ||
excessDataGas: { | ||
totalDifficulty: { | ||
format: 'uint', | ||
}, | ||
mixHash: { | ||
format: 'bytes32', | ||
}, | ||
transactions: { | ||
@@ -426,2 +447,5 @@ type: 'array', | ||
}, | ||
transactionsRoot: { | ||
format: 'bytes32', | ||
}, | ||
uncles: { | ||
@@ -433,3 +457,3 @@ type: 'array', | ||
}, | ||
withdrawals: { | ||
withdrawals: { | ||
type: 'array', | ||
@@ -440,2 +464,5 @@ items: { | ||
}, | ||
withdrawalsRoot: { | ||
format: 'bytes32', | ||
}, | ||
}, | ||
@@ -442,0 +469,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1292893
23059
1
0
+ Added@ethereumjs/rlp@4.0.1(transitive)
+ Added@noble/curves@1.4.2(transitive)
+ Added@noble/hashes@1.4.0(transitive)
+ Added@scure/base@1.1.9(transitive)
+ Added@scure/bip32@1.4.0(transitive)
+ Added@scure/bip39@1.3.0(transitive)
+ Added@types/node@22.7.4(transitive)
+ Added@types/ws@8.5.3(transitive)
+ Addedabitype@0.7.1(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcrc-32@1.2.2(transitive)
+ Addedcross-fetch@4.0.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedethereum-cryptography@2.2.1(transitive)
+ Addedeventemitter3@5.0.1(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-typed-array@1.1.13(transitive)
+ Addedisomorphic-ws@5.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedtypescript@5.6.2(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedutil@0.12.5(transitive)
+ Addedweb3-core@4.6.0(transitive)
+ Addedweb3-errors@1.3.0(transitive)
+ Addedweb3-eth-abi@4.2.4(transitive)
+ Addedweb3-eth-accounts@4.2.1(transitive)
+ Addedweb3-eth-iban@4.0.7(transitive)
+ Addedweb3-net@4.1.0(transitive)
+ Addedweb3-providers-http@4.2.0(transitive)
+ Addedweb3-providers-ipc@4.0.7(transitive)
+ Addedweb3-providers-ws@4.0.8(transitive)
+ Addedweb3-rpc-methods@1.3.0(transitive)
+ Addedweb3-types@1.8.0(transitive)
+ Addedweb3-utils@4.3.1(transitive)
+ Addedweb3-validator@2.0.6(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
+ Addedws@8.18.0(transitive)
+ Addedzod@3.23.8(transitive)
Updatedweb3-core@^4.3.2
Updatedweb3-errors@^1.1.4
Updatedweb3-eth-abi@^4.2.1
Updatedweb3-eth-accounts@^4.1.2
Updatedweb3-net@^4.0.7
Updatedweb3-providers-ws@^4.0.7
Updatedweb3-rpc-methods@^1.2.0
Updatedweb3-types@^1.6.0
Updatedweb3-utils@^4.2.3
Updatedweb3-validator@^2.0.5