IBiomapperLogRead

Git Source

View historical biomapping state for a given account, and overall generation changes.

Examples

See the BiomapperLogExamples.

Interface for the BiomapperLog contract.

Functions

biomappingsHead

Returns the most recent biomapping pointer for a given account address.

function biomappingsHead(address account) external view returns (uint256);

Parameters

NameTypeDescription
accountaddressThe address of the requested account.

Returns

NameTypeDescription
<none>uint256The block number in which the most recent biomap occurred, or 0 if the account was never biomapped.

biomappingsTail

Returns the oldest biomapping pointer for a given account address.

function biomappingsTail(address account) external view returns (uint256);

Parameters

NameTypeDescription
accountaddressThe address of the requested account.

Returns

NameTypeDescription
<none>uint256The block number in which the oldest biomap occurred, or 0 if the account was never biomapped.

biomappingsListItem

Returns the Biomapping struct for a given biomapping pointer and account address.

function biomappingsListItem(address account, uint256 ptr) external view returns (Biomapping memory);

Parameters

NameTypeDescription
accountaddressThe address of the requested account.
ptruint256The biomapping pointer of the requested biomapping.

Returns

NameTypeDescription
<none>BiomappingThe Biomapping structure.

generationBiomapping

Returns the biomapping pointer for a given account address and generation pointer.

function generationBiomapping(address account, uint256 generationPtr) external view returns (uint256);

Parameters

NameTypeDescription
accountaddressThe address of the requested account.
generationPtruint256The pointer of the requested generation.

Returns

NameTypeDescription
<none>uint256The block number in which the requested user was biomapped in the requested generation, or 0 if there was no biomapping.

generationsHead

Returns the block number in which the current generation began.

function generationsHead() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256The block number in which the current generation began, 0 if no generations initialized.

generationsTail

Returns the block number in which the oldest generation began.

function generationsTail() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256The block number in which the oldest generation began, 0 if no generations initialized.

generationsListItem

Returns the generation struct for a given generation pointer.

function generationsListItem(uint256 ptr) external view returns (Generation memory);

Parameters

NameTypeDescription
ptruint256The pointer of the requested generation.

Returns

NameTypeDescription
<none>GenerationThe Generation structure.

Structs

Generation

Structure representing a biomapper generation as an element of a doubly linked list.

Pointer of Generation is a number of block that contains a 'generation change' transaction.

Fields

NameTypeDescription
generationbytes32A salted hash of some deployment data. Deprecated, do not use.
prevPtruint256Block number of the previous generation. 0 for the oldest generation.
nextPtruint256Block number of the next generation. 0 for the current generation.
struct Generation {
    bytes32 generation;
    uint256 prevPtr;
    uint256 nextPtr;
}

Biomapping

Structure representing a biomapping as an element of a doubly linked list.

Pointer of Biomapping is a number of block that contains a 'prove uniqueness' transaction.

Fields

NameTypeDescription
generationPtruint256Pointer to the generation that has this biomapping.
prevPtruint256Block number of the previous biomapping. 0 for the oldest biomapping.
nextPtruint256Block number of the next biomapping. 0 for the current biomapping.
struct Biomapping {
    uint256 generationPtr;
    uint256 prevPtr;
    uint256 nextPtr;
}