IBiomapperLogRead
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
Name | Type | Description |
---|---|---|
account | address | The address of the requested account. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The 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
Name | Type | Description |
---|---|---|
account | address | The address of the requested account. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The 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
Name | Type | Description |
---|---|---|
account | address | The address of the requested account. |
ptr | uint256 | The biomapping pointer of the requested biomapping. |
Returns
Name | Type | Description |
---|---|---|
<none> | Biomapping | The 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
Name | Type | Description |
---|---|---|
account | address | The address of the requested account. |
generationPtr | uint256 | The pointer of the requested generation. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The 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
Name | Type | Description |
---|---|---|
<none> | uint256 | The 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
Name | Type | Description |
---|---|---|
<none> | uint256 | The 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
Name | Type | Description |
---|---|---|
ptr | uint256 | The pointer of the requested generation. |
Returns
Name | Type | Description |
---|---|---|
<none> | Generation | The 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
Name | Type | Description |
---|---|---|
generation | bytes32 | A salted hash of some deployment data. Deprecated, do not use. |
prevPtr | uint256 | Block number of the previous generation. 0 for the oldest generation. |
nextPtr | uint256 | Block 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
Name | Type | Description |
---|---|---|
generationPtr | uint256 | Pointer to the generation that has this biomapping. |
prevPtr | uint256 | Block number of the previous biomapping. 0 for the oldest biomapping. |
nextPtr | uint256 | Block number of the next biomapping. 0 for the current biomapping. |
struct Biomapping {
uint256 generationPtr;
uint256 prevPtr;
uint256 nextPtr;
}