Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web3-types

Package Overview
Dependencies
Maintainers
5
Versions
352
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-types - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1-dev.1436228.0

3

lib/commonjs/eth_types.d.ts

@@ -20,3 +20,4 @@ import { Bytes, HexString, Numbers } from './primitives_types.js';

SAFE = "safe",
FINALIZED = "finalized"
FINALIZED = "finalized",
COMMITTED = "committed"
}

@@ -23,0 +24,0 @@ export declare type BlockTag = `${BlockTags}`;

@@ -11,2 +11,3 @@ "use strict";

BlockTags["FINALIZED"] = "finalized";
BlockTags["COMMITTED"] = "committed";
})(BlockTags = exports.BlockTags || (exports.BlockTags = {}));

@@ -13,0 +14,0 @@ // This list of hardforks is expected to be in order

@@ -8,2 +8,3 @@ export var BlockTags;

BlockTags["FINALIZED"] = "finalized";
BlockTags["COMMITTED"] = "committed";
})(BlockTags || (BlockTags = {}));

@@ -10,0 +11,0 @@ // This list of hardforks is expected to be in order

@@ -20,3 +20,4 @@ import { Bytes, HexString, Numbers } from './primitives_types.js';

SAFE = "safe",
FINALIZED = "finalized"
FINALIZED = "finalized",
COMMITTED = "committed"
}

@@ -23,0 +24,0 @@ export declare type BlockTag = `${BlockTags}`;

{
"name": "web3-types",
"version": "1.7.0",
"version": "1.7.1-dev.1436228.0+1436228",
"description": "Provide the common data structures and interfaces for web3 modules.",

@@ -59,3 +59,3 @@ "main": "./lib/commonjs/index.js",

},
"gitHead": "d6d4c6df8f6b6323bc5fe277cbee969c28c845a7"
"gitHead": "1436228817c7e6362e7a82b8f79ec3b2e9c99412"
}

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

FINALIZED = 'finalized',
COMMITTED = 'committed',
}

@@ -142,4 +143,4 @@ export type BlockTag = `${BlockTags}`;

