Skip to main content

Reference

Interfaces, signatures, parameters, and generated references.

Lookup friendly
TOC available

NonzeroDeltaCount

This is a temporary library that allows us to use transient storage (tstore/tload) for the nonzero delta count. TODO: This library can be deleted when we have the transient keyword support in solidity.

State Variables​

NONZERO_DELTA_COUNT_SLOT​

bytes32 internal constant NONZERO_DELTA_COUNT_SLOT = 0x7d4b3164c6e45b97e7d87b7125a44c5828d005af88f9d751cfd78729c5d99a0b;

Functions​

read​

function read() internal view returns (uint256 count);

increment​

function increment() internal;

decrement​

Potential to underflow. Ensure checks are performed by integrating contracts to ensure this does not happen. Current usage ensures this will not happen because we call decrement with known boundaries (only up to the number of times we call increment).

function decrement() internal;