Closed
Description
Describe the feature
Support transient storage introduced in Cancun, TSTORE (0x5D)
and TLOAD (0x5D)
Solution
- need to introduce CANCUN opcodes in opcodes
1.1. create a new filezink/evm/opcodes/src/cancun.rs
(cp from shanghai.rs )
1.2. add0x5C
and0x5D
to the mapping - introduce transient storage in the storage macro, could be
#[zink::transient_storage(...)]
comparing with the previous#[zink::storage(..)]
, for the details of the instructions of transient storage, we just need to replace theSSTORE
toTSTORE
andSLOAD
toTLOAD
, for example, the value storage
2.1. find a way to optimize the logic betweenzink::storage
andzink::transient_storage
since their logic are the same - Provide tests for the transient storage
Metadata
Metadata
Assignees
Type
Projects
Status
Done