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

@ethereumjs/tx

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethereumjs/tx - npm Package Compare versions

Comparing version 4.0.0-rc.1 to 4.0.0

2

dist/baseTransaction.js

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

// Chain ID provided
if ((0, util_1.isTruthy)(chainId)) {
if (chainId !== undefined) {
const chainIdBigInt = (0, util_1.bufferToBigInt)((0, util_1.toBuffer)(chainId));

@@ -234,0 +234,0 @@ if (common) {

@@ -18,3 +18,3 @@ /// <reference types="node" />

/**
* Tx supports EIP-1559 gas fee market mechansim
* Tx supports EIP-1559 gas fee market mechanism
* See: [1559](https://eips.ethereum.org/EIPS/eip-1559) Fee Market EIP

@@ -219,3 +219,24 @@ */

}
export interface JsonRpcTx {
blockHash: string | null;
blockNumber: string | null;
from: string;
gas: string;
gasPrice: string;
maxFeePerGas?: string;
maxPriorityFeePerGas?: string;
type: string;
accessList?: JsonTx['accessList'];
chainId?: string;
hash: string;
input: string;
nonce: string;
to: string | null;
transactionIndex: string | null;
value: string;
v: string;
r: string;
s: string;
}
export {};
//# sourceMappingURL=types.d.ts.map

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

/**
* Tx supports EIP-1559 gas fee market mechansim
* Tx supports EIP-1559 gas fee market mechanism
* See: [1559](https://eips.ethereum.org/EIPS/eip-1559) Fee Market EIP

@@ -19,0 +19,0 @@ */

{
"name": "@ethereumjs/tx",
"version": "4.0.0-rc.1",
"version": "4.0.0",
"description": "A simple module for creating, manipulating and signing Ethereum transactions",

@@ -53,5 +53,5 @@ "keywords": [

"dependencies": {
"@ethereumjs/common": "3.0.0-rc.1",
"@ethereumjs/rlp": "4.0.0-rc.1",
"@ethereumjs/util": "8.0.0-rc.1",
"@ethereumjs/common": "^3.0.0",
"@ethereumjs/rlp": "^4.0.0",
"@ethereumjs/util": "^8.0.0",
"ethereum-cryptography": "^1.1.2"

@@ -58,0 +58,0 @@ },

@@ -10,3 +10,2 @@ import { Chain, Common, Hardfork } from '@ethereumjs/common'

ecsign,
isTruthy,
publicToAddress,

@@ -366,3 +365,3 @@ toBuffer,

// Chain ID provided
if (isTruthy(chainId)) {
if (chainId !== undefined) {
const chainIdBigInt = bufferToBigInt(toBuffer(chainId))

@@ -369,0 +368,0 @@ if (common) {

@@ -19,3 +19,3 @@ import type { FeeMarketEIP1559Transaction } from './eip1559Transaction'

/**
* Tx supports EIP-1559 gas fee market mechansim
* Tx supports EIP-1559 gas fee market mechanism
* See: [1559](https://eips.ethereum.org/EIPS/eip-1559) Fee Market EIP

@@ -267,1 +267,26 @@ */

}
/*
* Based on https://ethereum.org/en/developers/docs/apis/json-rpc/
*/
export interface JsonRpcTx {
blockHash: string | null // DATA, 32 Bytes - hash of the block where this transaction was in. null when it's pending.
blockNumber: string | null // QUANTITY - block number where this transaction was in. null when it's pending.
from: string // DATA, 20 Bytes - address of the sender.
gas: string // QUANTITY - gas provided by the sender.
gasPrice: string // QUANTITY - gas price provided by the sender in wei. If EIP-1559 tx, defaults to maxFeePerGas.
maxFeePerGas?: string // QUANTITY - max total fee per gas provided by the sender in wei.
maxPriorityFeePerGas?: string // QUANTITY - max priority fee per gas provided by the sender in wei.
type: string // QUANTITY - EIP-2718 Typed Transaction type
accessList?: JsonTx['accessList'] // EIP-2930 access list
chainId?: string // Chain ID that this transaction is valid on.
hash: string // DATA, 32 Bytes - hash of the transaction.
input: string // DATA - the data send along with the transaction.
nonce: string // QUANTITY - the number of transactions made by the sender prior to this one.
to: string | null /// DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.
transactionIndex: string | null // QUANTITY - integer of the transactions index position in the block. null when it's pending.
value: string // QUANTITY - value transferred in Wei.
v: string // QUANTITY - ECDSA recovery id
r: string // DATA, 32 Bytes - ECDSA signature r
s: string // DATA, 32 Bytes - ECDSA signature s
}

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