Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CheckpointsTrace208Test

Inherits: Test

State Variables

_KEY_MAX_GAP

uint8 internal constant _KEY_MAX_GAP = 64;

_ckpts

Checkpoints.Trace208 internal _ckpts;

Functions

_boundUint48

function _boundUint48(uint48 x, uint48 min, uint48 max) internal pure returns (uint48);

_prepareKeys

function _prepareKeys(uint48[] memory keys, uint48 maxSpread) internal pure;

_assertLatestCheckpoint

function _assertLatestCheckpoint(bool exist, uint48 key, uint208 value) internal view;

testPush

function testPush(uint48[] memory keys, uint208[] memory values, uint48 pastKey) public;

push

function push(uint48 key, uint208 value) external;

testLookup

function testLookup(uint48[] memory keys, uint208[] memory values, uint48 lookup) public;