Welcome to the next crypto level
← Nexorena

Infrastructure

Ethereum’s EIP-8488 proposes two gas schedules based on contract code

Added to Ethereum’s proposals repository on November 27, Leo Glisic’s draft would apply the new gas schedule to code deployed after activation. It seeks to limit the impact of higher storage costs on existing contracts.

Nexorena Editorial Team

Ethereum’s EIP-8488 proposes two gas schedules based on contract code

The price of accessing and writing state

Ethereum’s proposals repository added EIP-8488 on November 27. Leo Glisic’s draft addresses a problem for Glamsterdam, an upgrade under development. How can Ethereum raise some gas prices while preserving the costs around which working contracts were designed and tested? Gas is the unit used to charge for work performed by the Ethereum Virtual Machine. A change to the schedule can alter the amount of gas required to follow the exact same path through a contract.

Two separate proposals provide context. EIP-8037 targets operations that create persistent data, such as creating a storage slot. It would meter state creation separately. EIP-8038 deals with the cost of accessing state, which has grown since previous price adjustments. The proposals address different resources. EIP-8488 specifies which code their prices would apply to, setting the boundary at activation.

A deployment check for new contracts

The draft proposes a second version of the instructions affected by the new schedule. After activation, a client would inspect the code to be stored onchain before accepting a deployment. If an instruction has a V2 equivalent, the presence of the older instruction would cause the deployment to fail. Operations that query the available gas or the gas limit are also excluded from the V2 set. An accepted contract would be marked as compatible with the second version.

An existing contract would continue running its instructions under the old schedule. In an interaction between contracts, a regular call executes code in the called contract’s context. A delegated call runs the target code in the caller’s context. The draft introduces a V2 delegated-call instruction that checks whether its target has also passed the deployment check. That adds a compatibility requirement specific to V2 delegated calls.

A transition tied to code turnover

Leo Glisic argues that more activity would fall under the new schedule as contracts are replaced or fresh code is deployed. The draft provides no basis for estimating the pace of this transition. Immutable contracts could remain in use for a long time under the old rates. Tools that generate contract code would need to learn to emit the required V2 instructions. Teams would also need to check how their calls and upgrades work before deploying again.

This approach could raise some prices for future deployments while avoiding a change for existing contracts. It would also mean maintaining two gas schedules and separate deployment rules. Ethereum clients would need to apply those rules identically to agree on transaction outcomes. The repository classifies EIP-8488 as a draft. It gives neither an activation date nor an estimate of the effect on users’ fees.

Article sources

Written with love byRyan MitchellMeet this editorial pen name ↗

Explorer Nexorena