Closed therealbytes closed 4 weeks ago
Can I hop on this?
Shall I take up this?
Hey @RajeshRk18 @princeibs Would you mind providing some context about yourselves so I can better assign the issue?
I am Adeoluwa a smart contract developer can i work on this ?
I can implement this and would love to work on this
Hi @therealbytes, my comment came first on this issue but you assigned it to someone else. Is there any particular reason for that please?
@RajeshRk18 Any progress here?
@princeibs Hey! Issues are not assigned by the order of comments. If @RajeshRk18 doesn't provide any updates I will re-assign the issue.
@RajeshRk18 Any progress here?
I am on it! Went through the eip and codebase. Started implementing
What's your status on this? @RajeshRk18
What's your status on this? @RajeshRk18
Working on it rn sir! Will make a pr soon
Rationale
Motivation behind EIP-1153:
This applies to Concrete precompiles as well, e.g., right now there is no way to implement a transient reentrancy lock.
Implementation
Add
TransientLoad
andTransientStore
methods to the Concrete environment. These should work almost exactly likeStorageLoad
andStorageStore
but call theStateDB.GetTransientState
andStateDB.SetTransientState
methods instead. Transient storage access (both reads and writes) are priced the same as a warm SSTORE of a dirty slot (100 gas), which is declared asparams.WarmStorageReadCostEIP2929
in geth.About transient storage (EIP-1153 added as part of the Dencun Upgrade):
See: