Skip to main content
Version: v1.2

Params

This contracts contains a number of structures which are to be passed as parameters to Poll contracts. This way we can reduce the number of parameters and avoid a stack too deep error during compilation.

TreeDepths

struct TreeDepths {
uint8 intStateTreeDepth;
uint8 messageTreeSubDepth;
uint8 messageTreeDepth;
uint8 voteOptionTreeDepth;
}

MaxValues

struct MaxValues {
uint256 maxMessages;
uint256 maxVoteOptions;
}

ExtContracts

struct ExtContracts {
contract IMACI maci;
contract AccQueue messageAq;
contract TopupCredit topupCredit;
}