foundry icon indicating copy to clipboard operation
foundry copied to clipboard

meta: Foundry Cancun readiness

Open Evalir opened this issue 1 year ago • 5 comments

Motivation

Foundry Cancun tracking issue for readiness.

Items needed

  • [x] revm foundry upgrade #5669
  • [x] revm EIP-4844 support: https://github.com/bluealloy/revm/pull/536
  • [x] revm alloy migration: https://github.com/bluealloy/revm/issues/527
  • [x] alloy EIP-4844 support.

Anvil

  • [x] EIP-4844 type support on Anvil & corresponding revm config: https://github.com/foundry-rs/foundry/pull/7202
  • [x] Ensure send/send_raw_transaction methods can properly decode 4844 txs. https://github.com/alloy-rs/alloy/pull/229
  • [x] Change TransactionExecutor to validate 4844 txs iff cancun spec is active https://github.com/foundry-rs/foundry/pull/7242
  • [x] Adjust new / changed RPC methods accordingly: https://github.com/foundry-rs/foundry/pull/7242

Forge

  • [x] vm.blobhashes: https://github.com/foundry-rs/foundry/pull/7001

Cast

  • [ ] cast send 4844 support https://github.com/foundry-rs/foundry/pull/7823

Evalir avatar Aug 09 '23 15:08 Evalir

Here is meta issue for revm: https://github.com/bluealloy/revm/issues/527

rakita avatar Aug 10 '23 07:08 rakita

Thank you @rakita! Was wondering, do you have any ETAs for when will revm be ready for cancun? Anything I can do to help drive it to completion?

Evalir avatar Aug 10 '23 07:08 Evalir

bump on this, everything should be fine on the revm side, but rpc types might need to be adjusted? In particular anvil would need blob support for eth_sendTransaction and raw tx + blob decoding, which are currently implemented in reth. Not sure what the best way is to share, for example, the RLP decoding if anvil were to accept blob transactions with a sidecar on a forked network

also wondering how relevant https://github.com/foundry-rs/foundry/issues/5782 is

Rjected avatar Nov 29 '23 01:11 Rjected

Hi @Evalir, do you have an estimate as to when forge and anvil will support blob transactions? Currently there's no good tool to unit test features that rely on blobs.

Thegaram avatar Apr 22 '24 02:04 Thegaram

Almost @Thegaram — the last missing piece is https://github.com/foundry-rs/foundry/pull/7823

Evalir avatar May 03 '24 04:05 Evalir

Closing as https://github.com/foundry-rs/foundry/pull/7823 has been merged

zerosnacks avatar Jun 25 '24 16:06 zerosnacks