export interface BlockOutput {
readonly gasLimit: bigint | number;
readonly gasUsed: bigint | number;
readonly gasLimit: bigint | number;
readonly gasUsed: bigint | number;
readonly size: bigint | number;

@@ -157,50 +158,50 @@ readonly timestamp: bigint | number;

readonly blobGasUsed?: bigint | number;
readonly excessBlobGas?: bigint | number;
readonly extraData?: Bytes;
readonly hash?: HexString32Bytes;
readonly logsBloom?: Bytes;
readonly nonce?: bigint | number;
readonly parentBeaconBlockRoot?: HexString32Bytes;
readonly receiptsRoot?: HexString32Bytes;
readonly sha3Uncles: HexString32Bytes[];
readonly stateRoot?: HexString32Bytes;
readonly transactionsRoot?: HexString32Bytes;
readonly withdrawalsRoot?: HexString32Bytes;
readonly mixHash?: HexString32Bytes;
readonly uncles?: Uncles;
readonly withdrawals?: Withdrawals[];
readonly excessBlobGas?: bigint | number;
readonly extraData?: Bytes;
readonly hash?: HexString32Bytes;
readonly logsBloom?: Bytes;
readonly nonce?: bigint | number;
readonly parentBeaconBlockRoot?: HexString32Bytes;
readonly receiptsRoot?: HexString32Bytes;
readonly sha3Uncles: HexString32Bytes[];
readonly stateRoot?: HexString32Bytes;
readonly transactionsRoot?: HexString32Bytes;
readonly withdrawalsRoot?: HexString32Bytes;
readonly mixHash?: HexString32Bytes;
readonly uncles?: Uncles;
readonly withdrawals?: Withdrawals[];
}
export interface BlockHeaderOutput {
readonly baseFeePerGas?: Numbers;
readonly blobGasUsed?: Numbers;
readonly difficulty?: Numbers;
readonly excessBlobGas?: Numbers;
readonly extraData?: Bytes;
readonly gasLimit: Numbers;
readonly gasUsed: Numbers;
readonly hash?: HexString32Bytes;
readonly logsBloom?: Bytes;
readonly miner?: HexString;
readonly nonce?: Numbers;
readonly number?: Numbers;
readonly parentBeaconBlockRoot?: HexString32Bytes;
readonly parentHash?: HexString32Bytes;
readonly receiptsRoot?: HexString32Bytes;
readonly sha3Uncles: HexString32Bytes[];
readonly stateRoot?: HexString32Bytes;
readonly timestamp: Numbers;
readonly transactionsRoot?: HexString32Bytes;
readonly withdrawalsRoot?: HexString32Bytes;
readonly baseFeePerGas?: Numbers;
readonly blobGasUsed?: Numbers;
readonly difficulty?: Numbers;
readonly excessBlobGas?: Numbers;
readonly extraData?: Bytes;
readonly gasLimit: Numbers;
readonly gasUsed: Numbers;
readonly hash?: HexString32Bytes;
readonly logsBloom?: Bytes;
readonly miner?: HexString;
readonly nonce?: Numbers;
readonly number?: Numbers;
readonly parentBeaconBlockRoot?: HexString32Bytes;
readonly parentHash?: HexString32Bytes;
readonly receiptsRoot?: HexString32Bytes;
readonly sha3Uncles: HexString32Bytes[];
readonly stateRoot?: HexString32Bytes;
readonly timestamp: Numbers;
readonly transactionsRoot?: HexString32Bytes;
readonly withdrawalsRoot?: HexString32Bytes;
// These fields are returned when the RPC client is Nethermind,
// but aren't available in other clients such as Geth
readonly author?: Address;
readonly totalDifficulty?: Numbers;
readonly size?: Numbers;
readonly excessDataGas?: Numbers;
readonly mixHash?: HexString32Bytes;
readonly transactions?: TransactionOutput[];
readonly uncles?: Uncles;
readonly withdrawals?: Withdrawals[];
// These fields are returned when the RPC client is Nethermind,
// but aren't available in other clients such as Geth
readonly author?: Address;
readonly totalDifficulty?: Numbers;
readonly size?: Numbers;
readonly excessDataGas?: Numbers;
readonly mixHash?: HexString32Bytes;
readonly transactions?: TransactionOutput[];
readonly uncles?: Uncles;
readonly withdrawals?: Withdrawals[];
}

@@ -559,9 +560,9 @@

* EIP-1559 was applied to Ethereum after London hardfork.
*
*
* Typically you will only need `maxFeePerGas` and `maxPriorityFeePerGas` for a transaction following EIP-1559.
* However, if you want to get informed about the fees of last block, you can use `baseFeePerGas` too.
*
*
*
*
* @see https://eips.ethereum.org/EIPS/eip-1559
*
*
*/

@@ -576,6 +577,6 @@ export interface FeeData {

* The baseFeePerGas returned from the last available block.
*
*
* If EIP-1559 is not supported, this will be `undefined`
*
* However, the user will only pay (the future baseFeePerGas + the maxPriorityFeePerGas).
*
* However, the user will only pay (the future baseFeePerGas + the maxPriorityFeePerGas).
* And this value is just for getting informed about the fees of last block.

@@ -587,6 +588,6 @@ */

* The maximum fee that the user would be willing to pay per-gas.
*
*
* However, the user will only pay (the future baseFeePerGas + the maxPriorityFeePerGas).
* And the `maxFeePerGas` could be used to prevent paying more than it, if `baseFeePerGas` went too high.
*
*
* If EIP-1559 is not supported, this will be `undefined`

@@ -602,2 +603,2 @@ */

readonly maxPriorityFeePerGas?: Numbers;
}
}

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