Skip to main content
Version: v2.x

Params Smart Contract

info

Code location: Params.sol

A contract holding three structs:

/// @notice A struct holding the depths of the merkle trees
struct TreeDepths {
uint8 intStateTreeDepth;
uint8 messageTreeSubDepth;
uint8 messageTreeDepth;
uint8 voteOptionTreeDepth;
}

/// @notice A struct holding the external contracts
/// that are to be passed to a Poll contract on
/// deployment
struct ExtContracts {
IMACI maci;
AccQueue messageAq;
}

Struct parameters are used to avoid stack too deep errors in the other contracts.