ICredibleRegistry
Title: ICredibleRegistry
Author: Phylax Systems
Read interface for the on-chain Credible Registry that tracks which blocks were marked credible by authorized credible block builders.
Mirrors the read surface of phylaxsystems/credible-registry so consumers such as
{CredibleBlockGuard} are drop-in compatible with the deployed registry. The registry
records block credibility by block number; it does not expose timestamps.
Functions
isCredibleBlock
Returns whether the given block number was marked credible by a whitelisted builder.
function isCredibleBlock(uint256 blockNumber) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
blockNumber | uint256 | The block number to query. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bool | True if blockNumber was marked credible, false otherwise. |
lastCredibleBlock
Returns the most recent block number that was marked credible.
Returns 0 if no block has ever been marked credible.
function lastCredibleBlock() external view returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | The highest block number marked credible so far. |