Socket
Socket
Sign inDemoInstall

web3-eth

Package Overview
Dependencies
Maintainers
4
Versions
454
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth - npm Package Compare versions

Comparing version 4.5.1-dev.f943944.0 to 4.6.0

141

lib/commonjs/schemas.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc