IMockBridgedBiomapperControl
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
| Name | Type | Description |
|---|---|---|
biomappingsData | BiomappingData[] | The info about biomapping events. |
account | address | The 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
| Name | Type | Description |
|---|---|---|
| generationPtr | uint256 | The generation, Humanode chain block number. |
| biomappingPtr | uint256 | The biomapping, Humanode chain block number. |
struct BiomappingData {
uint256 generationPtr;
uint256 biomappingPtr;
}