UNPKG

@ethereumjs/tx

Version:
107 lines 4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.paramsTx = void 0; exports.paramsTx = { /** * Frontier/Chainstart */ 1: { // gasPrices txGas: 21000, // Per transaction. NOTE: Not payable on data of calls between transactions txCreationGas: 32000, // The cost of creating a contract via tx txDataZeroGas: 4, // Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions txDataNonZeroGas: 68, // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions accessListStorageKeyGas: 0, accessListAddressGas: 0, }, /** . * Istanbul HF Meta EIP . */ 1679: { // gasPrices txDataNonZeroGas: 16, // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions }, /** . * Optional access lists . */ 2930: { // gasPrices accessListStorageKeyGas: 1900, // Gas cost per storage key in an Access List transaction accessListAddressGas: 2400, // Gas cost per storage key in an Access List transaction }, /** . * Limit and meter initcode . */ 3860: { // gasPrices initCodeWordGas: 2, // Gas to pay for each word (32 bytes) of initcode when creating a contract // format maxInitCodeSize: 49152, // Maximum length of initialization code when creating a contract }, /** . * Shard Blob Transactions . */ 4844: { blobCommitmentVersionKzg: 1, // The number indicated a versioned hash is a KZG commitment blobGasPerBlob: 131072, // The base fee for blob gas per blob maxBlobGasPerBlock: 786432, // The max blob gas allowable per block }, /** * PeerDAS - Peer Data Availability Sampling */ 7594: { maxBlobsPerTx: 6, // Max number of blobs per tx }, /** * Increase calldata cost to reduce maximum block size */ 7623: { totalCostFloorPerToken: 10, }, /** . * Set EOA account code for one transaction . */ 7702: { // TODO: Set correct minimum hardfork // gasPrices perAuthBaseGas: 12500, // Gas cost of each authority item, provided the authority exists in the trie perEmptyAccountCost: 25000, // Gas cost of each authority item, in case the authority does not exist in the trie }, /** . * Shard Blob Transactions . */ 7691: { maxBlobGasPerBlock: 1179648, // The max blob gas allowable per block }, /** * Transaction Gas Limit Cap */ 7825: { maxTransactionGasLimit: 16777216, // Maximum gas limit for a single transaction (2^24) }, /** * Increase max contract code size and initcode size */ 7954: { // format maxInitCodeSize: 65536, // EIP-7954: Maximum length of initialization code (raised from 48 KiB) }, /** * Increase calldata floor cost (uniform 64 gas/byte floor) */ 7976: { totalCostFloorPerToken: 16, }, /** * State Creation Gas Cost Increase — tx-level regular-gas overrides. * State-gas portion of the authorization base/empty-account cost and the * creation-tx state cost are computed separately from the EIP-8037 * constants (see evm params block). */ 8037: { perAuthBaseGas: 7500, // Regular gas per authorization (down from 12500); state portion = stateBytesPerAuthBase * costPerStateByte perEmptyAccountCost: 0, // Regular gas for empty authority (down from 25000); state portion = stateBytesPerNewAccount * costPerStateByte (refunded if authority is non-empty) txCreationGas: 9000, // Regular gas for a creation tx (down from 32000); state portion = stateBytesPerNewAccount * costPerStateByte }, }; //# sourceMappingURL=params.js.map