Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
786 B
786 B
BlockHashLib
Library for accessing block hashes way beyond the 256-block limit.
Constants
HISTORY_STORAGE_ADDRESS
address internal constant HISTORY_STORAGE_ADDRESS =
0x0000F90827F1C53a10cb7A02335B175320002935
Address of the EIP-2935 history storage contract.
See: https://eips.ethereum.org/EIPS/eip-2935
Operations
blockHash(uint256)
function blockHash(uint256 blockNumber)
internal
view
returns (bytes32 result)
Retrieves the block hash for any historical block within the supported range.
The function gracefully handles future blocks and blocks beyond the history window by returning zero,
consistent with the EVM's native BLOCKHASH behavior.