vyper
vyper copied to clipboard
Add `block.blobbasefee` and `blobhash(uint256)`
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).
Have a draft for block.blobbasefee
on my branch now
Fixed via https://github.com/vyperlang/vyper/pull/3962 and https://github.com/vyperlang/vyper/pull/3945.