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

CheckpointsTrace224Test

Inherits: Test

State Variables

_KEY_MAX_GAP

uint8 internal constant _KEY_MAX_GAP = 64;

_ckpts

Checkpoints.Trace224 internal _ckpts;

Functions

_boundUint32

function _boundUint32(uint32 x, uint32 min, uint32 max) internal pure returns (uint32);

_prepareKeys

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

_assertLatestCheckpoint

function _assertLatestCheckpoint(bool exist, uint32 key, uint224 value) internal view;

testPush

function testPush(uint32[] memory keys, uint224[] memory values, uint32 pastKey) public;

push

function push(uint32 key, uint224 value) external;

testLookup

function testLookup(uint32[] memory keys, uint224[] memory values, uint32 lookup) public;