vyper icon indicating copy to clipboard operation
vyper copied to clipboard

Add `block.blobbasefee` and `blobhash(uint256)`

Open pcaversaccio opened this issue 1 year ago • 1 comments

Cancun is near and we should add the following support:

  • A new block property called block.blobbasefee (see EIP-7516),
  • A new built-in function:
blobhash(index: uint256) -> bytes32

This function returns the versioned hash of the index-th blob associated with the current transaction. A versioned hash consists of a single byte representing the version (currently 0x01), followed by the last 31 bytes of the SHA256 hash of the KZG commitment (EIP-4844).

pcaversaccio avatar Jan 26 '24 09:01 pcaversaccio

Have a draft for block.blobbasefee on my branch now

ControlCplusControlV avatar Feb 08 '24 20:02 ControlCplusControlV

Fixed via https://github.com/vyperlang/vyper/pull/3962 and https://github.com/vyperlang/vyper/pull/3945.

pcaversaccio avatar Jul 30 '24 13:07 pcaversaccio