/// import { Data, Quantity } from "@ganache/utils"; import { Address } from "@ganache/ethereum-address"; import type { Common } from "@ethereumjs/common"; import { RuntimeTransaction } from "./runtime-transaction"; import { Transaction } from "./rpc-transaction"; import { EIP2930AccessListRawTransaction, GanacheRawExtraTx, LegacyRawTransaction } from "./raw"; import { Capability, LegacyTransactionJSON } from "./transaction-types"; export declare class LegacyTransaction extends RuntimeTransaction { gasPrice: Quantity; type: Quantity; constructor(data: LegacyRawTransaction | Transaction, common: Common, extra?: GanacheRawExtraTx); maxGasPrice(): Quantity; toJSON(common?: Common): LegacyTransactionJSON; static fromTxData(data: LegacyRawTransaction | Transaction, common: Common, extra?: GanacheRawExtraTx): LegacyTransaction; static fromEIP2930AccessListTransaction(data: EIP2930AccessListRawTransaction | Transaction, common: Common): LegacyTransaction; toVmTransaction(): { hash: () => Buffer; common: Common; nonce: bigint; gasPrice: bigint; gasLimit: bigint; to: Address; value: bigint; data: Buffer; getSenderAddress: () => Address; /** * the minimum amount of gas the tx must have (DataFee + TxFee + Creation Fee) */ getBaseFee: () => bigint; getUpfrontCost: () => bigint; supports: (capability: Capability) => boolean; }; /** * sign a transaction with a given private key, then compute and set the `hash`. * * @param privateKey - Must be 32 bytes in length */ signAndHash(privateKey: Buffer): void; toEthRawTransaction(v: Buffer, r: Buffer, s: Buffer): LegacyRawTransaction; computeIntrinsics(v: Quantity, raw: LegacyRawTransaction, chainId: bigint): { from: Address; hash: Data; serialized: Buffer; }; updateEffectiveGasPrice(): void; } //# sourceMappingURL=legacy-transaction.d.ts.map