CheckpointsTrace160Test
Inherits: Test
State Variables
_KEY_MAX_GAP
uint8 internal constant _KEY_MAX_GAP = 64;
_ckpts
Checkpoints.Trace160 internal _ckpts;
Functions
_boundUint96
function _boundUint96(uint96 x, uint96 min, uint96 max) internal pure returns (uint96);
_prepareKeys
function _prepareKeys(uint96[] memory keys, uint96 maxSpread) internal pure;
_assertLatestCheckpoint
function _assertLatestCheckpoint(bool exist, uint96 key, uint160 value) internal view;
testPush
function testPush(uint96[] memory keys, uint160[] memory values, uint96 pastKey) public;
push
function push(uint96 key, uint160 value) external;
testLookup
function testLookup(uint96[] memory keys, uint160[] memory values, uint96 lookup) public;