@ethereumjs/tx
Advanced tools
Comparing version 4.0.0-rc.1 to 4.0.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
256612
4461
0
+ Added@ethereumjs/common@3.2.0(transitive)
+ Added@ethereumjs/rlp@4.0.1(transitive)
+ Added@ethereumjs/util@8.1.0(transitive)
+ Added@noble/curves@1.4.2(transitive)
+ Added@noble/hashes@1.4.0(transitive)
+ Added@scure/bip32@1.4.0(transitive)
+ Added@scure/bip39@1.3.0(transitive)
+ Addedethereum-cryptography@2.2.1(transitive)
+ Addedmicro-ftch@0.3.1(transitive)
- Removed@ethereumjs/common@3.0.0-rc.1(transitive)
- Removed@ethereumjs/rlp@4.0.0-rc.1(transitive)
- Removed@ethereumjs/util@8.0.0-rc.1(transitive)
Updated@ethereumjs/common@^3.0.0
Updated@ethereumjs/rlp@^4.0.0
Updated@ethereumjs/util@^8.0.0