Skip to content

feat!(precompile): gas refund#806

Merged
0xKitsune merged 10 commits intomainfrom
rakita/precompile-gas-refund
Nov 26, 2025
Merged

feat!(precompile): gas refund#806
0xKitsune merged 10 commits intomainfrom
rakita/precompile-gas-refund

Conversation

@rakita
Copy link
Contributor

@rakita rakita commented Nov 10, 2025

Adds refund to the sstore function in precompiles. This would make a repeated sstore operations chepear to do and it alignes gas account to sstore on mainnet.

Pending on revm PR: bluealloy/revm#3152

@rakita rakita added the S-breaking-stf This PR includes a breaking STF change label Nov 10, 2025
@rakita rakita changed the title feat!: precompile gas refund feat!(precompile): gas refund Nov 10, 2025
@jenpaff jenpaff added the F-allegretto Tasks prioritised for Hardfork after Moderato label Nov 10, 2025
Copy link
Contributor

@0xKitsune 0xKitsune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general this lgtm. Can we also update to gate this logic behind TempHardfork::Moderato?

@jenpaff jenpaff added F-moderato Tasks prioritised for Moderato F-allegretto Tasks prioritised for Hardfork after Moderato and removed F-allegretto Tasks prioritised for Hardfork after Moderato F-moderato Tasks prioritised for Moderato labels Nov 12, 2025
@rakita
Copy link
Contributor Author

rakita commented Nov 13, 2025

@jenpaff should this go in next hardfork or fork after it? Only blocking thing is revm bump

@rakita rakita force-pushed the rakita/precompile-gas-refund branch from c4dfe52 to ec33a31 Compare November 13, 2025 16:58
@klkvr
Copy link
Member

klkvr commented Nov 13, 2025

holding off until next hardfork

@rakita rakita marked this pull request as draft November 13, 2025 17:49
@rakita rakita added the A-precompile Related to precompiles label Nov 13, 2025
@0xKitsune
Copy link
Contributor

@rakita Can you fix merge conflicts and gate behind an upcoming hardfork now that Moderato is scheduled for Testnet?

@rakita
Copy link
Contributor Author

rakita commented Nov 20, 2025

@rakita Can you fix merge conflicts and gate behind an upcoming hardfork now that Moderato is scheduled for Testnet?

On it and thanks for the ping

@rakita
Copy link
Contributor Author

rakita commented Nov 20, 2025

Waiting for #976

@rakita rakita marked this pull request as ready for review November 24, 2025 10:27
@rakita
Copy link
Contributor Author

rakita commented Nov 24, 2025

@0xKitsune pls take a look

@rakita rakita force-pushed the rakita/precompile-gas-refund branch from fc942c5 to 6b90be9 Compare November 26, 2025 09:13
@0xKitsune 0xKitsune enabled auto-merge (squash) November 26, 2025 19:44
@0xKitsune 0xKitsune merged commit 5c16db0 into main Nov 26, 2025
15 checks passed
@0xKitsune 0xKitsune deleted the rakita/precompile-gas-refund branch November 26, 2025 19:53
Zygimantass pushed a commit that referenced this pull request Dec 1, 2025
This was missed in keychain PR because it took a while to get merged in
parallel with #806
unbalancedparentheses pushed a commit to unbalancedparentheses/tempo that referenced this pull request Feb 23, 2026
Adds refund to the sstore function in precompiles. This would make a
repeated sstore operations chepear to do and it alignes gas account to
sstore on mainnet.

Pending on revm PR: bluealloy/revm#3152

---------

Co-authored-by: Jennifer <jenpaff0@gmail.com>
Co-authored-by: 0xKitsune <0xkitsune@protonmail.com>
unbalancedparentheses pushed a commit to unbalancedparentheses/tempo that referenced this pull request Feb 23, 2026
This was missed in keychain PR because it took a while to get merged in
parallel with tempoxyz#806
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-precompile Related to precompiles F-allegretto Tasks prioritised for Hardfork after Moderato S-breaking-stf This PR includes a breaking STF change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants