IMockBridgedBiomapperControl

Git Source

Mock controls for the MockBridgedBiomapper.

Interface for the MockBridgedBiomapper contract.

Functions

updateBiomappings

Bridge the generations and biomappings.

function updateBiomappings(BiomappingData[] memory biomappingsData, address account) external;

Parameters

NameTypeDescription
biomappingsDataBiomappingData[]The info about biomapping events.
accountaddressThe address of the requested account.

addTestData

A quick and easy way to add test data to the mock contract, as well as an example of how to add new data.

The test data represents the history of 2 accounts across 6 generations.

This function can be executed up to 4 times in different blocks to add test data.

function addTestData() external;

Structs

BiomappingData

The info about one biomapping event.

Fields

NameTypeDescription
generationPtruint256The generation, Humanode chain block number.
biomappingPtruint256The biomapping, Humanode chain block number.
struct BiomappingData {
    uint256 generationPtr;
    uint256 biomappingPtr;
}