caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
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>
2026-07-06 23:29:50 +03:00

37 lines
786 B
Markdown

# BlockHashLib
Library for accessing block hashes way beyond the 256-block limit.
<!-- customintro:start --><!-- customintro:end -->
## Constants
### HISTORY_STORAGE_ADDRESS
```solidity
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)
```solidity
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.