Socket
Socket
Sign inDemoInstall

web3-eth

Package Overview
Dependencies
Maintainers
4
Versions
470
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.9.1-dev.61babcc.0 to 4.9.1-dev.69187c5.0

2

lib/commonjs/rpc_method_wrappers.d.ts

@@ -529,3 +529,3 @@ import { FormatType, DataFormat, EthExecutionAPI, SignedTransactionInfoAPI, Address, BlockNumberOrTag, Bytes, Filter, Numbers, TransactionReceipt, Transaction, TransactionCall, Web3EthExecutionAPI, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, TransactionForAccessList, Eip712TypedData } from 'web3-types';

readonly oldestBlock: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly baseFeePerGas: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly baseFeePerGas: import("web3-types").NumberTypes[ReturnFormat["number"]][];
readonly reward: import("web3-types").NumberTypes[ReturnFormat["number"]][][];

@@ -532,0 +532,0 @@ readonly gasUsedRatio: import("web3-types").NumberTypes[ReturnFormat["number"]][];

@@ -38,15 +38,3 @@ "use strict";

var _a, _b;
return ({
nonce: transaction.nonce,
gasPrice: transaction.gasPrice,
gasLimit: (_a = transaction.gasLimit) !== null && _a !== void 0 ? _a : transaction.gas,
to: transaction.to,
value: transaction.value,
data: (_b = transaction.data) !== null && _b !== void 0 ? _b : transaction.input,
type: transaction.type,
chainId: transaction.chainId,
accessList: transaction.accessList,
maxPriorityFeePerGas: transaction.maxPriorityFeePerGas,
maxFeePerGas: transaction.maxFeePerGas,
});
return (Object.assign(Object.assign({}, transaction), { nonce: transaction.nonce, gasPrice: transaction.gasPrice, gasLimit: (_a = transaction.gasLimit) !== null && _a !== void 0 ? _a : transaction.gas, to: transaction.to, value: transaction.value, data: (_b = transaction.data) !== null && _b !== void 0 ? _b : transaction.input, type: transaction.type, chainId: transaction.chainId, accessList: transaction.accessList, maxPriorityFeePerGas: transaction.maxPriorityFeePerGas, maxFeePerGas: transaction.maxFeePerGas }));
};

