Skip to main content
Version: v1.3_alpha

IMACI

MACI interface

stateTreeDepth

function stateTreeDepth() external view returns (uint8)

Get the depth of the state tree

Return Values

NameTypeDescription
[0]uint8The depth of the state tree

getStateAqRoot

function getStateAqRoot() external view returns (uint256)

Return the main root of the StateAq contract

Return Values

NameTypeDescription
[0]uint256The Merkle root

mergeStateAqSubRoots

function mergeStateAqSubRoots(uint256 _numSrQueueOps, uint256 _pollId) external

Allow Poll contracts to merge the state subroots

Parameters

NameTypeDescription
_numSrQueueOpsuint256Number of operations
_pollIduint256The ID of the active Poll

mergeStateAq

function mergeStateAq(uint256 _pollId) external returns (uint256)

Allow Poll contracts to merge the state root

Parameters

NameTypeDescription
_pollIduint256The active Poll ID

Return Values

NameTypeDescription
[0]uint256The calculated Merkle root

numSignUps

function numSignUps() external view returns (uint256)

Get the number of signups

Return Values

NameTypeDescription
[0]uint256numsignUps The number of signups

stateAq

function stateAq() external view returns (contract AccQueue)

Get the state AccQueue

Return Values

NameTypeDescription
[0]contract AccQueueThe state AccQueue