foundry icon indicating copy to clipboard operation
foundry copied to clipboard

meta(precompiles): tracking issue for non-Ethereum precompiles

Open mattsse opened this issue 1 year ago • 5 comments

Component

Forge, Cast, Anvil

Describe the feature you would like

with #7125 we can now configure chain specific precompiles more easily.

though only if they're self-contained and don't require additional input from the chain itself. It would be possible however to fetch that from RPC, if available.

This is a tracking issue to gather precompiles we can implement as functions

BSC

Arbitrum

https://docs.arbitrum.io/for-devs/dev-tools-and-resources/precompiles#arbsys

OP

Blast

Additional context

Please leave docs to precompiles as comments

mattsse avatar Feb 28 '24 13:02 mattsse

Blast

gakonst avatar Mar 11 '24 23:03 gakonst

Related: https://github.com/foundry-rs/foundry/issues/1078

zerosnacks avatar Aug 01 '24 11:08 zerosnacks

moonbeam: https://github.com/foundry-rs/foundry/issues/7061

grandizzy avatar Oct 24 '24 12:10 grandizzy

a way to inject precompiles so that script simulation doesn't fail would be huge for cases like hyperliquid where we dont have precompile source and have to shim something.

androolloyd avatar May 26 '25 17:05 androolloyd

The recent revm + alloy-evm bump with the dynamic DynPrecompile and the PrecompileFactory makes this much easier to do

zerosnacks avatar Jun 12 '25 15:06 zerosnacks