@@ -53,0 +41,0 @@ const getEthereumjsTransactionOptions = (transaction, web3Context) => {

@@ -93,3 +93,4 @@ "use strict";

let result = transactionFormatted;
if (!((_a = this.options) === null || _a === void 0 ? void 0 : _a.ignoreGasPricing) &&
if (!this.web3Context.config.ignoreGasPricing &&
!((_a = this.options) === null || _a === void 0 ? void 0 : _a.ignoreGasPricing) &&
(0, web3_validator_1.isNullish)(transactionFormatted.gasPrice) &&

@@ -96,0 +97,0 @@ ((0, web3_validator_1.isNullish)(transaction.maxPriorityFeePerGas) ||

@@ -131,3 +131,3 @@ "use strict";

else {
const mappedData = Object.fromEntries(Object.entries(data.status).map(([key, value]) => [
const mappedData = Object.fromEntries(Object.entries((data === null || data === void 0 ? void 0 : data.status) || data).map(([key, value]) => [
key.charAt(0).toLowerCase() + key.substring(1),

@@ -134,0 +134,0 @@ value,

@@ -35,15 +35,3 @@ /*

var _a, _b;
return ({
nonce: transaction.nonce,
gasPrice: transaction.gasPrice,
gasLimit: (_a = transaction.gasLimit) !== null && _a !== void 0 ? _a : transaction.gas,
to: transaction.to,
value: transaction.value,
data: (_b = transaction.data) !== null && _b !== void 0 ? _b : transaction.input,
type: transaction.type,
chainId: transaction.chainId,
accessList: transaction.accessList,
maxPriorityFeePerGas: transaction.maxPriorityFeePerGas,
maxFeePerGas: transaction.maxFeePerGas,
});
return (Object.assign(Object.assign({}, transaction), { nonce: transaction.nonce, gasPrice: transaction.gasPrice, gasLimit: (_a = transaction.gasLimit) !== null && _a !== void 0 ? _a : transaction.gas, to: transaction.to, value: transaction.value, data: (_b = transaction.data) !== null && _b !== void 0 ? _b : transaction.input, type: transaction.type, chainId: transaction.chainId, accessList: transaction.accessList, maxPriorityFeePerGas: transaction.maxPriorityFeePerGas, maxFeePerGas: transaction.maxFeePerGas }));
};

@@ -50,0 +38,0 @@ const getEthereumjsTransactionOptions = (transaction, web3Context) => {

@@ -90,3 +90,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

let result = transactionFormatted;
if (!((_a = this.options) === null || _a === void 0 ? void 0 : _a.ignoreGasPricing) &&
if (!this.web3Context.config.ignoreGasPricing &&
!((_a = this.options) === null || _a === void 0 ? void 0 : _a.ignoreGasPricing) &&
isNullish(transactionFormatted.gasPrice) &&

@@ -93,0 +94,0 @@ (isNullish(transaction.maxPriorityFeePerGas) ||

@@ -18,3 +18,3 @@ /*

import { ETH_DATA_FORMAT, } from 'web3-types';
import { isAddress, isHexStrict, isHexString32Bytes, isNullish, isUInt, } from 'web3-validator';
import { isAddress, isHexStrict, isHexString32Bytes, isNullish, isUInt } from 'web3-validator';
import { ChainMismatchError, HardforkMismatchError, ChainIdMismatchError, CommonOrChainAndHardforkError, Eip1559GasPriceError, InvalidGasOrGasPrice, InvalidMaxPriorityFeePerGasOrMaxFeePerGas, InvalidNonceOrChainIdError, InvalidTransactionCall, InvalidTransactionObjectError, InvalidTransactionWithSender, MissingChainOrHardforkError, MissingCustomChainError, MissingCustomChainIdError, MissingGasError, TransactionGasMismatchError, UnsupportedFeeMarketError, } from 'web3-errors';

@@ -21,0 +21,0 @@ import { formatTransaction } from './utils/format_transaction.js';

@@ -125,3 +125,3 @@ /*

else {
const mappedData = Object.fromEntries(Object.entries(data.status).map(([key, value]) => [
const mappedData = Object.fromEntries(Object.entries((data === null || data === void 0 ? void 0 : data.status) || data).map(([key, value]) => [
key.charAt(0).toLowerCase() + key.substring(1),

@@ -128,0 +128,0 @@ value,

@@ -529,3 +529,3 @@ import { FormatType, DataFormat, EthExecutionAPI, SignedTransactionInfoAPI, Address, BlockNumberOrTag, Bytes, Filter, Numbers, TransactionReceipt, Transaction, TransactionCall, Web3EthExecutionAPI, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, TransactionForAccessList, Eip712TypedData } from 'web3-types';

readonly oldestBlock: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly baseFeePerGas: import("web3-types").NumberTypes[ReturnFormat["number"]];
readonly baseFeePerGas: import("web3-types").NumberTypes[ReturnFormat["number"]][];
readonly reward: import("web3-types").NumberTypes[ReturnFormat["number"]][][];

@@ -532,0 +532,0 @@ readonly gasUsedRatio: import("web3-types").NumberTypes[ReturnFormat["number"]][];

{
"name": "web3-eth",
"version": "4.9.1-dev.61babcc.0+61babcc",
"version": "4.9.1-dev.69187c5.0+69187c5",
"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.2.1-dev.61babcc.0+61babcc"
"web3-providers-http": "4.2.1-dev.69187c5.0+69187c5"
},
"dependencies": {
"setimmediate": "^1.0.5",
"web3-core": "4.6.1-dev.61babcc.0+61babcc",
"web3-errors": "1.3.1-dev.61babcc.0+61babcc",
"web3-eth-abi": "4.2.5-dev.61babcc.0+61babcc",
"web3-eth-accounts": "4.2.2-dev.61babcc.0+61babcc",
"web3-net": "4.1.1-dev.61babcc.0+61babcc",
"web3-providers-ws": "4.0.9-dev.61babcc.0+61babcc",
"web3-rpc-methods": "1.3.1-dev.61babcc.0+61babcc",
"web3-types": "1.8.1-dev.61babcc.0+61babcc",
"web3-utils": "4.3.2-dev.61babcc.0+61babcc",
"web3-validator": "2.0.7-dev.61babcc.0+61babcc"
"web3-core": "4.6.1-dev.69187c5.0+69187c5",
"web3-errors": "1.3.1-dev.69187c5.0+69187c5",
"web3-eth-abi": "4.2.5-dev.69187c5.0+69187c5",
"web3-eth-accounts": "4.2.2-dev.69187c5.0+69187c5",
"web3-net": "4.1.1-dev.69187c5.0+69187c5",
"web3-providers-ws": "4.0.9-dev.69187c5.0+69187c5",
"web3-rpc-methods": "1.3.1-dev.69187c5.0+69187c5",
"web3-types": "1.8.1-dev.69187c5.0+69187c5",
"web3-utils": "4.3.2-dev.69187c5.0+69187c5",
"web3-validator": "2.0.7-dev.69187c5.0+69187c5"
},
"gitHead": "61babcc58ae00bbb21101b794f621fccf30a8f66"
"gitHead": "69187c5ed45fa771d46d731277b0292c15c5546a"
}

@@ -40,2 +40,3 @@ /*

) => ({
...transaction,
nonce: transaction.nonce,

@@ -42,0 +43,0 @@ gasPrice: transaction.gasPrice,

@@ -166,2 +166,3 @@ /*

if (
!this.web3Context.config.ignoreGasPricing &&
!this.options?.ignoreGasPricing &&

@@ -168,0 +169,0 @@ isNullish((transactionFormatted as Transaction).gasPrice) &&

@@ -30,10 +30,4 @@ /*

} from 'web3-types';
import { isAddress, isHexStrict, isHexString32Bytes, isNullish, isUInt } from 'web3-validator';
import {
isAddress,
isHexStrict,
isHexString32Bytes,
isNullish,
isUInt,
} from 'web3-validator';
import {
ChainMismatchError,

@@ -40,0 +34,0 @@ HardforkMismatchError,

@@ -166,3 +166,3 @@ /*

const mappedData: SyncOutput = Object.fromEntries(
Object.entries(data.status).map(([key, value]) => [
Object.entries(data?.status || data).map(([key, value]) => [
key.charAt(0).toLowerCase() + key.substring(1),

@@ -169,0 +169,0 @@ value,

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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

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 too big to display

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

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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