filecoin-project / FIPs

The Filecoin Improvement Proposal repository
315 stars 165 forks source link

Add Support for EIP-1153 (Transient Storage) in the FEVM #1084

Open snissn opened 1 week ago

snissn commented 1 week ago

Abstract

EIP-1153 defines transient storage as temporary data accessible only during the originating transaction, cleared automatically at the end of the transaction. This FIP adapts transient storage to the FEVM using TLOAD and TSTORE opcodes, ensuring compatibility with Ethereum contracts and libraries that rely on this feature. Lifecycle validation mechanisms enforce the transaction-scoped behavior of transient storage, achieving functional equivalence with Ethereum’s implementation and seamless integration with Filecoin’s architecture.

Discussion:

snissn commented 5 days ago

Thanks for the comments @rvagg ! Your feedback helps clarify many important aspects of this FIP and leaves to a more robust proposal overall! I got a little "nerd sniped" by the solidity version relationship to this FIP, and hope I didn't get too nuanced and abstract! Please share any additional comments and feedback to ensure all of your requests and ideas have been addressed and accommodated! Thanks again!

luckyparadise commented 5 days ago

@snissn one nit question I have is using "ephemeral" and "transient". Do they mean the same thing in the context of the FIP or do they mean separate concepts?

jsoares commented 2 days ago

Assigning FIP-0097. Please update PR title, filename, front matter, and readme.